From fe1546bb25989bdddc2a66023a17c83867ba6090 Mon Sep 17 00:00:00 2001 From: Dopeamin Date: Wed, 10 Sep 2025 14:42:31 +0200 Subject: [PATCH 1/3] Refactor API models and endpoints; added new models for ClientEnv, UserList, and Passkey verification. Updated existing models for AuthEvent, Challenge, and User. Removed deprecated SessionStatus and SocialProviderType models. --- .../corbado/generated/api/AuthEventsApi.java | 30 +- .../corbado/generated/api/ChallengesApi.java | 80 +-- .../corbado/generated/api/ClientEnvsApi.java | 207 ++++++ .../generated/api/ConnectTokensApi.java | 194 +++--- .../corbado/generated/api/IdentifiersApi.java | 208 +++--- .../generated/api/PasskeyChallengesApi.java | 112 ++-- .../generated/api/PasskeyEventsApi.java | 162 ++--- .../corbado/generated/api/PasskeysApi.java | 341 +++++++--- .../generated/api/PasswordManagersApi.java | 36 +- .../generated/api/ProjectConfigApi.java | 40 +- .../corbado/generated/api/SessionsApi.java | 108 ++-- .../com/corbado/generated/api/UsersApi.java | 610 +++++++++++------- .../generated/api/WebhookEndpointsApi.java | 78 +-- .../generated/invoker/ApiCallback.java | 2 +- .../corbado/generated/invoker/ApiClient.java | 106 +-- .../generated/invoker/ApiException.java | 7 +- .../generated/invoker/ApiResponse.java | 2 +- .../generated/invoker/Configuration.java | 4 +- .../invoker/GzipRequestInterceptor.java | 2 +- .../com/corbado/generated/invoker/JSON.java | 52 +- .../com/corbado/generated/invoker/Pair.java | 54 +- .../invoker/ProgressRequestBody.java | 2 +- .../invoker/ProgressResponseBody.java | 2 +- .../invoker/ServerConfiguration.java | 4 +- .../generated/invoker/ServerVariable.java | 4 +- .../corbado/generated/invoker/StringUtil.java | 4 +- .../generated/invoker/auth/ApiKeyAuth.java | 4 +- .../invoker/auth/Authentication.java | 3 +- .../generated/invoker/auth/HttpBasicAuth.java | 2 +- .../invoker/auth/HttpBearerAuth.java | 4 +- .../generated/model/AaguidDetails.java | 32 +- .../model/AbstractOpenApiSchema.java | 4 +- .../generated/model/AppendHistoryData.java | 393 +++++++++++ .../corbado/generated/model/AuthEvent.java | 40 +- .../generated/model/AuthEventCreateReq.java | 28 +- .../generated/model/AuthEventMethod.java | 4 +- .../generated/model/AuthEventStatus.java | 4 +- .../generated/model/AuthEventType.java | 4 +- .../corbado/generated/model/Challenge.java | 34 +- .../generated/model/ChallengeCreateReq.java | 26 +- .../generated/model/ChallengeStatus.java | 4 +- .../generated/model/ChallengeType.java | 4 +- .../generated/model/ChallengeUpdateReq.java | 20 +- .../corbado/generated/model/ClientEnv.java | 472 ++++++++++++++ .../generated/model/ClientEnvList.java | 232 +++++++ .../generated/model/ClientInformation.java | 75 ++- .../corbado/generated/model/ConnectToken.java | 37 +- .../model/ConnectTokenCreateReq.java | 23 +- .../generated/model/ConnectTokenData.java | 26 +- .../model/ConnectTokenDataPasskeyAppend.java | 30 +- .../model/ConnectTokenDataPasskeyDelete.java | 24 +- .../model/ConnectTokenDataPasskeyList.java | 24 +- .../model/ConnectTokenDataPasskeyLogin.java | 24 +- .../generated/model/ConnectTokenList.java | 34 +- .../generated/model/ConnectTokenStatus.java | 4 +- .../generated/model/ConnectTokenType.java | 4 +- .../model/ConnectTokenUpdateReq.java | 18 +- .../corbado/generated/model/Credential.java | 110 ++-- .../generated/model/CredentialList.java | 34 +- .../CrossDeviceAuthenticationStrategy.java | 4 +- .../generated/model/DecisionInsights.java | 82 ++- .../model/DecisionInsightsAppend.java | 355 ++++++++++ .../corbado/generated/model/DecisionTag.java | 4 +- .../generated/model/DetectionInsights.java | 65 +- .../corbado/generated/model/DetectionTag.java | 24 +- .../corbado/generated/model/Identifier.java | 38 +- .../generated/model/IdentifierCreateReq.java | 24 +- .../generated/model/IdentifierList.java | 34 +- .../generated/model/IdentifierStatus.java | 4 +- .../generated/model/IdentifierType.java | 4 +- .../generated/model/IdentifierUpdateReq.java | 18 +- .../model/JavaScriptHighEntropy.java | 26 +- .../corbado/generated/model/NativeMeta.java | 373 +++++++++++ .../generated/model/ParsedDeviceInfo.java | 32 +- .../model/PasskeyAppendFinishReq.java | 64 +- .../model/PasskeyAppendFinishRsp.java | 18 +- .../model/PasskeyAppendStartReq.java | 32 +- .../model/PasskeyAppendStartRsp.java | 38 +- .../generated/model/PasskeyChallenge.java | 34 +- .../generated/model/PasskeyChallengeList.java | 34 +- .../model/PasskeyChallengeStatus.java | 4 +- .../generated/model/PasskeyChallengeType.java | 4 +- .../model/PasskeyChallengeUpdateReq.java | 18 +- .../corbado/generated/model/PasskeyData.java | 38 +- .../corbado/generated/model/PasskeyEvent.java | 42 +- .../model/PasskeyEventCreateReq.java | 31 +- .../generated/model/PasskeyEventList.java | 34 +- .../generated/model/PasskeyEventType.java | 8 +- .../generated/model/PasskeyIntelFlags.java | 48 +- .../model/PasskeyLoginFinishReq.java | 64 +- .../model/PasskeyLoginFinishRsp.java | 21 +- .../generated/model/PasskeyLoginStartReq.java | 28 +- .../generated/model/PasskeyLoginStartRsp.java | 26 +- ...ediationFinishErrorAlternativeProject.java | 24 +- ...MediationFinishErrorCredentialDeleted.java | 20 +- .../model/PasskeyMediationFinishReq.java | 60 +- .../model/PasskeyMediationFinishRsp.java | 22 +- .../model/PasskeyMediationFinishRspError.java | 18 +- .../model/PasskeyMediationStartReq.java | 18 +- .../model/PasskeyMediationStartRsp.java | 22 +- .../generated/model/PasskeyPostLoginReq.java | 20 +- .../generated/model/PasskeyPostLoginRsp.java | 20 +- .../model/PasskeyVerifySignedDataReq.java | 243 +++++++ .../model/PasskeyVerifySignedDataRsp.java | 274 ++++++++ .../generated/model/PasswordManager.java | 44 +- .../generated/model/PasswordManagerList.java | 20 +- .../model/ProjectConfigUpdateCnameReq.java | 20 +- .../corbado/generated/model/SessionList.java | 48 +- ...ion.java => SessionListSessionsInner.java} | 190 ++++-- .../generated/model/SessionStatus.java | 84 --- .../generated/model/SocialAccount.java | 58 +- .../model/SocialAccountCreateReq.java | 112 +++- .../generated/model/SocialAccountList.java | 34 +- .../generated/model/SocialProviderType.java | 80 --- .../com/corbado/generated/model/User.java | 87 ++- .../generated/model/UserAggregate.java | 591 +++++++++++++++++ .../generated/model/UserCreateReq.java | 26 +- ...ricRsp.java => UserDelete200Response.java} | 96 ++- .../com/corbado/generated/model/UserList.java | 261 ++++++++ ...rRsp.java => UserListDefaultResponse.java} | 117 ++-- ...=> UserListDefaultResponseAllOfError.java} | 103 ++- ...ultResponseAllOfErrorValidationInner.java} | 76 ++- ...rListDefaultResponseAllOfRequestData.java} | 73 ++- .../{Paging.java => UserListPaging.java} | 78 ++- .../corbado/generated/model/UserStatus.java | 4 +- .../generated/model/UserUpdateReq.java | 18 +- .../generated/model/WebhookEndpoint.java | 50 +- .../model/WebhookEndpointCreateReq.java | 32 +- .../generated/model/WebhookEndpointList.java | 20 +- .../model/WebhookEndpointUpdateReq.java | 27 +- .../generated/model/WebhookEventType.java | 4 +- 131 files changed, 6307 insertions(+), 2692 deletions(-) create mode 100644 src/main/java/com/corbado/generated/api/ClientEnvsApi.java create mode 100644 src/main/java/com/corbado/generated/model/AppendHistoryData.java create mode 100644 src/main/java/com/corbado/generated/model/ClientEnv.java create mode 100644 src/main/java/com/corbado/generated/model/ClientEnvList.java create mode 100644 src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java create mode 100644 src/main/java/com/corbado/generated/model/NativeMeta.java create mode 100644 src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java create mode 100644 src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java rename src/main/java/com/corbado/generated/model/{Session.java => SessionListSessionsInner.java} (54%) delete mode 100644 src/main/java/com/corbado/generated/model/SessionStatus.java delete mode 100644 src/main/java/com/corbado/generated/model/SocialProviderType.java create mode 100644 src/main/java/com/corbado/generated/model/UserAggregate.java rename src/main/java/com/corbado/generated/model/{GenericRsp.java => UserDelete200Response.java} (62%) create mode 100644 src/main/java/com/corbado/generated/model/UserList.java rename src/main/java/com/corbado/generated/model/{ErrorRsp.java => UserListDefaultResponse.java} (61%) rename src/main/java/com/corbado/generated/model/{ErrorRspAllOfError.java => UserListDefaultResponseAllOfError.java} (59%) rename src/main/java/com/corbado/generated/model/{ErrorRspAllOfErrorValidation.java => UserListDefaultResponseAllOfErrorValidationInner.java} (56%) rename src/main/java/com/corbado/generated/model/{RequestData.java => UserListDefaultResponseAllOfRequestData.java} (59%) rename src/main/java/com/corbado/generated/model/{Paging.java => UserListPaging.java} (67%) diff --git a/src/main/java/com/corbado/generated/api/AuthEventsApi.java b/src/main/java/com/corbado/generated/api/AuthEventsApi.java index b3f6759..b992358 100644 --- a/src/main/java/com/corbado/generated/api/AuthEventsApi.java +++ b/src/main/java/com/corbado/generated/api/AuthEventsApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -29,7 +29,7 @@ import com.corbado.generated.model.AuthEvent; import com.corbado.generated.model.AuthEventCreateReq; -import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for authEventCreate - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param authEventCreateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -85,11 +85,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Auth event has been created -
200 Auth event has been created. -
0 Error -
*/ - public okhttp3.Call authEventCreateCall(String userID, AuthEventCreateReq authEventCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call authEventCreateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull AuthEventCreateReq authEventCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -136,7 +136,7 @@ public okhttp3.Call authEventCreateCall(String userID, AuthEventCreateReq authEv } @SuppressWarnings("rawtypes") - private okhttp3.Call authEventCreateValidateBeforeCall(String userID, AuthEventCreateReq authEventCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call authEventCreateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull AuthEventCreateReq authEventCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling authEventCreate(Async)"); @@ -154,7 +154,7 @@ private okhttp3.Call authEventCreateValidateBeforeCall(String userID, AuthEventC /** * * Create a new authentication event for a user - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param authEventCreateReq (required) * @return AuthEvent * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -162,11 +162,11 @@ private okhttp3.Call authEventCreateValidateBeforeCall(String userID, AuthEventC - +
Response Details
Status Code Description Response Headers
200 Auth event has been created -
200 Auth event has been created. -
0 Error -
*/ - public AuthEvent authEventCreate(String userID, AuthEventCreateReq authEventCreateReq) throws ApiException { + public AuthEvent authEventCreate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull AuthEventCreateReq authEventCreateReq) throws ApiException { ApiResponse localVarResp = authEventCreateWithHttpInfo(userID, authEventCreateReq); return localVarResp.getData(); } @@ -174,7 +174,7 @@ public AuthEvent authEventCreate(String userID, AuthEventCreateReq authEventCrea /** * * Create a new authentication event for a user - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param authEventCreateReq (required) * @return ApiResponse<AuthEvent> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -182,11 +182,11 @@ public AuthEvent authEventCreate(String userID, AuthEventCreateReq authEventCrea - +
Response Details
Status Code Description Response Headers
200 Auth event has been created -
200 Auth event has been created. -
0 Error -
*/ - public ApiResponse authEventCreateWithHttpInfo(String userID, AuthEventCreateReq authEventCreateReq) throws ApiException { + public ApiResponse authEventCreateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull AuthEventCreateReq authEventCreateReq) throws ApiException { okhttp3.Call localVarCall = authEventCreateValidateBeforeCall(userID, authEventCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -195,7 +195,7 @@ public ApiResponse authEventCreateWithHttpInfo(String userID, AuthEve /** * (asynchronously) * Create a new authentication event for a user - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param authEventCreateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -204,11 +204,11 @@ public ApiResponse authEventCreateWithHttpInfo(String userID, AuthEve - +
Response Details
Status Code Description Response Headers
200 Auth event has been created -
200 Auth event has been created. -
0 Error -
*/ - public okhttp3.Call authEventCreateAsync(String userID, AuthEventCreateReq authEventCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call authEventCreateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull AuthEventCreateReq authEventCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = authEventCreateValidateBeforeCall(userID, authEventCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/api/ChallengesApi.java b/src/main/java/com/corbado/generated/api/ChallengesApi.java index 5892e02..2bb92ec 100644 --- a/src/main/java/com/corbado/generated/api/ChallengesApi.java +++ b/src/main/java/com/corbado/generated/api/ChallengesApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -30,7 +30,7 @@ import com.corbado.generated.model.Challenge; import com.corbado.generated.model.ChallengeCreateReq; import com.corbado.generated.model.ChallengeUpdateReq; -import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -77,7 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for challengeCreate - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeCreateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -86,11 +86,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Challenge has been created -
200 Challenge has been created. -
0 Error -
*/ - public okhttp3.Call challengeCreateCall(String userID, ChallengeCreateReq challengeCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call challengeCreateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull ChallengeCreateReq challengeCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -137,7 +137,7 @@ public okhttp3.Call challengeCreateCall(String userID, ChallengeCreateReq challe } @SuppressWarnings("rawtypes") - private okhttp3.Call challengeCreateValidateBeforeCall(String userID, ChallengeCreateReq challengeCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call challengeCreateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull ChallengeCreateReq challengeCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling challengeCreate(Async)"); @@ -153,9 +153,9 @@ private okhttp3.Call challengeCreateValidateBeforeCall(String userID, ChallengeC } /** - * - * Create a new challenge to verify a login identifier - * @param userID ID of user (required) + * Create a challenge for a user + * Creates a new challenge to verify a login identifier for a user by given `userID`. Challenges come in three flavors: **Email OTP**, **SMS OTP**, and **Email Magiclink**. **OTP** stands for One-Time Password. It is a unique code sent to the user via email or SMS, which they must enter to complete the verification process. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeCreateReq (required) * @return Challenge * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -163,19 +163,19 @@ private okhttp3.Call challengeCreateValidateBeforeCall(String userID, ChallengeC - +
Response Details
Status Code Description Response Headers
200 Challenge has been created -
200 Challenge has been created. -
0 Error -
*/ - public Challenge challengeCreate(String userID, ChallengeCreateReq challengeCreateReq) throws ApiException { + public Challenge challengeCreate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull ChallengeCreateReq challengeCreateReq) throws ApiException { ApiResponse localVarResp = challengeCreateWithHttpInfo(userID, challengeCreateReq); return localVarResp.getData(); } /** - * - * Create a new challenge to verify a login identifier - * @param userID ID of user (required) + * Create a challenge for a user + * Creates a new challenge to verify a login identifier for a user by given `userID`. Challenges come in three flavors: **Email OTP**, **SMS OTP**, and **Email Magiclink**. **OTP** stands for One-Time Password. It is a unique code sent to the user via email or SMS, which they must enter to complete the verification process. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeCreateReq (required) * @return ApiResponse<Challenge> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -183,20 +183,20 @@ public Challenge challengeCreate(String userID, ChallengeCreateReq challengeCrea - +
Response Details
Status Code Description Response Headers
200 Challenge has been created -
200 Challenge has been created. -
0 Error -
*/ - public ApiResponse challengeCreateWithHttpInfo(String userID, ChallengeCreateReq challengeCreateReq) throws ApiException { + public ApiResponse challengeCreateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull ChallengeCreateReq challengeCreateReq) throws ApiException { okhttp3.Call localVarCall = challengeCreateValidateBeforeCall(userID, challengeCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Create a new challenge to verify a login identifier - * @param userID ID of user (required) + * Create a challenge for a user (asynchronously) + * Creates a new challenge to verify a login identifier for a user by given `userID`. Challenges come in three flavors: **Email OTP**, **SMS OTP**, and **Email Magiclink**. **OTP** stands for One-Time Password. It is a unique code sent to the user via email or SMS, which they must enter to complete the verification process. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeCreateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -205,11 +205,11 @@ public ApiResponse challengeCreateWithHttpInfo(String userID, Challen - +
Response Details
Status Code Description Response Headers
200 Challenge has been created -
200 Challenge has been created. -
0 Error -
*/ - public okhttp3.Call challengeCreateAsync(String userID, ChallengeCreateReq challengeCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call challengeCreateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull ChallengeCreateReq challengeCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = challengeCreateValidateBeforeCall(userID, challengeCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -218,7 +218,7 @@ public okhttp3.Call challengeCreateAsync(String userID, ChallengeCreateReq chall } /** * Build call for challengeUpdate - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeID ID of challenge (required) * @param challengeUpdateReq (required) * @param _callback Callback for upload/download progress @@ -228,11 +228,11 @@ public okhttp3.Call challengeCreateAsync(String userID, ChallengeCreateReq chall - +
Response Details
Status Code Description Response Headers
200 Challenge has been updated -
200 Challenge has been updated. -
0 Error -
*/ - public okhttp3.Call challengeUpdateCall(String userID, String challengeID, ChallengeUpdateReq challengeUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call challengeUpdateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String challengeID, @javax.annotation.Nonnull ChallengeUpdateReq challengeUpdateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -280,7 +280,7 @@ public okhttp3.Call challengeUpdateCall(String userID, String challengeID, Chall } @SuppressWarnings("rawtypes") - private okhttp3.Call challengeUpdateValidateBeforeCall(String userID, String challengeID, ChallengeUpdateReq challengeUpdateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call challengeUpdateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String challengeID, @javax.annotation.Nonnull ChallengeUpdateReq challengeUpdateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling challengeUpdate(Async)"); @@ -301,9 +301,9 @@ private okhttp3.Call challengeUpdateValidateBeforeCall(String userID, String cha } /** - * - * Updates a challenge (e.g. from pending to completed) - * @param userID ID of user (required) + * Update a challenge for a user + * Updates a challenge for a user by given `userID` and `challengeID`. For example, this can be used to change the challenge status from `pending` to `completed`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeID ID of challenge (required) * @param challengeUpdateReq (required) * @return Challenge @@ -312,19 +312,19 @@ private okhttp3.Call challengeUpdateValidateBeforeCall(String userID, String cha - +
Response Details
Status Code Description Response Headers
200 Challenge has been updated -
200 Challenge has been updated. -
0 Error -
*/ - public Challenge challengeUpdate(String userID, String challengeID, ChallengeUpdateReq challengeUpdateReq) throws ApiException { + public Challenge challengeUpdate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String challengeID, @javax.annotation.Nonnull ChallengeUpdateReq challengeUpdateReq) throws ApiException { ApiResponse localVarResp = challengeUpdateWithHttpInfo(userID, challengeID, challengeUpdateReq); return localVarResp.getData(); } /** - * - * Updates a challenge (e.g. from pending to completed) - * @param userID ID of user (required) + * Update a challenge for a user + * Updates a challenge for a user by given `userID` and `challengeID`. For example, this can be used to change the challenge status from `pending` to `completed`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeID ID of challenge (required) * @param challengeUpdateReq (required) * @return ApiResponse<Challenge> @@ -333,20 +333,20 @@ public Challenge challengeUpdate(String userID, String challengeID, ChallengeUpd - +
Response Details
Status Code Description Response Headers
200 Challenge has been updated -
200 Challenge has been updated. -
0 Error -
*/ - public ApiResponse challengeUpdateWithHttpInfo(String userID, String challengeID, ChallengeUpdateReq challengeUpdateReq) throws ApiException { + public ApiResponse challengeUpdateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String challengeID, @javax.annotation.Nonnull ChallengeUpdateReq challengeUpdateReq) throws ApiException { okhttp3.Call localVarCall = challengeUpdateValidateBeforeCall(userID, challengeID, challengeUpdateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Updates a challenge (e.g. from pending to completed) - * @param userID ID of user (required) + * Update a challenge for a user (asynchronously) + * Updates a challenge for a user by given `userID` and `challengeID`. For example, this can be used to change the challenge status from `pending` to `completed`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param challengeID ID of challenge (required) * @param challengeUpdateReq (required) * @param _callback The callback to be executed when the API call finishes @@ -356,11 +356,11 @@ public ApiResponse challengeUpdateWithHttpInfo(String userID, String - +
Response Details
Status Code Description Response Headers
200 Challenge has been updated -
200 Challenge has been updated. -
0 Error -
*/ - public okhttp3.Call challengeUpdateAsync(String userID, String challengeID, ChallengeUpdateReq challengeUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call challengeUpdateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String challengeID, @javax.annotation.Nonnull ChallengeUpdateReq challengeUpdateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = challengeUpdateValidateBeforeCall(userID, challengeID, challengeUpdateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/api/ClientEnvsApi.java b/src/main/java/com/corbado/generated/api/ClientEnvsApi.java new file mode 100644 index 0000000..c484e03 --- /dev/null +++ b/src/main/java/com/corbado/generated/api/ClientEnvsApi.java @@ -0,0 +1,207 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.api; + +import com.corbado.generated.invoker.ApiCallback; +import com.corbado.generated.invoker.ApiClient; +import com.corbado.generated.invoker.ApiException; +import com.corbado.generated.invoker.ApiResponse; +import com.corbado.generated.invoker.Configuration; +import com.corbado.generated.invoker.Pair; +import com.corbado.generated.invoker.ProgressRequestBody; +import com.corbado.generated.invoker.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.corbado.generated.model.ClientEnvList; +import com.corbado.generated.model.UserListDefaultResponse; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ClientEnvsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ClientEnvsApi() { + this(Configuration.getDefaultApiClient()); + } + + public ClientEnvsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for clientEnvList + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of all matching clientEnvs. -
0 Error -
+ */ + public okhttp3.Call clientEnvListCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{userID}/clientEnvs" + .replace("{" + "userID" + "}", localVarApiClient.escapeString(userID.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "basicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call clientEnvListValidateBeforeCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userID' is set + if (userID == null) { + throw new ApiException("Missing the required parameter 'userID' when calling clientEnvList(Async)"); + } + + return clientEnvListCall(userID, _callback); + + } + + /** + * List client environments for a user + * Returns a list of clientEnvs + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @return ClientEnvList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of all matching clientEnvs. -
0 Error -
+ */ + public ClientEnvList clientEnvList(@javax.annotation.Nonnull String userID) throws ApiException { + ApiResponse localVarResp = clientEnvListWithHttpInfo(userID); + return localVarResp.getData(); + } + + /** + * List client environments for a user + * Returns a list of clientEnvs + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @return ApiResponse<ClientEnvList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of all matching clientEnvs. -
0 Error -
+ */ + public ApiResponse clientEnvListWithHttpInfo(@javax.annotation.Nonnull String userID) throws ApiException { + okhttp3.Call localVarCall = clientEnvListValidateBeforeCall(userID, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List client environments for a user (asynchronously) + * Returns a list of clientEnvs + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of all matching clientEnvs. -
0 Error -
+ */ + public okhttp3.Call clientEnvListAsync(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = clientEnvListValidateBeforeCall(userID, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/com/corbado/generated/api/ConnectTokensApi.java b/src/main/java/com/corbado/generated/api/ConnectTokensApi.java index 33c59b4..9c52b23 100644 --- a/src/main/java/com/corbado/generated/api/ConnectTokensApi.java +++ b/src/main/java/com/corbado/generated/api/ConnectTokensApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -31,8 +31,8 @@ import com.corbado.generated.model.ConnectTokenCreateReq; import com.corbado.generated.model.ConnectTokenList; import com.corbado.generated.model.ConnectTokenUpdateReq; -import com.corbado.generated.model.ErrorRsp; -import com.corbado.generated.model.GenericRsp; +import com.corbado.generated.model.UserDelete200Response; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -87,11 +87,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Connect token has been created -
200 ConnectToken has been created. -
0 Error -
*/ - public okhttp3.Call connectTokenCreateCall(ConnectTokenCreateReq connectTokenCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenCreateCall(@javax.annotation.Nonnull ConnectTokenCreateReq connectTokenCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -137,7 +137,7 @@ public okhttp3.Call connectTokenCreateCall(ConnectTokenCreateReq connectTokenCre } @SuppressWarnings("rawtypes") - private okhttp3.Call connectTokenCreateValidateBeforeCall(ConnectTokenCreateReq connectTokenCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectTokenCreateValidateBeforeCall(@javax.annotation.Nonnull ConnectTokenCreateReq connectTokenCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectTokenCreateReq' is set if (connectTokenCreateReq == null) { throw new ApiException("Missing the required parameter 'connectTokenCreateReq' when calling connectTokenCreate(Async)"); @@ -148,8 +148,8 @@ private okhttp3.Call connectTokenCreateValidateBeforeCall(ConnectTokenCreateReq } /** - * - * Create a new connect token + * Create a connectToken + * Creates a new ConnectToken, which is essential for [Corbado Connect](/corbado-connect). ConnectTokens authorize actions that modify user data. Consult the [Documentation](/corbado-connect/concepts/connect-token) for more details. * @param connectTokenCreateReq (required) * @return ConnectToken * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -157,18 +157,18 @@ private okhttp3.Call connectTokenCreateValidateBeforeCall(ConnectTokenCreateReq - +
Response Details
Status Code Description Response Headers
200 Connect token has been created -
200 ConnectToken has been created. -
0 Error -
*/ - public ConnectToken connectTokenCreate(ConnectTokenCreateReq connectTokenCreateReq) throws ApiException { + public ConnectToken connectTokenCreate(@javax.annotation.Nonnull ConnectTokenCreateReq connectTokenCreateReq) throws ApiException { ApiResponse localVarResp = connectTokenCreateWithHttpInfo(connectTokenCreateReq); return localVarResp.getData(); } /** - * - * Create a new connect token + * Create a connectToken + * Creates a new ConnectToken, which is essential for [Corbado Connect](/corbado-connect). ConnectTokens authorize actions that modify user data. Consult the [Documentation](/corbado-connect/concepts/connect-token) for more details. * @param connectTokenCreateReq (required) * @return ApiResponse<ConnectToken> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -176,19 +176,19 @@ public ConnectToken connectTokenCreate(ConnectTokenCreateReq connectTokenCreateR - +
Response Details
Status Code Description Response Headers
200 Connect token has been created -
200 ConnectToken has been created. -
0 Error -
*/ - public ApiResponse connectTokenCreateWithHttpInfo(ConnectTokenCreateReq connectTokenCreateReq) throws ApiException { + public ApiResponse connectTokenCreateWithHttpInfo(@javax.annotation.Nonnull ConnectTokenCreateReq connectTokenCreateReq) throws ApiException { okhttp3.Call localVarCall = connectTokenCreateValidateBeforeCall(connectTokenCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Create a new connect token + * Create a connectToken (asynchronously) + * Creates a new ConnectToken, which is essential for [Corbado Connect](/corbado-connect). ConnectTokens authorize actions that modify user data. Consult the [Documentation](/corbado-connect/concepts/connect-token) for more details. * @param connectTokenCreateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -197,11 +197,11 @@ public ApiResponse connectTokenCreateWithHttpInfo(ConnectTokenCrea - +
Response Details
Status Code Description Response Headers
200 Connect token has been created -
200 ConnectToken has been created. -
0 Error -
*/ - public okhttp3.Call connectTokenCreateAsync(ConnectTokenCreateReq connectTokenCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenCreateAsync(@javax.annotation.Nonnull ConnectTokenCreateReq connectTokenCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectTokenCreateValidateBeforeCall(connectTokenCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -210,7 +210,7 @@ public okhttp3.Call connectTokenCreateAsync(ConnectTokenCreateReq connectTokenCr } /** * Build call for connectTokenDelete - * @param connectTokenID ID of an append token (required) + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -218,11 +218,11 @@ public okhttp3.Call connectTokenCreateAsync(ConnectTokenCreateReq connectTokenCr - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call connectTokenDeleteCall(String connectTokenID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenDeleteCall(@javax.annotation.Nonnull String connectTokenID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -268,7 +268,7 @@ public okhttp3.Call connectTokenDeleteCall(String connectTokenID, final ApiCallb } @SuppressWarnings("rawtypes") - private okhttp3.Call connectTokenDeleteValidateBeforeCall(String connectTokenID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectTokenDeleteValidateBeforeCall(@javax.annotation.Nonnull String connectTokenID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectTokenID' is set if (connectTokenID == null) { throw new ApiException("Missing the required parameter 'connectTokenID' when calling connectTokenDelete(Async)"); @@ -279,48 +279,48 @@ private okhttp3.Call connectTokenDeleteValidateBeforeCall(String connectTokenID, } /** - * - * Deletes an existing append token - * @param connectTokenID ID of an append token (required) - * @return GenericRsp + * Delete a ConnectToken + * Deletes an existing ConnectToken. + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp connectTokenDelete(String connectTokenID) throws ApiException { - ApiResponse localVarResp = connectTokenDeleteWithHttpInfo(connectTokenID); + public UserDelete200Response connectTokenDelete(@javax.annotation.Nonnull String connectTokenID) throws ApiException { + ApiResponse localVarResp = connectTokenDeleteWithHttpInfo(connectTokenID); return localVarResp.getData(); } /** - * - * Deletes an existing append token - * @param connectTokenID ID of an append token (required) - * @return ApiResponse<GenericRsp> + * Delete a ConnectToken + * Deletes an existing ConnectToken. + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse connectTokenDeleteWithHttpInfo(String connectTokenID) throws ApiException { + public ApiResponse connectTokenDeleteWithHttpInfo(@javax.annotation.Nonnull String connectTokenID) throws ApiException { okhttp3.Call localVarCall = connectTokenDeleteValidateBeforeCall(connectTokenID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Deletes an existing append token - * @param connectTokenID ID of an append token (required) + * Delete a ConnectToken (asynchronously) + * Deletes an existing ConnectToken. + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -328,23 +328,23 @@ public ApiResponse connectTokenDeleteWithHttpInfo(String connectToke - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call connectTokenDeleteAsync(String connectTokenID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenDeleteAsync(@javax.annotation.Nonnull String connectTokenID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectTokenDeleteValidateBeforeCall(connectTokenID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for connectTokenList - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -352,11 +352,11 @@ public okhttp3.Call connectTokenDeleteAsync(String connectTokenID, final ApiCall - +
Response Details
Status Code Description Response Headers
200 List of all matching append tokens -
200 List of all matching append tokens. -
0 Error -
*/ - public okhttp3.Call connectTokenListCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenListCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -417,63 +417,63 @@ public okhttp3.Call connectTokenListCall(String sort, List filter, Integ } @SuppressWarnings("rawtypes") - private okhttp3.Call connectTokenListValidateBeforeCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectTokenListValidateBeforeCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { return connectTokenListCall(sort, filter, page, pageSize, _callback); } /** - * - * Returns a list of matching append tokens - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all ConnectTokens + * Returns a list of ConnectTokens. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. - The `filter` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ConnectTokenList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching append tokens -
200 List of all matching append tokens. -
0 Error -
*/ - public ConnectTokenList connectTokenList(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ConnectTokenList connectTokenList(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = connectTokenListWithHttpInfo(sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of matching append tokens - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all ConnectTokens + * Returns a list of ConnectTokens. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. - The `filter` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<ConnectTokenList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching append tokens -
200 List of all matching append tokens. -
0 Error -
*/ - public ApiResponse connectTokenListWithHttpInfo(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse connectTokenListWithHttpInfo(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = connectTokenListValidateBeforeCall(sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of matching append tokens - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all ConnectTokens (asynchronously) + * Returns a list of ConnectTokens. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. - The `filter` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -481,11 +481,11 @@ public ApiResponse connectTokenListWithHttpInfo(String sort, L - +
Response Details
Status Code Description Response Headers
200 List of all matching append tokens -
200 List of all matching append tokens. -
0 Error -
*/ - public okhttp3.Call connectTokenListAsync(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenListAsync(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectTokenListValidateBeforeCall(sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -494,7 +494,7 @@ public okhttp3.Call connectTokenListAsync(String sort, List filter, Inte } /** * Build call for connectTokenUpdate - * @param connectTokenID ID of an append token (required) + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param connectTokenUpdateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -503,11 +503,11 @@ public okhttp3.Call connectTokenListAsync(String sort, List filter, Inte - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call connectTokenUpdateCall(String connectTokenID, ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenUpdateCall(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -554,7 +554,7 @@ public okhttp3.Call connectTokenUpdateCall(String connectTokenID, ConnectTokenUp } @SuppressWarnings("rawtypes") - private okhttp3.Call connectTokenUpdateValidateBeforeCall(String connectTokenID, ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call connectTokenUpdateValidateBeforeCall(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'connectTokenID' is set if (connectTokenID == null) { throw new ApiException("Missing the required parameter 'connectTokenID' when calling connectTokenUpdate(Async)"); @@ -570,50 +570,50 @@ private okhttp3.Call connectTokenUpdateValidateBeforeCall(String connectTokenID, } /** - * - * Updates an existing append token - * @param connectTokenID ID of an append token (required) + * Update a ConnectToken + * Updates an existing ConnectToken. + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param connectTokenUpdateReq (required) - * @return GenericRsp + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp connectTokenUpdate(String connectTokenID, ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { - ApiResponse localVarResp = connectTokenUpdateWithHttpInfo(connectTokenID, connectTokenUpdateReq); + public UserDelete200Response connectTokenUpdate(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { + ApiResponse localVarResp = connectTokenUpdateWithHttpInfo(connectTokenID, connectTokenUpdateReq); return localVarResp.getData(); } /** - * - * Updates an existing append token - * @param connectTokenID ID of an append token (required) + * Update a ConnectToken + * Updates an existing ConnectToken. + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param connectTokenUpdateReq (required) - * @return ApiResponse<GenericRsp> + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse connectTokenUpdateWithHttpInfo(String connectTokenID, ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { + public ApiResponse connectTokenUpdateWithHttpInfo(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { okhttp3.Call localVarCall = connectTokenUpdateValidateBeforeCall(connectTokenID, connectTokenUpdateReq, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Updates an existing append token - * @param connectTokenID ID of an append token (required) + * Update a ConnectToken (asynchronously) + * Updates an existing ConnectToken. + * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param connectTokenUpdateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -622,14 +622,14 @@ public ApiResponse connectTokenUpdateWithHttpInfo(String connectToke - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call connectTokenUpdateAsync(String connectTokenID, ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenUpdateAsync(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectTokenUpdateValidateBeforeCall(connectTokenID, connectTokenUpdateReq, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/IdentifiersApi.java b/src/main/java/com/corbado/generated/api/IdentifiersApi.java index ed886ce..899b277 100644 --- a/src/main/java/com/corbado/generated/api/IdentifiersApi.java +++ b/src/main/java/com/corbado/generated/api/IdentifiersApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,12 +27,12 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; -import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.Identifier; import com.corbado.generated.model.IdentifierCreateReq; import com.corbado.generated.model.IdentifierList; import com.corbado.generated.model.IdentifierUpdateReq; +import com.corbado.generated.model.UserDelete200Response; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -79,7 +79,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for identifierCreate - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param identifierCreateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -88,11 +88,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Identifier has been created -
200 Identifier has been created. -
0 Error -
*/ - public okhttp3.Call identifierCreateCall(String userID, IdentifierCreateReq identifierCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierCreateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull IdentifierCreateReq identifierCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -139,7 +139,7 @@ public okhttp3.Call identifierCreateCall(String userID, IdentifierCreateReq iden } @SuppressWarnings("rawtypes") - private okhttp3.Call identifierCreateValidateBeforeCall(String userID, IdentifierCreateReq identifierCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call identifierCreateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull IdentifierCreateReq identifierCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling identifierCreate(Async)"); @@ -155,9 +155,9 @@ private okhttp3.Call identifierCreateValidateBeforeCall(String userID, Identifie } /** - * - * Create a new login identifier - * @param userID ID of user (required) + * Create a login identifier for a user + * Creates a new login identifier for a user with the given ID. Login identifiers can be of the type `email`, `phone`, or `username`. Separating login identifiers from users allows Corbado to manage multiple login identifiers of different types for each user. You can set up login identifiers in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Overview) or consult the [Documentation](/corbado-complete/overview/configuration/user-flow-configuration#2-login-identifiers-and-fallbacks) for more details. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param identifierCreateReq (required) * @return Identifier * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -165,19 +165,19 @@ private okhttp3.Call identifierCreateValidateBeforeCall(String userID, Identifie - +
Response Details
Status Code Description Response Headers
200 Identifier has been created -
200 Identifier has been created. -
0 Error -
*/ - public Identifier identifierCreate(String userID, IdentifierCreateReq identifierCreateReq) throws ApiException { + public Identifier identifierCreate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull IdentifierCreateReq identifierCreateReq) throws ApiException { ApiResponse localVarResp = identifierCreateWithHttpInfo(userID, identifierCreateReq); return localVarResp.getData(); } /** - * - * Create a new login identifier - * @param userID ID of user (required) + * Create a login identifier for a user + * Creates a new login identifier for a user with the given ID. Login identifiers can be of the type `email`, `phone`, or `username`. Separating login identifiers from users allows Corbado to manage multiple login identifiers of different types for each user. You can set up login identifiers in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Overview) or consult the [Documentation](/corbado-complete/overview/configuration/user-flow-configuration#2-login-identifiers-and-fallbacks) for more details. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param identifierCreateReq (required) * @return ApiResponse<Identifier> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -185,20 +185,20 @@ public Identifier identifierCreate(String userID, IdentifierCreateReq identifier - +
Response Details
Status Code Description Response Headers
200 Identifier has been created -
200 Identifier has been created. -
0 Error -
*/ - public ApiResponse identifierCreateWithHttpInfo(String userID, IdentifierCreateReq identifierCreateReq) throws ApiException { + public ApiResponse identifierCreateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull IdentifierCreateReq identifierCreateReq) throws ApiException { okhttp3.Call localVarCall = identifierCreateValidateBeforeCall(userID, identifierCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Create a new login identifier - * @param userID ID of user (required) + * Create a login identifier for a user (asynchronously) + * Creates a new login identifier for a user with the given ID. Login identifiers can be of the type `email`, `phone`, or `username`. Separating login identifiers from users allows Corbado to manage multiple login identifiers of different types for each user. You can set up login identifiers in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Overview) or consult the [Documentation](/corbado-complete/overview/configuration/user-flow-configuration#2-login-identifiers-and-fallbacks) for more details. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param identifierCreateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -207,11 +207,11 @@ public ApiResponse identifierCreateWithHttpInfo(String userID, Ident - +
Response Details
Status Code Description Response Headers
200 Identifier has been created -
200 Identifier has been created. -
0 Error -
*/ - public okhttp3.Call identifierCreateAsync(String userID, IdentifierCreateReq identifierCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierCreateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull IdentifierCreateReq identifierCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = identifierCreateValidateBeforeCall(userID, identifierCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -220,8 +220,8 @@ public okhttp3.Call identifierCreateAsync(String userID, IdentifierCreateReq ide } /** * Build call for identifierDelete - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -229,11 +229,11 @@ public okhttp3.Call identifierCreateAsync(String userID, IdentifierCreateReq ide - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call identifierDeleteCall(String userID, String identifierID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierDeleteCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -280,7 +280,7 @@ public okhttp3.Call identifierDeleteCall(String userID, String identifierID, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call identifierDeleteValidateBeforeCall(String userID, String identifierID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call identifierDeleteValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling identifierDelete(Async)"); @@ -296,51 +296,51 @@ private okhttp3.Call identifierDeleteValidateBeforeCall(String userID, String id } /** - * - * Delete an existing login identifier - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) - * @return GenericRsp + * Delete a login identifier for a user + * Delete an existing login identifier for a user by given `userID` and `identifierID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp identifierDelete(String userID, String identifierID) throws ApiException { - ApiResponse localVarResp = identifierDeleteWithHttpInfo(userID, identifierID); + public UserDelete200Response identifierDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID) throws ApiException { + ApiResponse localVarResp = identifierDeleteWithHttpInfo(userID, identifierID); return localVarResp.getData(); } /** - * - * Delete an existing login identifier - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) - * @return ApiResponse<GenericRsp> + * Delete a login identifier for a user + * Delete an existing login identifier for a user by given `userID` and `identifierID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse identifierDeleteWithHttpInfo(String userID, String identifierID) throws ApiException { + public ApiResponse identifierDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID) throws ApiException { okhttp3.Call localVarCall = identifierDeleteValidateBeforeCall(userID, identifierID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Delete an existing login identifier - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) + * Delete a login identifier for a user (asynchronously) + * Delete an existing login identifier for a user by given `userID` and `identifierID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -348,23 +348,23 @@ public ApiResponse identifierDeleteWithHttpInfo(String userID, Strin - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call identifierDeleteAsync(String userID, String identifierID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = identifierDeleteValidateBeforeCall(userID, identifierID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for identifierList - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -372,11 +372,11 @@ public okhttp3.Call identifierDeleteAsync(String userID, String identifierID, fi - +
Response Details
Status Code Description Response Headers
200 List of all matching identifiers -
200 List of all matching login identifiers. -
0 Error -
*/ - public okhttp3.Call identifierListCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierListCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -437,63 +437,63 @@ public okhttp3.Call identifierListCall(String sort, List filter, Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call identifierListValidateBeforeCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call identifierListValidateBeforeCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { return identifierListCall(sort, filter, page, pageSize, _callback); } /** - * - * Returns a list of matching identifiers - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all login identifiers + * Returns a list of login identifiers. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. - The `filter` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return IdentifierList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching identifiers -
200 List of all matching login identifiers. -
0 Error -
*/ - public IdentifierList identifierList(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public IdentifierList identifierList(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = identifierListWithHttpInfo(sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of matching identifiers - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all login identifiers + * Returns a list of login identifiers. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. - The `filter` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<IdentifierList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching identifiers -
200 List of all matching login identifiers. -
0 Error -
*/ - public ApiResponse identifierListWithHttpInfo(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse identifierListWithHttpInfo(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = identifierListValidateBeforeCall(sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of matching identifiers - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all login identifiers (asynchronously) + * Returns a list of login identifiers. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. - The `filter` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -501,11 +501,11 @@ public ApiResponse identifierListWithHttpInfo(String sort, List< - +
Response Details
Status Code Description Response Headers
200 List of all matching identifiers -
200 List of all matching login identifiers. -
0 Error -
*/ - public okhttp3.Call identifierListAsync(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierListAsync(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = identifierListValidateBeforeCall(sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -514,8 +514,8 @@ public okhttp3.Call identifierListAsync(String sort, List filter, Intege } /** * Build call for identifierUpdate - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) * @param identifierUpdateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -524,11 +524,11 @@ public okhttp3.Call identifierListAsync(String sort, List filter, Intege - +
Response Details
Status Code Description Response Headers
200 Identifier has been updated -
200 Identifier has been updated. -
0 Error -
*/ - public okhttp3.Call identifierUpdateCall(String userID, String identifierID, IdentifierUpdateReq identifierUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierUpdateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, @javax.annotation.Nonnull IdentifierUpdateReq identifierUpdateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -576,7 +576,7 @@ public okhttp3.Call identifierUpdateCall(String userID, String identifierID, Ide } @SuppressWarnings("rawtypes") - private okhttp3.Call identifierUpdateValidateBeforeCall(String userID, String identifierID, IdentifierUpdateReq identifierUpdateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call identifierUpdateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, @javax.annotation.Nonnull IdentifierUpdateReq identifierUpdateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling identifierUpdate(Async)"); @@ -597,10 +597,10 @@ private okhttp3.Call identifierUpdateValidateBeforeCall(String userID, String id } /** - * - * Updates a login identifier (e.g. from pending to verified) - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) + * Update a login identifier for a user + * Updates a login identifier (e.g. from `pending` to `verified`) for a user by given `userID` and `identifierID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) * @param identifierUpdateReq (required) * @return Identifier * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -608,20 +608,20 @@ private okhttp3.Call identifierUpdateValidateBeforeCall(String userID, String id - +
Response Details
Status Code Description Response Headers
200 Identifier has been updated -
200 Identifier has been updated. -
0 Error -
*/ - public Identifier identifierUpdate(String userID, String identifierID, IdentifierUpdateReq identifierUpdateReq) throws ApiException { + public Identifier identifierUpdate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, @javax.annotation.Nonnull IdentifierUpdateReq identifierUpdateReq) throws ApiException { ApiResponse localVarResp = identifierUpdateWithHttpInfo(userID, identifierID, identifierUpdateReq); return localVarResp.getData(); } /** - * - * Updates a login identifier (e.g. from pending to verified) - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) + * Update a login identifier for a user + * Updates a login identifier (e.g. from `pending` to `verified`) for a user by given `userID` and `identifierID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) * @param identifierUpdateReq (required) * @return ApiResponse<Identifier> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -629,21 +629,21 @@ public Identifier identifierUpdate(String userID, String identifierID, Identifie - +
Response Details
Status Code Description Response Headers
200 Identifier has been updated -
200 Identifier has been updated. -
0 Error -
*/ - public ApiResponse identifierUpdateWithHttpInfo(String userID, String identifierID, IdentifierUpdateReq identifierUpdateReq) throws ApiException { + public ApiResponse identifierUpdateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, @javax.annotation.Nonnull IdentifierUpdateReq identifierUpdateReq) throws ApiException { okhttp3.Call localVarCall = identifierUpdateValidateBeforeCall(userID, identifierID, identifierUpdateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Updates a login identifier (e.g. from pending to verified) - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) + * Update a login identifier for a user (asynchronously) + * Updates a login identifier (e.g. from `pending` to `verified`) for a user by given `userID` and `identifierID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) * @param identifierUpdateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -652,11 +652,11 @@ public ApiResponse identifierUpdateWithHttpInfo(String userID, Strin - +
Response Details
Status Code Description Response Headers
200 Identifier has been updated -
200 Identifier has been updated. -
0 Error -
*/ - public okhttp3.Call identifierUpdateAsync(String userID, String identifierID, IdentifierUpdateReq identifierUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierUpdateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, @javax.annotation.Nonnull IdentifierUpdateReq identifierUpdateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = identifierUpdateValidateBeforeCall(userID, identifierID, identifierUpdateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java b/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java index 4141d15..6717206 100644 --- a/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java +++ b/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,10 +27,10 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; import com.corbado.generated.model.PasskeyChallenge; import com.corbado.generated.model.PasskeyChallengeList; import com.corbado.generated.model.PasskeyChallengeUpdateReq; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -77,11 +77,11 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for passkeyChallengeList - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -89,11 +89,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey challenges -
200 List of all matching passkey challenges. -
0 Error -
*/ - public okhttp3.Call passkeyChallengeListCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyChallengeListCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -155,7 +155,7 @@ public okhttp3.Call passkeyChallengeListCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyChallengeListValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling passkeyChallengeList(Async)"); @@ -166,60 +166,60 @@ private okhttp3.Call passkeyChallengeListValidateBeforeCall(String userID, Strin } /** - * - * Returns a list of matching passkey challenges - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all passkey challenges for a user + * Returns a list of passkey challenges for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. - The `filter` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return PasskeyChallengeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey challenges -
200 List of all matching passkey challenges. -
0 Error -
*/ - public PasskeyChallengeList passkeyChallengeList(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public PasskeyChallengeList passkeyChallengeList(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = passkeyChallengeListWithHttpInfo(userID, sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of matching passkey challenges - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all passkey challenges for a user + * Returns a list of passkey challenges for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. - The `filter` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<PasskeyChallengeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey challenges -
200 List of all matching passkey challenges. -
0 Error -
*/ - public ApiResponse passkeyChallengeListWithHttpInfo(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse passkeyChallengeListWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = passkeyChallengeListValidateBeforeCall(userID, sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of matching passkey challenges - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all passkey challenges for a user (asynchronously) + * Returns a list of passkey challenges for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. - The `filter` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -227,11 +227,11 @@ public ApiResponse passkeyChallengeListWithHttpInfo(String - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey challenges -
200 List of all matching passkey challenges. -
0 Error -
*/ - public okhttp3.Call passkeyChallengeListAsync(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyChallengeListAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyChallengeListValidateBeforeCall(userID, sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -240,7 +240,7 @@ public okhttp3.Call passkeyChallengeListAsync(String userID, String sort, List Response Details Status Code Description Response Headers - 200 Passkey challenge has been updated - + 200 Passkey challenge has been updated. - 0 Error - */ - public okhttp3.Call passkeyChallengeUpdateCall(String userID, String passkeyChallengeID, PasskeyChallengeUpdateReq passkeyChallengeUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyChallengeUpdateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyChallengeID, @javax.annotation.Nonnull PasskeyChallengeUpdateReq passkeyChallengeUpdateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -302,7 +302,7 @@ public okhttp3.Call passkeyChallengeUpdateCall(String userID, String passkeyChal } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyChallengeUpdateValidateBeforeCall(String userID, String passkeyChallengeID, PasskeyChallengeUpdateReq passkeyChallengeUpdateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyChallengeUpdateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyChallengeID, @javax.annotation.Nonnull PasskeyChallengeUpdateReq passkeyChallengeUpdateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling passkeyChallengeUpdate(Async)"); @@ -323,9 +323,9 @@ private okhttp3.Call passkeyChallengeUpdateValidateBeforeCall(String userID, Str } /** - * - * Updates a passkey challenge - * @param userID ID of user (required) + * Update a passkey challenge for a user + * Updates a passkey challenge for a user by given `userID` and `passkeyChallengeID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyChallengeID ID of a passkey challenge (required) * @param passkeyChallengeUpdateReq (required) * @return PasskeyChallenge @@ -334,19 +334,19 @@ private okhttp3.Call passkeyChallengeUpdateValidateBeforeCall(String userID, Str - +
Response Details
Status Code Description Response Headers
200 Passkey challenge has been updated -
200 Passkey challenge has been updated. -
0 Error -
*/ - public PasskeyChallenge passkeyChallengeUpdate(String userID, String passkeyChallengeID, PasskeyChallengeUpdateReq passkeyChallengeUpdateReq) throws ApiException { + public PasskeyChallenge passkeyChallengeUpdate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyChallengeID, @javax.annotation.Nonnull PasskeyChallengeUpdateReq passkeyChallengeUpdateReq) throws ApiException { ApiResponse localVarResp = passkeyChallengeUpdateWithHttpInfo(userID, passkeyChallengeID, passkeyChallengeUpdateReq); return localVarResp.getData(); } /** - * - * Updates a passkey challenge - * @param userID ID of user (required) + * Update a passkey challenge for a user + * Updates a passkey challenge for a user by given `userID` and `passkeyChallengeID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyChallengeID ID of a passkey challenge (required) * @param passkeyChallengeUpdateReq (required) * @return ApiResponse<PasskeyChallenge> @@ -355,20 +355,20 @@ public PasskeyChallenge passkeyChallengeUpdate(String userID, String passkeyChal - +
Response Details
Status Code Description Response Headers
200 Passkey challenge has been updated -
200 Passkey challenge has been updated. -
0 Error -
*/ - public ApiResponse passkeyChallengeUpdateWithHttpInfo(String userID, String passkeyChallengeID, PasskeyChallengeUpdateReq passkeyChallengeUpdateReq) throws ApiException { + public ApiResponse passkeyChallengeUpdateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyChallengeID, @javax.annotation.Nonnull PasskeyChallengeUpdateReq passkeyChallengeUpdateReq) throws ApiException { okhttp3.Call localVarCall = passkeyChallengeUpdateValidateBeforeCall(userID, passkeyChallengeID, passkeyChallengeUpdateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Updates a passkey challenge - * @param userID ID of user (required) + * Update a passkey challenge for a user (asynchronously) + * Updates a passkey challenge for a user by given `userID` and `passkeyChallengeID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyChallengeID ID of a passkey challenge (required) * @param passkeyChallengeUpdateReq (required) * @param _callback The callback to be executed when the API call finishes @@ -378,11 +378,11 @@ public ApiResponse passkeyChallengeUpdateWithHttpInfo(String u - +
Response Details
Status Code Description Response Headers
200 Passkey challenge has been updated -
200 Passkey challenge has been updated. -
0 Error -
*/ - public okhttp3.Call passkeyChallengeUpdateAsync(String userID, String passkeyChallengeID, PasskeyChallengeUpdateReq passkeyChallengeUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyChallengeUpdateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyChallengeID, @javax.annotation.Nonnull PasskeyChallengeUpdateReq passkeyChallengeUpdateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyChallengeUpdateValidateBeforeCall(userID, passkeyChallengeID, passkeyChallengeUpdateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java b/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java index fd435b2..b2bbcad 100644 --- a/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java +++ b/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,11 +27,11 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; -import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.PasskeyEvent; import com.corbado.generated.model.PasskeyEventCreateReq; import com.corbado.generated.model.PasskeyEventList; +import com.corbado.generated.model.UserDelete200Response; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for passkeyEventCreate - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventCreateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -87,11 +87,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Passkey event has been created -
200 Passkey event has been created. -
0 Error -
*/ - public okhttp3.Call passkeyEventCreateCall(String userID, PasskeyEventCreateReq passkeyEventCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyEventCreateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull PasskeyEventCreateReq passkeyEventCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -138,7 +138,7 @@ public okhttp3.Call passkeyEventCreateCall(String userID, PasskeyEventCreateReq } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyEventCreateValidateBeforeCall(String userID, PasskeyEventCreateReq passkeyEventCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyEventCreateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull PasskeyEventCreateReq passkeyEventCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling passkeyEventCreate(Async)"); @@ -154,9 +154,9 @@ private okhttp3.Call passkeyEventCreateValidateBeforeCall(String userID, Passkey } /** - * - * Create a new passkey event for a user - * @param userID ID of user (required) + * Create a passkey event for a user + * Creates a new passkey event for a user by given `userID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventCreateReq (required) * @return PasskeyEvent * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -164,19 +164,19 @@ private okhttp3.Call passkeyEventCreateValidateBeforeCall(String userID, Passkey - +
Response Details
Status Code Description Response Headers
200 Passkey event has been created -
200 Passkey event has been created. -
0 Error -
*/ - public PasskeyEvent passkeyEventCreate(String userID, PasskeyEventCreateReq passkeyEventCreateReq) throws ApiException { + public PasskeyEvent passkeyEventCreate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull PasskeyEventCreateReq passkeyEventCreateReq) throws ApiException { ApiResponse localVarResp = passkeyEventCreateWithHttpInfo(userID, passkeyEventCreateReq); return localVarResp.getData(); } /** - * - * Create a new passkey event for a user - * @param userID ID of user (required) + * Create a passkey event for a user + * Creates a new passkey event for a user by given `userID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventCreateReq (required) * @return ApiResponse<PasskeyEvent> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -184,20 +184,20 @@ public PasskeyEvent passkeyEventCreate(String userID, PasskeyEventCreateReq pass - +
Response Details
Status Code Description Response Headers
200 Passkey event has been created -
200 Passkey event has been created. -
0 Error -
*/ - public ApiResponse passkeyEventCreateWithHttpInfo(String userID, PasskeyEventCreateReq passkeyEventCreateReq) throws ApiException { + public ApiResponse passkeyEventCreateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull PasskeyEventCreateReq passkeyEventCreateReq) throws ApiException { okhttp3.Call localVarCall = passkeyEventCreateValidateBeforeCall(userID, passkeyEventCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Create a new passkey event for a user - * @param userID ID of user (required) + * Create a passkey event for a user (asynchronously) + * Creates a new passkey event for a user by given `userID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventCreateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -206,11 +206,11 @@ public ApiResponse passkeyEventCreateWithHttpInfo(String userID, P - +
Response Details
Status Code Description Response Headers
200 Passkey event has been created -
200 Passkey event has been created. -
0 Error -
*/ - public okhttp3.Call passkeyEventCreateAsync(String userID, PasskeyEventCreateReq passkeyEventCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyEventCreateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull PasskeyEventCreateReq passkeyEventCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyEventCreateValidateBeforeCall(userID, passkeyEventCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -219,7 +219,7 @@ public okhttp3.Call passkeyEventCreateAsync(String userID, PasskeyEventCreateReq } /** * Build call for passkeyEventDelete - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventID ID of a passkey event (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -228,11 +228,11 @@ public okhttp3.Call passkeyEventCreateAsync(String userID, PasskeyEventCreateReq - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyEventDeleteCall(String userID, String passkeyEventID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyEventDeleteCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -279,7 +279,7 @@ public okhttp3.Call passkeyEventDeleteCall(String userID, String passkeyEventID, } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyEventDeleteValidateBeforeCall(String userID, String passkeyEventID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyEventDeleteValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling passkeyEventDelete(Async)"); @@ -295,50 +295,50 @@ private okhttp3.Call passkeyEventDeleteValidateBeforeCall(String userID, String } /** - * - * Deletes an existing passkey event - * @param userID ID of user (required) + * Delete a passkey event for a user + * Deletes an existing passkey event for a user by given `userID` and `passkeyEventID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventID ID of a passkey event (required) - * @return GenericRsp + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp passkeyEventDelete(String userID, String passkeyEventID) throws ApiException { - ApiResponse localVarResp = passkeyEventDeleteWithHttpInfo(userID, passkeyEventID); + public UserDelete200Response passkeyEventDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID) throws ApiException { + ApiResponse localVarResp = passkeyEventDeleteWithHttpInfo(userID, passkeyEventID); return localVarResp.getData(); } /** - * - * Deletes an existing passkey event - * @param userID ID of user (required) + * Delete a passkey event for a user + * Deletes an existing passkey event for a user by given `userID` and `passkeyEventID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventID ID of a passkey event (required) - * @return ApiResponse<GenericRsp> + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse passkeyEventDeleteWithHttpInfo(String userID, String passkeyEventID) throws ApiException { + public ApiResponse passkeyEventDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID) throws ApiException { okhttp3.Call localVarCall = passkeyEventDeleteValidateBeforeCall(userID, passkeyEventID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Deletes an existing passkey event - * @param userID ID of user (required) + * Delete a passkey event for a user (asynchronously) + * Deletes an existing passkey event for a user by given `userID` and `passkeyEventID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventID ID of a passkey event (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -347,24 +347,24 @@ public ApiResponse passkeyEventDeleteWithHttpInfo(String userID, Str - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyEventDeleteAsync(String userID, String passkeyEventID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyEventDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyEventDeleteValidateBeforeCall(userID, passkeyEventID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for passkeyEventList - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -372,11 +372,11 @@ public okhttp3.Call passkeyEventDeleteAsync(String userID, String passkeyEventID - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey events -
200 List of all matching passkey events. -
0 Error -
*/ - public okhttp3.Call passkeyEventListCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyEventListCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -438,7 +438,7 @@ public okhttp3.Call passkeyEventListCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyEventListValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling passkeyEventList(Async)"); @@ -449,60 +449,60 @@ private okhttp3.Call passkeyEventListValidateBeforeCall(String userID, String so } /** - * - * Returns a list of matching passkey events - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all passkey events for a user + * Returns a list of passkey events for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `created` and `eventType`. - The `filter` parameter supports the following fields: `eventType`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return PasskeyEventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey events -
200 List of all matching passkey events. -
0 Error -
*/ - public PasskeyEventList passkeyEventList(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public PasskeyEventList passkeyEventList(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = passkeyEventListWithHttpInfo(userID, sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of matching passkey events - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all passkey events for a user + * Returns a list of passkey events for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `created` and `eventType`. - The `filter` parameter supports the following fields: `eventType`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<PasskeyEventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey events -
200 List of all matching passkey events. -
0 Error -
*/ - public ApiResponse passkeyEventListWithHttpInfo(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse passkeyEventListWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = passkeyEventListValidateBeforeCall(userID, sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of matching passkey events - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all passkey events for a user (asynchronously) + * Returns a list of passkey events for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `created` and `eventType`. - The `filter` parameter supports the following fields: `eventType`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -510,11 +510,11 @@ public ApiResponse passkeyEventListWithHttpInfo(String userID, - +
Response Details
Status Code Description Response Headers
200 List of all matching passkey events -
200 List of all matching passkey events. -
0 Error -
*/ - public okhttp3.Call passkeyEventListAsync(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyEventListAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyEventListValidateBeforeCall(userID, sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/api/PasskeysApi.java b/src/main/java/com/corbado/generated/api/PasskeysApi.java index e46752c..cb632f5 100644 --- a/src/main/java/com/corbado/generated/api/PasskeysApi.java +++ b/src/main/java/com/corbado/generated/api/PasskeysApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,7 +27,6 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; import com.corbado.generated.model.PasskeyAppendFinishReq; import com.corbado.generated.model.PasskeyAppendFinishRsp; import com.corbado.generated.model.PasskeyAppendStartReq; @@ -42,6 +41,9 @@ import com.corbado.generated.model.PasskeyMediationStartRsp; import com.corbado.generated.model.PasskeyPostLoginReq; import com.corbado.generated.model.PasskeyPostLoginRsp; +import com.corbado.generated.model.PasskeyVerifySignedDataReq; +import com.corbado.generated.model.PasskeyVerifySignedDataRsp; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -96,11 +98,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Passkey append succeeded -
200 Passkey append succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyAppendFinishCall(PasskeyAppendFinishReq passkeyAppendFinishReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyAppendFinishCall(@javax.annotation.Nonnull PasskeyAppendFinishReq passkeyAppendFinishReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -146,7 +148,7 @@ public okhttp3.Call passkeyAppendFinishCall(PasskeyAppendFinishReq passkeyAppend } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyAppendFinishValidateBeforeCall(PasskeyAppendFinishReq passkeyAppendFinishReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyAppendFinishValidateBeforeCall(@javax.annotation.Nonnull PasskeyAppendFinishReq passkeyAppendFinishReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'passkeyAppendFinishReq' is set if (passkeyAppendFinishReq == null) { throw new ApiException("Missing the required parameter 'passkeyAppendFinishReq' when calling passkeyAppendFinish(Async)"); @@ -157,8 +159,8 @@ private okhttp3.Call passkeyAppendFinishValidateBeforeCall(PasskeyAppendFinishRe } /** - * - * Completes a challenge for creating a new passkey + * Finish creating a new passkey + * Finishes creating a new passkey by completing the WebAuthn ceremony. * @param passkeyAppendFinishReq (required) * @return PasskeyAppendFinishRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -166,18 +168,18 @@ private okhttp3.Call passkeyAppendFinishValidateBeforeCall(PasskeyAppendFinishRe - +
Response Details
Status Code Description Response Headers
200 Passkey append succeeded -
200 Passkey append succeeded. -
0 Error -
*/ - public PasskeyAppendFinishRsp passkeyAppendFinish(PasskeyAppendFinishReq passkeyAppendFinishReq) throws ApiException { + public PasskeyAppendFinishRsp passkeyAppendFinish(@javax.annotation.Nonnull PasskeyAppendFinishReq passkeyAppendFinishReq) throws ApiException { ApiResponse localVarResp = passkeyAppendFinishWithHttpInfo(passkeyAppendFinishReq); return localVarResp.getData(); } /** - * - * Completes a challenge for creating a new passkey + * Finish creating a new passkey + * Finishes creating a new passkey by completing the WebAuthn ceremony. * @param passkeyAppendFinishReq (required) * @return ApiResponse<PasskeyAppendFinishRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -185,19 +187,19 @@ public PasskeyAppendFinishRsp passkeyAppendFinish(PasskeyAppendFinishReq passkey - +
Response Details
Status Code Description Response Headers
200 Passkey append succeeded -
200 Passkey append succeeded. -
0 Error -
*/ - public ApiResponse passkeyAppendFinishWithHttpInfo(PasskeyAppendFinishReq passkeyAppendFinishReq) throws ApiException { + public ApiResponse passkeyAppendFinishWithHttpInfo(@javax.annotation.Nonnull PasskeyAppendFinishReq passkeyAppendFinishReq) throws ApiException { okhttp3.Call localVarCall = passkeyAppendFinishValidateBeforeCall(passkeyAppendFinishReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Completes a challenge for creating a new passkey + * Finish creating a new passkey (asynchronously) + * Finishes creating a new passkey by completing the WebAuthn ceremony. * @param passkeyAppendFinishReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -206,11 +208,11 @@ public ApiResponse passkeyAppendFinishWithHttpInfo(Passk - +
Response Details
Status Code Description Response Headers
200 Passkey append succeeded -
200 Passkey append succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyAppendFinishAsync(PasskeyAppendFinishReq passkeyAppendFinishReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyAppendFinishAsync(@javax.annotation.Nonnull PasskeyAppendFinishReq passkeyAppendFinishReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyAppendFinishValidateBeforeCall(passkeyAppendFinishReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -227,11 +229,11 @@ public okhttp3.Call passkeyAppendFinishAsync(PasskeyAppendFinishReq passkeyAppen - +
Response Details
Status Code Description Response Headers
200 Passkey append challenge has been created -
200 Passkey creation process has been started. -
0 Error -
*/ - public okhttp3.Call passkeyAppendStartCall(PasskeyAppendStartReq passkeyAppendStartReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyAppendStartCall(@javax.annotation.Nonnull PasskeyAppendStartReq passkeyAppendStartReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -277,7 +279,7 @@ public okhttp3.Call passkeyAppendStartCall(PasskeyAppendStartReq passkeyAppendSt } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyAppendStartValidateBeforeCall(PasskeyAppendStartReq passkeyAppendStartReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyAppendStartValidateBeforeCall(@javax.annotation.Nonnull PasskeyAppendStartReq passkeyAppendStartReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'passkeyAppendStartReq' is set if (passkeyAppendStartReq == null) { throw new ApiException("Missing the required parameter 'passkeyAppendStartReq' when calling passkeyAppendStart(Async)"); @@ -288,8 +290,8 @@ private okhttp3.Call passkeyAppendStartValidateBeforeCall(PasskeyAppendStartReq } /** - * - * Starts a challenge for creating a new passkey + * Start creating a new passkey + * Starts creating a new passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-creating-a-new-passkey). * @param passkeyAppendStartReq (required) * @return PasskeyAppendStartRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -297,18 +299,18 @@ private okhttp3.Call passkeyAppendStartValidateBeforeCall(PasskeyAppendStartReq - +
Response Details
Status Code Description Response Headers
200 Passkey append challenge has been created -
200 Passkey creation process has been started. -
0 Error -
*/ - public PasskeyAppendStartRsp passkeyAppendStart(PasskeyAppendStartReq passkeyAppendStartReq) throws ApiException { + public PasskeyAppendStartRsp passkeyAppendStart(@javax.annotation.Nonnull PasskeyAppendStartReq passkeyAppendStartReq) throws ApiException { ApiResponse localVarResp = passkeyAppendStartWithHttpInfo(passkeyAppendStartReq); return localVarResp.getData(); } /** - * - * Starts a challenge for creating a new passkey + * Start creating a new passkey + * Starts creating a new passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-creating-a-new-passkey). * @param passkeyAppendStartReq (required) * @return ApiResponse<PasskeyAppendStartRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -316,19 +318,19 @@ public PasskeyAppendStartRsp passkeyAppendStart(PasskeyAppendStartReq passkeyApp - +
Response Details
Status Code Description Response Headers
200 Passkey append challenge has been created -
200 Passkey creation process has been started. -
0 Error -
*/ - public ApiResponse passkeyAppendStartWithHttpInfo(PasskeyAppendStartReq passkeyAppendStartReq) throws ApiException { + public ApiResponse passkeyAppendStartWithHttpInfo(@javax.annotation.Nonnull PasskeyAppendStartReq passkeyAppendStartReq) throws ApiException { okhttp3.Call localVarCall = passkeyAppendStartValidateBeforeCall(passkeyAppendStartReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Starts a challenge for creating a new passkey + * Start creating a new passkey (asynchronously) + * Starts creating a new passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-creating-a-new-passkey). * @param passkeyAppendStartReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -337,11 +339,11 @@ public ApiResponse passkeyAppendStartWithHttpInfo(Passkey - +
Response Details
Status Code Description Response Headers
200 Passkey append challenge has been created -
200 Passkey creation process has been started. -
0 Error -
*/ - public okhttp3.Call passkeyAppendStartAsync(PasskeyAppendStartReq passkeyAppendStartReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyAppendStartAsync(@javax.annotation.Nonnull PasskeyAppendStartReq passkeyAppendStartReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyAppendStartValidateBeforeCall(passkeyAppendStartReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -358,11 +360,11 @@ public okhttp3.Call passkeyAppendStartAsync(PasskeyAppendStartReq passkeyAppendS - +
Response Details
Status Code Description Response Headers
200 Passkey login succeeded -
200 Passkey login succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyLoginFinishCall(PasskeyLoginFinishReq passkeyLoginFinishReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyLoginFinishCall(@javax.annotation.Nonnull PasskeyLoginFinishReq passkeyLoginFinishReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -408,7 +410,7 @@ public okhttp3.Call passkeyLoginFinishCall(PasskeyLoginFinishReq passkeyLoginFin } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyLoginFinishValidateBeforeCall(PasskeyLoginFinishReq passkeyLoginFinishReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyLoginFinishValidateBeforeCall(@javax.annotation.Nonnull PasskeyLoginFinishReq passkeyLoginFinishReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'passkeyLoginFinishReq' is set if (passkeyLoginFinishReq == null) { throw new ApiException("Missing the required parameter 'passkeyLoginFinishReq' when calling passkeyLoginFinish(Async)"); @@ -419,8 +421,8 @@ private okhttp3.Call passkeyLoginFinishValidateBeforeCall(PasskeyLoginFinishReq } /** - * - * Completes a challenge for an existing passkey + * Finish login with an existing passkey + * Finishes login with an existing passkey by completing the WebAuthn ceremony. * @param passkeyLoginFinishReq (required) * @return PasskeyLoginFinishRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -428,18 +430,18 @@ private okhttp3.Call passkeyLoginFinishValidateBeforeCall(PasskeyLoginFinishReq - +
Response Details
Status Code Description Response Headers
200 Passkey login succeeded -
200 Passkey login succeeded. -
0 Error -
*/ - public PasskeyLoginFinishRsp passkeyLoginFinish(PasskeyLoginFinishReq passkeyLoginFinishReq) throws ApiException { + public PasskeyLoginFinishRsp passkeyLoginFinish(@javax.annotation.Nonnull PasskeyLoginFinishReq passkeyLoginFinishReq) throws ApiException { ApiResponse localVarResp = passkeyLoginFinishWithHttpInfo(passkeyLoginFinishReq); return localVarResp.getData(); } /** - * - * Completes a challenge for an existing passkey + * Finish login with an existing passkey + * Finishes login with an existing passkey by completing the WebAuthn ceremony. * @param passkeyLoginFinishReq (required) * @return ApiResponse<PasskeyLoginFinishRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -447,19 +449,19 @@ public PasskeyLoginFinishRsp passkeyLoginFinish(PasskeyLoginFinishReq passkeyLog - +
Response Details
Status Code Description Response Headers
200 Passkey login succeeded -
200 Passkey login succeeded. -
0 Error -
*/ - public ApiResponse passkeyLoginFinishWithHttpInfo(PasskeyLoginFinishReq passkeyLoginFinishReq) throws ApiException { + public ApiResponse passkeyLoginFinishWithHttpInfo(@javax.annotation.Nonnull PasskeyLoginFinishReq passkeyLoginFinishReq) throws ApiException { okhttp3.Call localVarCall = passkeyLoginFinishValidateBeforeCall(passkeyLoginFinishReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Completes a challenge for an existing passkey + * Finish login with an existing passkey (asynchronously) + * Finishes login with an existing passkey by completing the WebAuthn ceremony. * @param passkeyLoginFinishReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -468,11 +470,11 @@ public ApiResponse passkeyLoginFinishWithHttpInfo(Passkey - +
Response Details
Status Code Description Response Headers
200 Passkey login succeeded -
200 Passkey login succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyLoginFinishAsync(PasskeyLoginFinishReq passkeyLoginFinishReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyLoginFinishAsync(@javax.annotation.Nonnull PasskeyLoginFinishReq passkeyLoginFinishReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyLoginFinishValidateBeforeCall(passkeyLoginFinishReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -489,11 +491,11 @@ public okhttp3.Call passkeyLoginFinishAsync(PasskeyLoginFinishReq passkeyLoginFi - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey authentication process has been started. -
0 Error -
*/ - public okhttp3.Call passkeyLoginStartCall(PasskeyLoginStartReq passkeyLoginStartReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyLoginStartCall(@javax.annotation.Nonnull PasskeyLoginStartReq passkeyLoginStartReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -539,7 +541,7 @@ public okhttp3.Call passkeyLoginStartCall(PasskeyLoginStartReq passkeyLoginStart } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyLoginStartValidateBeforeCall(PasskeyLoginStartReq passkeyLoginStartReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyLoginStartValidateBeforeCall(@javax.annotation.Nonnull PasskeyLoginStartReq passkeyLoginStartReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'passkeyLoginStartReq' is set if (passkeyLoginStartReq == null) { throw new ApiException("Missing the required parameter 'passkeyLoginStartReq' when calling passkeyLoginStart(Async)"); @@ -550,8 +552,8 @@ private okhttp3.Call passkeyLoginStartValidateBeforeCall(PasskeyLoginStartReq pa } /** - * - * Starts a challenge for an existing passkey + * Start login with an existing passkey + * Starts login with an existing passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey). * @param passkeyLoginStartReq (required) * @return PasskeyLoginStartRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -559,18 +561,18 @@ private okhttp3.Call passkeyLoginStartValidateBeforeCall(PasskeyLoginStartReq pa - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey authentication process has been started. -
0 Error -
*/ - public PasskeyLoginStartRsp passkeyLoginStart(PasskeyLoginStartReq passkeyLoginStartReq) throws ApiException { + public PasskeyLoginStartRsp passkeyLoginStart(@javax.annotation.Nonnull PasskeyLoginStartReq passkeyLoginStartReq) throws ApiException { ApiResponse localVarResp = passkeyLoginStartWithHttpInfo(passkeyLoginStartReq); return localVarResp.getData(); } /** - * - * Starts a challenge for an existing passkey + * Start login with an existing passkey + * Starts login with an existing passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey). * @param passkeyLoginStartReq (required) * @return ApiResponse<PasskeyLoginStartRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -578,19 +580,19 @@ public PasskeyLoginStartRsp passkeyLoginStart(PasskeyLoginStartReq passkeyLoginS - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey authentication process has been started. -
0 Error -
*/ - public ApiResponse passkeyLoginStartWithHttpInfo(PasskeyLoginStartReq passkeyLoginStartReq) throws ApiException { + public ApiResponse passkeyLoginStartWithHttpInfo(@javax.annotation.Nonnull PasskeyLoginStartReq passkeyLoginStartReq) throws ApiException { okhttp3.Call localVarCall = passkeyLoginStartValidateBeforeCall(passkeyLoginStartReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Starts a challenge for an existing passkey + * Start login with an existing passkey (asynchronously) + * Starts login with an existing passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey). * @param passkeyLoginStartReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -599,11 +601,11 @@ public ApiResponse passkeyLoginStartWithHttpInfo(PasskeyLo - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey authentication process has been started. -
0 Error -
*/ - public okhttp3.Call passkeyLoginStartAsync(PasskeyLoginStartReq passkeyLoginStartReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyLoginStartAsync(@javax.annotation.Nonnull PasskeyLoginStartReq passkeyLoginStartReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyLoginStartValidateBeforeCall(passkeyLoginStartReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -620,11 +622,11 @@ public okhttp3.Call passkeyLoginStartAsync(PasskeyLoginStartReq passkeyLoginStar - +
Response Details
Status Code Description Response Headers
200 Passkey mediation has been success, thus we can return a userID -
200 Passkey login process has been completed. -
0 Error -
*/ - public okhttp3.Call passkeyMediationFinishCall(PasskeyMediationFinishReq passkeyMediationFinishReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyMediationFinishCall(@javax.annotation.Nonnull PasskeyMediationFinishReq passkeyMediationFinishReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -670,7 +672,7 @@ public okhttp3.Call passkeyMediationFinishCall(PasskeyMediationFinishReq passkey } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyMediationFinishValidateBeforeCall(PasskeyMediationFinishReq passkeyMediationFinishReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyMediationFinishValidateBeforeCall(@javax.annotation.Nonnull PasskeyMediationFinishReq passkeyMediationFinishReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'passkeyMediationFinishReq' is set if (passkeyMediationFinishReq == null) { throw new ApiException("Missing the required parameter 'passkeyMediationFinishReq' when calling passkeyMediationFinish(Async)"); @@ -681,8 +683,8 @@ private okhttp3.Call passkeyMediationFinishValidateBeforeCall(PasskeyMediationFi } /** - * - * Completes a challenge for an existing passkey (Conditional UI) + * Finish login with an existing passkey (Conditional UI) + * Finishes login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. * @param passkeyMediationFinishReq (required) * @return PasskeyMediationFinishRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -690,18 +692,18 @@ private okhttp3.Call passkeyMediationFinishValidateBeforeCall(PasskeyMediationFi - +
Response Details
Status Code Description Response Headers
200 Passkey mediation has been success, thus we can return a userID -
200 Passkey login process has been completed. -
0 Error -
*/ - public PasskeyMediationFinishRsp passkeyMediationFinish(PasskeyMediationFinishReq passkeyMediationFinishReq) throws ApiException { + public PasskeyMediationFinishRsp passkeyMediationFinish(@javax.annotation.Nonnull PasskeyMediationFinishReq passkeyMediationFinishReq) throws ApiException { ApiResponse localVarResp = passkeyMediationFinishWithHttpInfo(passkeyMediationFinishReq); return localVarResp.getData(); } /** - * - * Completes a challenge for an existing passkey (Conditional UI) + * Finish login with an existing passkey (Conditional UI) + * Finishes login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. * @param passkeyMediationFinishReq (required) * @return ApiResponse<PasskeyMediationFinishRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -709,19 +711,19 @@ public PasskeyMediationFinishRsp passkeyMediationFinish(PasskeyMediationFinishRe - +
Response Details
Status Code Description Response Headers
200 Passkey mediation has been success, thus we can return a userID -
200 Passkey login process has been completed. -
0 Error -
*/ - public ApiResponse passkeyMediationFinishWithHttpInfo(PasskeyMediationFinishReq passkeyMediationFinishReq) throws ApiException { + public ApiResponse passkeyMediationFinishWithHttpInfo(@javax.annotation.Nonnull PasskeyMediationFinishReq passkeyMediationFinishReq) throws ApiException { okhttp3.Call localVarCall = passkeyMediationFinishValidateBeforeCall(passkeyMediationFinishReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Completes a challenge for an existing passkey (Conditional UI) + * Finish login with an existing passkey (Conditional UI) (asynchronously) + * Finishes login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. * @param passkeyMediationFinishReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -730,11 +732,11 @@ public ApiResponse passkeyMediationFinishWithHttpInfo - +
Response Details
Status Code Description Response Headers
200 Passkey mediation has been success, thus we can return a userID -
200 Passkey login process has been completed. -
0 Error -
*/ - public okhttp3.Call passkeyMediationFinishAsync(PasskeyMediationFinishReq passkeyMediationFinishReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyMediationFinishAsync(@javax.annotation.Nonnull PasskeyMediationFinishReq passkeyMediationFinishReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyMediationFinishValidateBeforeCall(passkeyMediationFinishReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -751,11 +753,11 @@ public okhttp3.Call passkeyMediationFinishAsync(PasskeyMediationFinishReq passke - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey login process has been started. -
0 Error -
*/ - public okhttp3.Call passkeyMediationStartCall(PasskeyMediationStartReq passkeyMediationStartReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyMediationStartCall(@javax.annotation.Nonnull PasskeyMediationStartReq passkeyMediationStartReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -801,7 +803,7 @@ public okhttp3.Call passkeyMediationStartCall(PasskeyMediationStartReq passkeyMe } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyMediationStartValidateBeforeCall(PasskeyMediationStartReq passkeyMediationStartReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyMediationStartValidateBeforeCall(@javax.annotation.Nonnull PasskeyMediationStartReq passkeyMediationStartReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'passkeyMediationStartReq' is set if (passkeyMediationStartReq == null) { throw new ApiException("Missing the required parameter 'passkeyMediationStartReq' when calling passkeyMediationStart(Async)"); @@ -812,8 +814,8 @@ private okhttp3.Call passkeyMediationStartValidateBeforeCall(PasskeyMediationSta } /** - * - * Starts a challenge for an existing passkey (Conditional UI) + * Start login with an existing passkey (Conditional UI) + * Starts login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey-conditional-ui). * @param passkeyMediationStartReq (required) * @return PasskeyMediationStartRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -821,18 +823,18 @@ private okhttp3.Call passkeyMediationStartValidateBeforeCall(PasskeyMediationSta - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey login process has been started. -
0 Error -
*/ - public PasskeyMediationStartRsp passkeyMediationStart(PasskeyMediationStartReq passkeyMediationStartReq) throws ApiException { + public PasskeyMediationStartRsp passkeyMediationStart(@javax.annotation.Nonnull PasskeyMediationStartReq passkeyMediationStartReq) throws ApiException { ApiResponse localVarResp = passkeyMediationStartWithHttpInfo(passkeyMediationStartReq); return localVarResp.getData(); } /** - * - * Starts a challenge for an existing passkey (Conditional UI) + * Start login with an existing passkey (Conditional UI) + * Starts login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey-conditional-ui). * @param passkeyMediationStartReq (required) * @return ApiResponse<PasskeyMediationStartRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -840,19 +842,19 @@ public PasskeyMediationStartRsp passkeyMediationStart(PasskeyMediationStartReq p - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey login process has been started. -
0 Error -
*/ - public ApiResponse passkeyMediationStartWithHttpInfo(PasskeyMediationStartReq passkeyMediationStartReq) throws ApiException { + public ApiResponse passkeyMediationStartWithHttpInfo(@javax.annotation.Nonnull PasskeyMediationStartReq passkeyMediationStartReq) throws ApiException { okhttp3.Call localVarCall = passkeyMediationStartValidateBeforeCall(passkeyMediationStartReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Starts a challenge for an existing passkey (Conditional UI) + * Start login with an existing passkey (Conditional UI) (asynchronously) + * Starts login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey-conditional-ui). * @param passkeyMediationStartReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -861,11 +863,11 @@ public ApiResponse passkeyMediationStartWithHttpInfo(P - +
Response Details
Status Code Description Response Headers
200 Passkey login challenge has been created -
200 Passkey login process has been started. -
0 Error -
*/ - public okhttp3.Call passkeyMediationStartAsync(PasskeyMediationStartReq passkeyMediationStartReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyMediationStartAsync(@javax.annotation.Nonnull PasskeyMediationStartReq passkeyMediationStartReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyMediationStartValidateBeforeCall(passkeyMediationStartReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -882,11 +884,11 @@ public okhttp3.Call passkeyMediationStartAsync(PasskeyMediationStartReq passkeyM - +
Response Details
Status Code Description Response Headers
200 Post Passkey Login succeeded -
200 Post Passkey Login succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyPostLoginCall(PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyPostLoginCall(@javax.annotation.Nonnull PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -932,7 +934,7 @@ public okhttp3.Call passkeyPostLoginCall(PasskeyPostLoginReq passkeyPostLoginReq } @SuppressWarnings("rawtypes") - private okhttp3.Call passkeyPostLoginValidateBeforeCall(PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passkeyPostLoginValidateBeforeCall(@javax.annotation.Nonnull PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'passkeyPostLoginReq' is set if (passkeyPostLoginReq == null) { throw new ApiException("Missing the required parameter 'passkeyPostLoginReq' when calling passkeyPostLogin(Async)"); @@ -943,7 +945,7 @@ private okhttp3.Call passkeyPostLoginValidateBeforeCall(PasskeyPostLoginReq pass } /** - * + * Run the post-login action for passkey * Explicitly runs the post-login action * @param passkeyPostLoginReq (required) * @return PasskeyPostLoginRsp @@ -952,17 +954,17 @@ private okhttp3.Call passkeyPostLoginValidateBeforeCall(PasskeyPostLoginReq pass - +
Response Details
Status Code Description Response Headers
200 Post Passkey Login succeeded -
200 Post Passkey Login succeeded. -
0 Error -
*/ - public PasskeyPostLoginRsp passkeyPostLogin(PasskeyPostLoginReq passkeyPostLoginReq) throws ApiException { + public PasskeyPostLoginRsp passkeyPostLogin(@javax.annotation.Nonnull PasskeyPostLoginReq passkeyPostLoginReq) throws ApiException { ApiResponse localVarResp = passkeyPostLoginWithHttpInfo(passkeyPostLoginReq); return localVarResp.getData(); } /** - * + * Run the post-login action for passkey * Explicitly runs the post-login action * @param passkeyPostLoginReq (required) * @return ApiResponse<PasskeyPostLoginRsp> @@ -971,18 +973,18 @@ public PasskeyPostLoginRsp passkeyPostLogin(PasskeyPostLoginReq passkeyPostLogin - +
Response Details
Status Code Description Response Headers
200 Post Passkey Login succeeded -
200 Post Passkey Login succeeded. -
0 Error -
*/ - public ApiResponse passkeyPostLoginWithHttpInfo(PasskeyPostLoginReq passkeyPostLoginReq) throws ApiException { + public ApiResponse passkeyPostLoginWithHttpInfo(@javax.annotation.Nonnull PasskeyPostLoginReq passkeyPostLoginReq) throws ApiException { okhttp3.Call localVarCall = passkeyPostLoginValidateBeforeCall(passkeyPostLoginReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) + * Run the post-login action for passkey (asynchronously) * Explicitly runs the post-login action * @param passkeyPostLoginReq (required) * @param _callback The callback to be executed when the API call finishes @@ -992,15 +994,146 @@ public ApiResponse passkeyPostLoginWithHttpInfo(PasskeyPost - +
Response Details
Status Code Description Response Headers
200 Post Passkey Login succeeded -
200 Post Passkey Login succeeded. -
0 Error -
*/ - public okhttp3.Call passkeyPostLoginAsync(PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyPostLoginAsync(@javax.annotation.Nonnull PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyPostLoginValidateBeforeCall(passkeyPostLoginReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for passkeyVerifySignedData + * @param passkeyVerifySignedDataReq (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 `signedPasskeyData` has been verified. -
0 Error -
+ */ + public okhttp3.Call passkeyVerifySignedDataCall(@javax.annotation.Nonnull PasskeyVerifySignedDataReq passkeyVerifySignedDataReq, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = passkeyVerifySignedDataReq; + + // create path and map variables + String localVarPath = "/passkey/verifySignedData"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "basicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call passkeyVerifySignedDataValidateBeforeCall(@javax.annotation.Nonnull PasskeyVerifySignedDataReq passkeyVerifySignedDataReq, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'passkeyVerifySignedDataReq' is set + if (passkeyVerifySignedDataReq == null) { + throw new ApiException("Missing the required parameter 'passkeyVerifySignedDataReq' when calling passkeyVerifySignedData(Async)"); + } + + return passkeyVerifySignedDataCall(passkeyVerifySignedDataReq, _callback); + + } + + /** + * Verify signedPasskeyData from a passkey login + * Verifies the `signedPasskeyData` from a passkey login. The `signedPasskeyData` is returned by the [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey) call and is essential for transferring the authentication state to your backend. It is required only for [Corbado Connect](/corbado-connect) and is thoroughly explained in our [Documentation](/corbado-connect/concepts/signed-passkey-data). Our [generic integration guide](/corbado-connect/integration/generic) explains how to use `signedPasskeyData` in your backend. + * @param passkeyVerifySignedDataReq (required) + * @return PasskeyVerifySignedDataRsp + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 `signedPasskeyData` has been verified. -
0 Error -
+ */ + public PasskeyVerifySignedDataRsp passkeyVerifySignedData(@javax.annotation.Nonnull PasskeyVerifySignedDataReq passkeyVerifySignedDataReq) throws ApiException { + ApiResponse localVarResp = passkeyVerifySignedDataWithHttpInfo(passkeyVerifySignedDataReq); + return localVarResp.getData(); + } + + /** + * Verify signedPasskeyData from a passkey login + * Verifies the `signedPasskeyData` from a passkey login. The `signedPasskeyData` is returned by the [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey) call and is essential for transferring the authentication state to your backend. It is required only for [Corbado Connect](/corbado-connect) and is thoroughly explained in our [Documentation](/corbado-connect/concepts/signed-passkey-data). Our [generic integration guide](/corbado-connect/integration/generic) explains how to use `signedPasskeyData` in your backend. + * @param passkeyVerifySignedDataReq (required) + * @return ApiResponse<PasskeyVerifySignedDataRsp> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 `signedPasskeyData` has been verified. -
0 Error -
+ */ + public ApiResponse passkeyVerifySignedDataWithHttpInfo(@javax.annotation.Nonnull PasskeyVerifySignedDataReq passkeyVerifySignedDataReq) throws ApiException { + okhttp3.Call localVarCall = passkeyVerifySignedDataValidateBeforeCall(passkeyVerifySignedDataReq, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Verify signedPasskeyData from a passkey login (asynchronously) + * Verifies the `signedPasskeyData` from a passkey login. The `signedPasskeyData` is returned by the [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey) call and is essential for transferring the authentication state to your backend. It is required only for [Corbado Connect](/corbado-connect) and is thoroughly explained in our [Documentation](/corbado-connect/concepts/signed-passkey-data). Our [generic integration guide](/corbado-connect/integration/generic) explains how to use `signedPasskeyData` in your backend. + * @param passkeyVerifySignedDataReq (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 `signedPasskeyData` has been verified. -
0 Error -
+ */ + public okhttp3.Call passkeyVerifySignedDataAsync(@javax.annotation.Nonnull PasskeyVerifySignedDataReq passkeyVerifySignedDataReq, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = passkeyVerifySignedDataValidateBeforeCall(passkeyVerifySignedDataReq, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/corbado/generated/api/PasswordManagersApi.java b/src/main/java/com/corbado/generated/api/PasswordManagersApi.java index 732ef2f..79ceba5 100644 --- a/src/main/java/com/corbado/generated/api/PasswordManagersApi.java +++ b/src/main/java/com/corbado/generated/api/PasswordManagersApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,8 +27,8 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; import com.corbado.generated.model.PasswordManagerList; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -75,7 +75,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for passwordManagerList - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -83,11 +83,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 List of all matching password managers -
200 List of all matching password managers. -
0 Error -
*/ - public okhttp3.Call passwordManagerListCall(String userID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passwordManagerListCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -133,7 +133,7 @@ public okhttp3.Call passwordManagerListCall(String userID, final ApiCallback _ca } @SuppressWarnings("rawtypes") - private okhttp3.Call passwordManagerListValidateBeforeCall(String userID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call passwordManagerListValidateBeforeCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling passwordManagerList(Async)"); @@ -144,48 +144,48 @@ private okhttp3.Call passwordManagerListValidateBeforeCall(String userID, final } /** - * + * List password managers for a user * Returns a list of password managers - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @return PasswordManagerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching password managers -
200 List of all matching password managers. -
0 Error -
*/ - public PasswordManagerList passwordManagerList(String userID) throws ApiException { + public PasswordManagerList passwordManagerList(@javax.annotation.Nonnull String userID) throws ApiException { ApiResponse localVarResp = passwordManagerListWithHttpInfo(userID); return localVarResp.getData(); } /** - * + * List password managers for a user * Returns a list of password managers - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @return ApiResponse<PasswordManagerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching password managers -
200 List of all matching password managers. -
0 Error -
*/ - public ApiResponse passwordManagerListWithHttpInfo(String userID) throws ApiException { + public ApiResponse passwordManagerListWithHttpInfo(@javax.annotation.Nonnull String userID) throws ApiException { okhttp3.Call localVarCall = passwordManagerListValidateBeforeCall(userID, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) + * List password managers for a user (asynchronously) * Returns a list of password managers - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -193,11 +193,11 @@ public ApiResponse passwordManagerListWithHttpInfo(String u - +
Response Details
Status Code Description Response Headers
200 List of all matching password managers -
200 List of all matching password managers. -
0 Error -
*/ - public okhttp3.Call passwordManagerListAsync(String userID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passwordManagerListAsync(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passwordManagerListValidateBeforeCall(userID, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/api/ProjectConfigApi.java b/src/main/java/com/corbado/generated/api/ProjectConfigApi.java index 5a2324c..5d6dafc 100644 --- a/src/main/java/com/corbado/generated/api/ProjectConfigApi.java +++ b/src/main/java/com/corbado/generated/api/ProjectConfigApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,9 +27,9 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; -import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.ProjectConfigUpdateCnameReq; +import com.corbado.generated.model.UserDelete200Response; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -84,11 +84,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call projectConfigUpdateCNAMECall(ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call projectConfigUpdateCNAMECall(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -134,7 +134,7 @@ public okhttp3.Call projectConfigUpdateCNAMECall(ProjectConfigUpdateCnameReq pro } @SuppressWarnings("rawtypes") - private okhttp3.Call projectConfigUpdateCNAMEValidateBeforeCall(ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call projectConfigUpdateCNAMEValidateBeforeCall(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'projectConfigUpdateCnameReq' is set if (projectConfigUpdateCnameReq == null) { throw new ApiException("Missing the required parameter 'projectConfigUpdateCnameReq' when calling projectConfigUpdateCNAME(Async)"); @@ -145,46 +145,46 @@ private okhttp3.Call projectConfigUpdateCNAMEValidateBeforeCall(ProjectConfigUpd } /** - * + * Update project CNAME and generate SSL certificate * Update project config CNAME and generates new SSL certificate * @param projectConfigUpdateCnameReq (required) - * @return GenericRsp + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp projectConfigUpdateCNAME(ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { - ApiResponse localVarResp = projectConfigUpdateCNAMEWithHttpInfo(projectConfigUpdateCnameReq); + public UserDelete200Response projectConfigUpdateCNAME(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { + ApiResponse localVarResp = projectConfigUpdateCNAMEWithHttpInfo(projectConfigUpdateCnameReq); return localVarResp.getData(); } /** - * + * Update project CNAME and generate SSL certificate * Update project config CNAME and generates new SSL certificate * @param projectConfigUpdateCnameReq (required) - * @return ApiResponse<GenericRsp> + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse projectConfigUpdateCNAMEWithHttpInfo(ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { + public ApiResponse projectConfigUpdateCNAMEWithHttpInfo(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { okhttp3.Call localVarCall = projectConfigUpdateCNAMEValidateBeforeCall(projectConfigUpdateCnameReq, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) + * Update project CNAME and generate SSL certificate (asynchronously) * Update project config CNAME and generates new SSL certificate * @param projectConfigUpdateCnameReq (required) * @param _callback The callback to be executed when the API call finishes @@ -194,14 +194,14 @@ public ApiResponse projectConfigUpdateCNAMEWithHttpInfo(ProjectConfi - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call projectConfigUpdateCNAMEAsync(ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call projectConfigUpdateCNAMEAsync(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = projectConfigUpdateCNAMEValidateBeforeCall(projectConfigUpdateCnameReq, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/SessionsApi.java b/src/main/java/com/corbado/generated/api/SessionsApi.java index 620ff4a..9034b96 100644 --- a/src/main/java/com/corbado/generated/api/SessionsApi.java +++ b/src/main/java/com/corbado/generated/api/SessionsApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,9 +27,9 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; -import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.SessionList; +import com.corbado.generated.model.UserDelete200Response; +import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -76,10 +76,10 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for sessionList - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -87,11 +87,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 List of all matching sessions -
200 List of all matching sessions. -
0 Error -
*/ - public okhttp3.Call sessionListCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sessionListCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -152,63 +152,63 @@ public okhttp3.Call sessionListCall(String sort, List filter, Integer pa } @SuppressWarnings("rawtypes") - private okhttp3.Call sessionListValidateBeforeCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call sessionListValidateBeforeCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { return sessionListCall(sort, filter, page, pageSize, _callback); } /** - * - * Returns a list of matching sessions - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all sessions + * Returns a list of sessions. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. - The `filter` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. You can view and manage sessions in the [Developer Panel](https://app.corbado.com/users/sessions) or consult the [Documentation](https://docs.corbado.com/corbado-complete/sessions/overview) for more details. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return SessionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching sessions -
200 List of all matching sessions. -
0 Error -
*/ - public SessionList sessionList(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public SessionList sessionList(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = sessionListWithHttpInfo(sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of matching sessions - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all sessions + * Returns a list of sessions. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. - The `filter` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. You can view and manage sessions in the [Developer Panel](https://app.corbado.com/users/sessions) or consult the [Documentation](https://docs.corbado.com/corbado-complete/sessions/overview) for more details. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<SessionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of all matching sessions -
200 List of all matching sessions. -
0 Error -
*/ - public ApiResponse sessionListWithHttpInfo(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse sessionListWithHttpInfo(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = sessionListValidateBeforeCall(sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of matching sessions - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all sessions (asynchronously) + * Returns a list of sessions. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. - The `filter` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. You can view and manage sessions in the [Developer Panel](https://app.corbado.com/users/sessions) or consult the [Documentation](https://docs.corbado.com/corbado-complete/sessions/overview) for more details. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -216,11 +216,11 @@ public ApiResponse sessionListWithHttpInfo(String sort, List Response Details Status Code Description Response Headers - 200 List of all matching sessions - + 200 List of all matching sessions. - 0 Error - */ - public okhttp3.Call sessionListAsync(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sessionListAsync(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sessionListValidateBeforeCall(sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -237,11 +237,11 @@ public okhttp3.Call sessionListAsync(String sort, List filter, Integer p - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call sessionRevokeCall(String sessionID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sessionRevokeCall(@javax.annotation.Nonnull String sessionID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -287,7 +287,7 @@ public okhttp3.Call sessionRevokeCall(String sessionID, final ApiCallback _callb } @SuppressWarnings("rawtypes") - private okhttp3.Call sessionRevokeValidateBeforeCall(String sessionID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call sessionRevokeValidateBeforeCall(@javax.annotation.Nonnull String sessionID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'sessionID' is set if (sessionID == null) { throw new ApiException("Missing the required parameter 'sessionID' when calling sessionRevoke(Async)"); @@ -298,47 +298,47 @@ private okhttp3.Call sessionRevokeValidateBeforeCall(String sessionID, final Api } /** - * - * Revokes an existing session + * Revoke a session + * Revokes an existing session by given `sessionID`. * @param sessionID ID of session (required) - * @return GenericRsp + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp sessionRevoke(String sessionID) throws ApiException { - ApiResponse localVarResp = sessionRevokeWithHttpInfo(sessionID); + public UserDelete200Response sessionRevoke(@javax.annotation.Nonnull String sessionID) throws ApiException { + ApiResponse localVarResp = sessionRevokeWithHttpInfo(sessionID); return localVarResp.getData(); } /** - * - * Revokes an existing session + * Revoke a session + * Revokes an existing session by given `sessionID`. * @param sessionID ID of session (required) - * @return ApiResponse<GenericRsp> + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse sessionRevokeWithHttpInfo(String sessionID) throws ApiException { + public ApiResponse sessionRevokeWithHttpInfo(@javax.annotation.Nonnull String sessionID) throws ApiException { okhttp3.Call localVarCall = sessionRevokeValidateBeforeCall(sessionID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Revokes an existing session + * Revoke a session (asynchronously) + * Revokes an existing session by given `sessionID`. * @param sessionID ID of session (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -347,14 +347,14 @@ public ApiResponse sessionRevokeWithHttpInfo(String sessionID) throw - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call sessionRevokeAsync(String sessionID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sessionRevokeAsync(@javax.annotation.Nonnull String sessionID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sessionRevokeValidateBeforeCall(sessionID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/UsersApi.java b/src/main/java/com/corbado/generated/api/UsersApi.java index 026f2b0..41a30ad 100644 --- a/src/main/java/com/corbado/generated/api/UsersApi.java +++ b/src/main/java/com/corbado/generated/api/UsersApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -28,13 +28,14 @@ import com.corbado.generated.model.CredentialList; -import com.corbado.generated.model.ErrorRsp; -import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.SocialAccount; import com.corbado.generated.model.SocialAccountCreateReq; import com.corbado.generated.model.SocialAccountList; import com.corbado.generated.model.User; import com.corbado.generated.model.UserCreateReq; +import com.corbado.generated.model.UserDelete200Response; +import com.corbado.generated.model.UserList; +import com.corbado.generated.model.UserListDefaultResponse; import com.corbado.generated.model.UserUpdateReq; import java.lang.reflect.Type; @@ -82,8 +83,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for credentialDelete - * @param userID ID of user (required) - * @param credentialID ID of credential (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param credentialID Unique identifier of the passkey. Format: `cre-<number>`. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -91,11 +92,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call credentialDeleteCall(String userID, String credentialID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call credentialDeleteCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +143,7 @@ public okhttp3.Call credentialDeleteCall(String userID, String credentialID, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call credentialDeleteValidateBeforeCall(String userID, String credentialID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call credentialDeleteValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling credentialDelete(Async)"); @@ -158,51 +159,51 @@ private okhttp3.Call credentialDeleteValidateBeforeCall(String userID, String cr } /** - * - * Deletes an existing credential (passkey) - * @param userID ID of user (required) - * @param credentialID ID of credential (required) - * @return GenericRsp + * Delete a passkey for a user + * Deletes an existing passkey for a user by given `userID` and `credentialID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param credentialID Unique identifier of the passkey. Format: `cre-<number>`. (required) + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp credentialDelete(String userID, String credentialID) throws ApiException { - ApiResponse localVarResp = credentialDeleteWithHttpInfo(userID, credentialID); + public UserDelete200Response credentialDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID) throws ApiException { + ApiResponse localVarResp = credentialDeleteWithHttpInfo(userID, credentialID); return localVarResp.getData(); } /** - * - * Deletes an existing credential (passkey) - * @param userID ID of user (required) - * @param credentialID ID of credential (required) - * @return ApiResponse<GenericRsp> + * Delete a passkey for a user + * Deletes an existing passkey for a user by given `userID` and `credentialID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param credentialID Unique identifier of the passkey. Format: `cre-<number>`. (required) + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse credentialDeleteWithHttpInfo(String userID, String credentialID) throws ApiException { + public ApiResponse credentialDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID) throws ApiException { okhttp3.Call localVarCall = credentialDeleteValidateBeforeCall(userID, credentialID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Deletes an existing credential (passkey) - * @param userID ID of user (required) - * @param credentialID ID of credential (required) + * Delete a passkey for a user (asynchronously) + * Deletes an existing passkey for a user by given `userID` and `credentialID`. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param credentialID Unique identifier of the passkey. Format: `cre-<number>`. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -210,24 +211,24 @@ public ApiResponse credentialDeleteWithHttpInfo(String userID, Strin - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call credentialDeleteAsync(String userID, String credentialID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call credentialDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = credentialDeleteValidateBeforeCall(userID, credentialID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for credentialList - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -235,11 +236,11 @@ public okhttp3.Call credentialDeleteAsync(String userID, String credentialID, fi - +
Response Details
Status Code Description Response Headers
200 List of credentials (passkeys) -
200 List of passkeys. -
0 Error -
*/ - public okhttp3.Call credentialListCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call credentialListCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -301,7 +302,7 @@ public okhttp3.Call credentialListCall(String userID, String sort, List } @SuppressWarnings("rawtypes") - private okhttp3.Call credentialListValidateBeforeCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call credentialListValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling credentialList(Async)"); @@ -312,60 +313,60 @@ private okhttp3.Call credentialListValidateBeforeCall(String userID, String sort } /** - * - * Returns a list of credentials (passkeys) - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List passkeys for a user + * Returns a list of passkeys for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. - The `filter` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return CredentialList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of credentials (passkeys) -
200 List of passkeys. -
0 Error -
*/ - public CredentialList credentialList(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public CredentialList credentialList(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = credentialListWithHttpInfo(userID, sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of credentials (passkeys) - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List passkeys for a user + * Returns a list of passkeys for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. - The `filter` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<CredentialList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of credentials (passkeys) -
200 List of passkeys. -
0 Error -
*/ - public ApiResponse credentialListWithHttpInfo(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse credentialListWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = credentialListValidateBeforeCall(userID, sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of credentials (passkeys) - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List passkeys for a user (asynchronously) + * Returns a list of passkeys for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. - The `filter` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -373,11 +374,11 @@ public ApiResponse credentialListWithHttpInfo(String userID, Str - +
Response Details
Status Code Description Response Headers
200 List of credentials (passkeys) -
200 List of passkeys. -
0 Error -
*/ - public okhttp3.Call credentialListAsync(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call credentialListAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = credentialListValidateBeforeCall(userID, sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -386,7 +387,7 @@ public okhttp3.Call credentialListAsync(String userID, String sort, List } /** * Build call for socialAccountCreate - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param socialAccountCreateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -395,11 +396,11 @@ public okhttp3.Call credentialListAsync(String userID, String sort, List - +
Response Details
Status Code Description Response Headers
200 Social account has been created -
200 Social login has been created. -
0 Error -
*/ - public okhttp3.Call socialAccountCreateCall(String userID, SocialAccountCreateReq socialAccountCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call socialAccountCreateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull SocialAccountCreateReq socialAccountCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -446,7 +447,7 @@ public okhttp3.Call socialAccountCreateCall(String userID, SocialAccountCreateRe } @SuppressWarnings("rawtypes") - private okhttp3.Call socialAccountCreateValidateBeforeCall(String userID, SocialAccountCreateReq socialAccountCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call socialAccountCreateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull SocialAccountCreateReq socialAccountCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling socialAccountCreate(Async)"); @@ -462,9 +463,9 @@ private okhttp3.Call socialAccountCreateValidateBeforeCall(String userID, Social } /** - * - * Creates a new social account - * @param userID ID of user (required) + * Create a social login for a user + * Creates a new social login for a user by given `userID`. Social logins are used to authenticate users with third-party providers like Google, Microsoft, or GitHub. You can set up social logins in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Social) or consult the [Documentation](/corbado-complete/overview/configuration/social-logins/overview) for more details. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param socialAccountCreateReq (required) * @return SocialAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -472,19 +473,19 @@ private okhttp3.Call socialAccountCreateValidateBeforeCall(String userID, Social - +
Response Details
Status Code Description Response Headers
200 Social account has been created -
200 Social login has been created. -
0 Error -
*/ - public SocialAccount socialAccountCreate(String userID, SocialAccountCreateReq socialAccountCreateReq) throws ApiException { + public SocialAccount socialAccountCreate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull SocialAccountCreateReq socialAccountCreateReq) throws ApiException { ApiResponse localVarResp = socialAccountCreateWithHttpInfo(userID, socialAccountCreateReq); return localVarResp.getData(); } /** - * - * Creates a new social account - * @param userID ID of user (required) + * Create a social login for a user + * Creates a new social login for a user by given `userID`. Social logins are used to authenticate users with third-party providers like Google, Microsoft, or GitHub. You can set up social logins in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Social) or consult the [Documentation](/corbado-complete/overview/configuration/social-logins/overview) for more details. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param socialAccountCreateReq (required) * @return ApiResponse<SocialAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -492,20 +493,20 @@ public SocialAccount socialAccountCreate(String userID, SocialAccountCreateReq s - +
Response Details
Status Code Description Response Headers
200 Social account has been created -
200 Social login has been created. -
0 Error -
*/ - public ApiResponse socialAccountCreateWithHttpInfo(String userID, SocialAccountCreateReq socialAccountCreateReq) throws ApiException { + public ApiResponse socialAccountCreateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull SocialAccountCreateReq socialAccountCreateReq) throws ApiException { okhttp3.Call localVarCall = socialAccountCreateValidateBeforeCall(userID, socialAccountCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Creates a new social account - * @param userID ID of user (required) + * Create a social login for a user (asynchronously) + * Creates a new social login for a user by given `userID`. Social logins are used to authenticate users with third-party providers like Google, Microsoft, or GitHub. You can set up social logins in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Social) or consult the [Documentation](/corbado-complete/overview/configuration/social-logins/overview) for more details. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param socialAccountCreateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -514,11 +515,11 @@ public ApiResponse socialAccountCreateWithHttpInfo(String userID, - +
Response Details
Status Code Description Response Headers
200 Social account has been created -
200 Social login has been created. -
0 Error -
*/ - public okhttp3.Call socialAccountCreateAsync(String userID, SocialAccountCreateReq socialAccountCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call socialAccountCreateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull SocialAccountCreateReq socialAccountCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = socialAccountCreateValidateBeforeCall(userID, socialAccountCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -527,10 +528,10 @@ public okhttp3.Call socialAccountCreateAsync(String userID, SocialAccountCreateR } /** * Build call for socialAccountList - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -538,11 +539,11 @@ public okhttp3.Call socialAccountCreateAsync(String userID, SocialAccountCreateR - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public okhttp3.Call socialAccountListCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call socialAccountListCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -603,63 +604,63 @@ public okhttp3.Call socialAccountListCall(String sort, List filter, Inte } @SuppressWarnings("rawtypes") - private okhttp3.Call socialAccountListValidateBeforeCall(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call socialAccountListValidateBeforeCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { return socialAccountListCall(sort, filter, page, pageSize, _callback); } /** - * - * Returns a list of social accounts - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all social logins + * Returns a list of social logins. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `providerType` and `foreignID`. - The `filter` parameter supports the following fields: `providerType` and `foreignID`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return SocialAccountList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public SocialAccountList socialAccountList(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public SocialAccountList socialAccountList(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse localVarResp = socialAccountListWithHttpInfo(sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of social accounts - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all social logins + * Returns a list of social logins. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `providerType` and `foreignID`. - The `filter` parameter supports the following fields: `providerType` and `foreignID`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<SocialAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public ApiResponse socialAccountListWithHttpInfo(String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse socialAccountListWithHttpInfo(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = socialAccountListValidateBeforeCall(sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of social accounts - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all social logins (asynchronously) + * Returns a list of social logins. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `providerType` and `foreignID`. - The `filter` parameter supports the following fields: `providerType` and `foreignID`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -667,11 +668,11 @@ public ApiResponse socialAccountListWithHttpInfo(String sort, - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public okhttp3.Call socialAccountListAsync(String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call socialAccountListAsync(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = socialAccountListValidateBeforeCall(sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -688,11 +689,11 @@ public okhttp3.Call socialAccountListAsync(String sort, List filter, Int - +
Response Details
Status Code Description Response Headers
200 User has been created -
200 User has been created. -
0 Error -
*/ - public okhttp3.Call userCreateCall(UserCreateReq userCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userCreateCall(@javax.annotation.Nonnull UserCreateReq userCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -738,7 +739,7 @@ public okhttp3.Call userCreateCall(UserCreateReq userCreateReq, final ApiCallbac } @SuppressWarnings("rawtypes") - private okhttp3.Call userCreateValidateBeforeCall(UserCreateReq userCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call userCreateValidateBeforeCall(@javax.annotation.Nonnull UserCreateReq userCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userCreateReq' is set if (userCreateReq == null) { throw new ApiException("Missing the required parameter 'userCreateReq' when calling userCreate(Async)"); @@ -749,8 +750,8 @@ private okhttp3.Call userCreateValidateBeforeCall(UserCreateReq userCreateReq, f } /** - * - * Creates a new user + * Create a new user + * Creates a new user with the given status. Use [login identifiers](/api-reference/backend-api/identifiers/create-a-login-identifier-for-a-user) to add an email address or phone number to the user. You can also manage users in the [Developer Panel](https://app.corbado.com/users). * @param userCreateReq (required) * @return User * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -758,18 +759,18 @@ private okhttp3.Call userCreateValidateBeforeCall(UserCreateReq userCreateReq, f - +
Response Details
Status Code Description Response Headers
200 User has been created -
200 User has been created. -
0 Error -
*/ - public User userCreate(UserCreateReq userCreateReq) throws ApiException { + public User userCreate(@javax.annotation.Nonnull UserCreateReq userCreateReq) throws ApiException { ApiResponse localVarResp = userCreateWithHttpInfo(userCreateReq); return localVarResp.getData(); } /** - * - * Creates a new user + * Create a new user + * Creates a new user with the given status. Use [login identifiers](/api-reference/backend-api/identifiers/create-a-login-identifier-for-a-user) to add an email address or phone number to the user. You can also manage users in the [Developer Panel](https://app.corbado.com/users). * @param userCreateReq (required) * @return ApiResponse<User> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -777,19 +778,19 @@ public User userCreate(UserCreateReq userCreateReq) throws ApiException { - +
Response Details
Status Code Description Response Headers
200 User has been created -
200 User has been created. -
0 Error -
*/ - public ApiResponse userCreateWithHttpInfo(UserCreateReq userCreateReq) throws ApiException { + public ApiResponse userCreateWithHttpInfo(@javax.annotation.Nonnull UserCreateReq userCreateReq) throws ApiException { okhttp3.Call localVarCall = userCreateValidateBeforeCall(userCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Creates a new user + * Create a new user (asynchronously) + * Creates a new user with the given status. Use [login identifiers](/api-reference/backend-api/identifiers/create-a-login-identifier-for-a-user) to add an email address or phone number to the user. You can also manage users in the [Developer Panel](https://app.corbado.com/users). * @param userCreateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -798,11 +799,11 @@ public ApiResponse userCreateWithHttpInfo(UserCreateReq userCreateReq) thr - +
Response Details
Status Code Description Response Headers
200 User has been created -
200 User has been created. -
0 Error -
*/ - public okhttp3.Call userCreateAsync(UserCreateReq userCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userCreateAsync(@javax.annotation.Nonnull UserCreateReq userCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = userCreateValidateBeforeCall(userCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -811,7 +812,7 @@ public okhttp3.Call userCreateAsync(UserCreateReq userCreateReq, final ApiCallba } /** * Build call for userDelete - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -819,11 +820,11 @@ public okhttp3.Call userCreateAsync(UserCreateReq userCreateReq, final ApiCallba - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call userDeleteCall(String userID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userDeleteCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -869,7 +870,7 @@ public okhttp3.Call userDeleteCall(String userID, final ApiCallback _callback) t } @SuppressWarnings("rawtypes") - private okhttp3.Call userDeleteValidateBeforeCall(String userID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call userDeleteValidateBeforeCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling userDelete(Async)"); @@ -880,48 +881,48 @@ private okhttp3.Call userDeleteValidateBeforeCall(String userID, final ApiCallba } /** - * - * Deletes a user - * @param userID ID of user (required) - * @return GenericRsp + * Delete a user + * Deletes a user by given `userID`. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp userDelete(String userID) throws ApiException { - ApiResponse localVarResp = userDeleteWithHttpInfo(userID); + public UserDelete200Response userDelete(@javax.annotation.Nonnull String userID) throws ApiException { + ApiResponse localVarResp = userDeleteWithHttpInfo(userID); return localVarResp.getData(); } /** - * - * Deletes a user - * @param userID ID of user (required) - * @return ApiResponse<GenericRsp> + * Delete a user + * Deletes a user by given `userID`. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse userDeleteWithHttpInfo(String userID) throws ApiException { + public ApiResponse userDeleteWithHttpInfo(@javax.annotation.Nonnull String userID) throws ApiException { okhttp3.Call localVarCall = userDeleteValidateBeforeCall(userID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Deletes a user - * @param userID ID of user (required) + * Delete a user (asynchronously) + * Deletes a user by given `userID`. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -929,20 +930,20 @@ public ApiResponse userDeleteWithHttpInfo(String userID) throws ApiE - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call userDeleteAsync(String userID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userDeleteAsync(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = userDeleteValidateBeforeCall(userID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for userGet - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -950,11 +951,11 @@ public okhttp3.Call userDeleteAsync(String userID, final ApiCallback - +
Response Details
Status Code Description Response Headers
200 User has been returned -
200 User has been returned. -
0 Error -
*/ - public okhttp3.Call userGetCall(String userID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userGetCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1000,7 +1001,7 @@ public okhttp3.Call userGetCall(String userID, final ApiCallback _callback) thro } @SuppressWarnings("rawtypes") - private okhttp3.Call userGetValidateBeforeCall(String userID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call userGetValidateBeforeCall(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling userGet(Async)"); @@ -1011,48 +1012,48 @@ private okhttp3.Call userGetValidateBeforeCall(String userID, final ApiCallback } /** - * - * Returns a user - * @param userID ID of user (required) + * Retrieve a user + * Retrieves a user by given `userID`. This does not return login identifiers like email addresses or phone numbers. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @return User * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 User has been returned -
200 User has been returned. -
0 Error -
*/ - public User userGet(String userID) throws ApiException { + public User userGet(@javax.annotation.Nonnull String userID) throws ApiException { ApiResponse localVarResp = userGetWithHttpInfo(userID); return localVarResp.getData(); } /** - * - * Returns a user - * @param userID ID of user (required) + * Retrieve a user + * Retrieves a user by given `userID`. This does not return login identifiers like email addresses or phone numbers. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @return ApiResponse<User> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 User has been returned -
200 User has been returned. -
0 Error -
*/ - public ApiResponse userGetWithHttpInfo(String userID) throws ApiException { + public ApiResponse userGetWithHttpInfo(@javax.annotation.Nonnull String userID) throws ApiException { okhttp3.Call localVarCall = userGetValidateBeforeCall(userID, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a user - * @param userID ID of user (required) + * Retrieve a user (asynchronously) + * Retrieves a user by given `userID`. This does not return login identifiers like email addresses or phone numbers. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1060,24 +1061,177 @@ public ApiResponse userGetWithHttpInfo(String userID) throws ApiException - +
Response Details
Status Code Description Response Headers
200 User has been returned -
200 User has been returned. -
0 Error -
*/ - public okhttp3.Call userGetAsync(String userID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userGetAsync(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = userGetValidateBeforeCall(userID, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for userList + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of users. -
0 Error -
+ */ + public okhttp3.Call userListCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (filter != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "filter[]", filter)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "basicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call userListValidateBeforeCall(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { + return userListCall(sort, filter, page, pageSize, _callback); + + } + + /** + * List users + * Returns a list of project users. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `id`, `name`, `fullName`, `created`, `updated` and `status`. - The `filter` parameter supports the following fields: `id`, `searchValue`, `name`, `fullName`, `created`, `updated` and `status`. Searches in `searchValue` are performed across the `name`, `fullName` fields and identifiers values (emails, usernames and phone numbers). Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) + * @return UserList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of users. -
0 Error -
+ */ + public UserList userList(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { + ApiResponse localVarResp = userListWithHttpInfo(sort, filter, page, pageSize); + return localVarResp.getData(); + } + + /** + * List users + * Returns a list of project users. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `id`, `name`, `fullName`, `created`, `updated` and `status`. - The `filter` parameter supports the following fields: `id`, `searchValue`, `name`, `fullName`, `created`, `updated` and `status`. Searches in `searchValue` are performed across the `name`, `fullName` fields and identifiers values (emails, usernames and phone numbers). Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) + * @return ApiResponse<UserList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of users. -
0 Error -
+ */ + public ApiResponse userListWithHttpInfo(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { + okhttp3.Call localVarCall = userListValidateBeforeCall(sort, filter, page, pageSize, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List users (asynchronously) + * Returns a list of project users. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `id`, `name`, `fullName`, `created`, `updated` and `status`. - The `filter` parameter supports the following fields: `id`, `searchValue`, `name`, `fullName`, `created`, `updated` and `status`. Searches in `searchValue` are performed across the `name`, `fullName` fields and identifiers values (emails, usernames and phone numbers). Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 List of users. -
0 Error -
+ */ + public okhttp3.Call userListAsync(@javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = userListValidateBeforeCall(sort, filter, page, pageSize, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for userSocialAccountList - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1085,11 +1239,11 @@ public okhttp3.Call userGetAsync(String userID, final ApiCallback _callbac - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public okhttp3.Call userSocialAccountListCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userSocialAccountListCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1151,7 +1305,7 @@ public okhttp3.Call userSocialAccountListCall(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call userSocialAccountListValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling userSocialAccountList(Async)"); @@ -1162,60 +1316,60 @@ private okhttp3.Call userSocialAccountListValidateBeforeCall(String userID, Stri } /** - * - * Returns a list of social accounts - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all social logins for a user + * Returns a list of social logins for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `providerType` and `foreignID`. - The `filter` parameter supports the following fields: `providerType` and `foreignID`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return List<SocialAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public List userSocialAccountList(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public List userSocialAccountList(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { ApiResponse> localVarResp = userSocialAccountListWithHttpInfo(userID, sort, filter, page, pageSize); return localVarResp.getData(); } /** - * - * Returns a list of social accounts - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all social logins for a user + * Returns a list of social logins for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `providerType` and `foreignID`. - The `filter` parameter supports the following fields: `providerType` and `foreignID`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @return ApiResponse<List<SocialAccount>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public ApiResponse> userSocialAccountListWithHttpInfo(String userID, String sort, List filter, Integer page, Integer pageSize) throws ApiException { + public ApiResponse> userSocialAccountListWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { okhttp3.Call localVarCall = userSocialAccountListValidateBeforeCall(userID, sort, filter, page, pageSize, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Returns a list of social accounts - * @param userID ID of user (required) - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) - * @param pageSize Number of items per page (optional, default to 10) + * List all social logins for a user (asynchronously) + * Returns a list of social logins for a user by given `userID`. The list can be sorted and filtered: - The `sort` parameter supports the following fields: `providerType` and `foreignID`. - The `filter` parameter supports the following fields: `providerType` and `foreignID`. Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) + * @param sort Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. (optional) + * @param filter Filter results by specific fields and conditions. Format: `<field>:<operator>:<value>`. Supported operators include: - `eq`: equals (e\\.g\\. `email:eq:mail@example\\.com` matches items where email equals mail@example\\.com) - `gt`: greater than (e\\.g\\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) - `lt`: less than (e\\.g\\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) (optional) + * @param page The page number to retrieve for paginated results. (optional, default to 1) + * @param pageSize The number of items to return per page. Useful for pagination. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1223,11 +1377,11 @@ public ApiResponse> userSocialAccountListWithHttpInfo(String - +
Response Details
Status Code Description Response Headers
200 List of social accounts -
200 List of social logins. -
0 Error -
*/ - public okhttp3.Call userSocialAccountListAsync(String userID, String sort, List filter, Integer page, Integer pageSize, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call userSocialAccountListAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nullable String sort, @javax.annotation.Nullable List filter, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = userSocialAccountListValidateBeforeCall(userID, sort, filter, page, pageSize, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -1236,7 +1390,7 @@ public okhttp3.Call userSocialAccountListAsync(String userID, String sort, List< } /** * Build call for userUpdate - * @param userID ID of user (required) + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param userUpdateReq (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1245,11 +1399,11 @@ public okhttp3.Call userSocialAccountListAsync(String userID, String sort, List< - +
Response Details
Status Code Description Response Headers
200 User has been updated -
200 User has been updated. -
0 Error -
*/ - public okhttp3.Call userUpdateCall(String userID, UserUpdateReq userUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userUpdateCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull UserUpdateReq userUpdateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1296,7 +1450,7 @@ public okhttp3.Call userUpdateCall(String userID, UserUpdateReq userUpdateReq, f } @SuppressWarnings("rawtypes") - private okhttp3.Call userUpdateValidateBeforeCall(String userID, UserUpdateReq userUpdateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call userUpdateValidateBeforeCall(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull UserUpdateReq userUpdateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userID' is set if (userID == null) { throw new ApiException("Missing the required parameter 'userID' when calling userUpdate(Async)"); @@ -1312,9 +1466,9 @@ private okhttp3.Call userUpdateValidateBeforeCall(String userID, UserUpdateReq u } /** - * - * Updates a user - * @param userID ID of user (required) + * Update a user + * Updates a user by given `userID`. For example, this can be used to modify the user's status. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param userUpdateReq (required) * @return User * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1322,19 +1476,19 @@ private okhttp3.Call userUpdateValidateBeforeCall(String userID, UserUpdateReq u - +
Response Details
Status Code Description Response Headers
200 User has been updated -
200 User has been updated. -
0 Error -
*/ - public User userUpdate(String userID, UserUpdateReq userUpdateReq) throws ApiException { + public User userUpdate(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull UserUpdateReq userUpdateReq) throws ApiException { ApiResponse localVarResp = userUpdateWithHttpInfo(userID, userUpdateReq); return localVarResp.getData(); } /** - * - * Updates a user - * @param userID ID of user (required) + * Update a user + * Updates a user by given `userID`. For example, this can be used to modify the user's status. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param userUpdateReq (required) * @return ApiResponse<User> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1342,20 +1496,20 @@ public User userUpdate(String userID, UserUpdateReq userUpdateReq) throws ApiExc - +
Response Details
Status Code Description Response Headers
200 User has been updated -
200 User has been updated. -
0 Error -
*/ - public ApiResponse userUpdateWithHttpInfo(String userID, UserUpdateReq userUpdateReq) throws ApiException { + public ApiResponse userUpdateWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull UserUpdateReq userUpdateReq) throws ApiException { okhttp3.Call localVarCall = userUpdateValidateBeforeCall(userID, userUpdateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) - * Updates a user - * @param userID ID of user (required) + * Update a user (asynchronously) + * Updates a user by given `userID`. For example, this can be used to modify the user's status. You can also manage users in the [Developer Panel](https://app.corbado.com/users). + * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param userUpdateReq (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1364,11 +1518,11 @@ public ApiResponse userUpdateWithHttpInfo(String userID, UserUpdateReq use - +
Response Details
Status Code Description Response Headers
200 User has been updated -
200 User has been updated. -
0 Error -
*/ - public okhttp3.Call userUpdateAsync(String userID, UserUpdateReq userUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userUpdateAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull UserUpdateReq userUpdateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = userUpdateValidateBeforeCall(userID, userUpdateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java b/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java index 076ef96..25d02f6 100644 --- a/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java +++ b/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,8 +27,8 @@ import java.io.IOException; -import com.corbado.generated.model.ErrorRsp; -import com.corbado.generated.model.GenericRsp; +import com.corbado.generated.model.UserDelete200Response; +import com.corbado.generated.model.UserListDefaultResponse; import com.corbado.generated.model.WebhookEndpoint; import com.corbado.generated.model.WebhookEndpointCreateReq; import com.corbado.generated.model.WebhookEndpointList; @@ -87,11 +87,11 @@ public void setCustomBaseUrl(String customBaseUrl) { - +
Response Details
Status Code Description Response Headers
200 Webhook endpoint has been created -
200 Webhook endpoint has been created. -
0 Error -
*/ - public okhttp3.Call webhookEndpointCreateCall(WebhookEndpointCreateReq webhookEndpointCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call webhookEndpointCreateCall(@javax.annotation.Nonnull WebhookEndpointCreateReq webhookEndpointCreateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -137,7 +137,7 @@ public okhttp3.Call webhookEndpointCreateCall(WebhookEndpointCreateReq webhookEn } @SuppressWarnings("rawtypes") - private okhttp3.Call webhookEndpointCreateValidateBeforeCall(WebhookEndpointCreateReq webhookEndpointCreateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call webhookEndpointCreateValidateBeforeCall(@javax.annotation.Nonnull WebhookEndpointCreateReq webhookEndpointCreateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookEndpointCreateReq' is set if (webhookEndpointCreateReq == null) { throw new ApiException("Missing the required parameter 'webhookEndpointCreateReq' when calling webhookEndpointCreate(Async)"); @@ -157,11 +157,11 @@ private okhttp3.Call webhookEndpointCreateValidateBeforeCall(WebhookEndpointCrea - +
Response Details
Status Code Description Response Headers
200 Webhook endpoint has been created -
200 Webhook endpoint has been created. -
0 Error -
*/ - public WebhookEndpoint webhookEndpointCreate(WebhookEndpointCreateReq webhookEndpointCreateReq) throws ApiException { + public WebhookEndpoint webhookEndpointCreate(@javax.annotation.Nonnull WebhookEndpointCreateReq webhookEndpointCreateReq) throws ApiException { ApiResponse localVarResp = webhookEndpointCreateWithHttpInfo(webhookEndpointCreateReq); return localVarResp.getData(); } @@ -176,11 +176,11 @@ public WebhookEndpoint webhookEndpointCreate(WebhookEndpointCreateReq webhookEnd - +
Response Details
Status Code Description Response Headers
200 Webhook endpoint has been created -
200 Webhook endpoint has been created. -
0 Error -
*/ - public ApiResponse webhookEndpointCreateWithHttpInfo(WebhookEndpointCreateReq webhookEndpointCreateReq) throws ApiException { + public ApiResponse webhookEndpointCreateWithHttpInfo(@javax.annotation.Nonnull WebhookEndpointCreateReq webhookEndpointCreateReq) throws ApiException { okhttp3.Call localVarCall = webhookEndpointCreateValidateBeforeCall(webhookEndpointCreateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -197,11 +197,11 @@ public ApiResponse webhookEndpointCreateWithHttpInfo(WebhookEnd - +
Response Details
Status Code Description Response Headers
200 Webhook endpoint has been created -
200 Webhook endpoint has been created. -
0 Error -
*/ - public okhttp3.Call webhookEndpointCreateAsync(WebhookEndpointCreateReq webhookEndpointCreateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call webhookEndpointCreateAsync(@javax.annotation.Nonnull WebhookEndpointCreateReq webhookEndpointCreateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = webhookEndpointCreateValidateBeforeCall(webhookEndpointCreateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -218,11 +218,11 @@ public okhttp3.Call webhookEndpointCreateAsync(WebhookEndpointCreateReq webhookE - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call webhookEndpointDeleteCall(String webhookEndpointID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call webhookEndpointDeleteCall(@javax.annotation.Nonnull String webhookEndpointID, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -268,7 +268,7 @@ public okhttp3.Call webhookEndpointDeleteCall(String webhookEndpointID, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call webhookEndpointDeleteValidateBeforeCall(String webhookEndpointID, final ApiCallback _callback) throws ApiException { + private okhttp3.Call webhookEndpointDeleteValidateBeforeCall(@javax.annotation.Nonnull String webhookEndpointID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookEndpointID' is set if (webhookEndpointID == null) { throw new ApiException("Missing the required parameter 'webhookEndpointID' when calling webhookEndpointDelete(Async)"); @@ -282,18 +282,18 @@ private okhttp3.Call webhookEndpointDeleteValidateBeforeCall(String webhookEndpo * * Deletes an existing webhook endpoint * @param webhookEndpointID ID of a webhook endpoint (required) - * @return GenericRsp + * @return UserDelete200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public GenericRsp webhookEndpointDelete(String webhookEndpointID) throws ApiException { - ApiResponse localVarResp = webhookEndpointDeleteWithHttpInfo(webhookEndpointID); + public UserDelete200Response webhookEndpointDelete(@javax.annotation.Nonnull String webhookEndpointID) throws ApiException { + ApiResponse localVarResp = webhookEndpointDeleteWithHttpInfo(webhookEndpointID); return localVarResp.getData(); } @@ -301,19 +301,19 @@ public GenericRsp webhookEndpointDelete(String webhookEndpointID) throws ApiExce * * Deletes an existing webhook endpoint * @param webhookEndpointID ID of a webhook endpoint (required) - * @return ApiResponse<GenericRsp> + * @return ApiResponse<UserDelete200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public ApiResponse webhookEndpointDeleteWithHttpInfo(String webhookEndpointID) throws ApiException { + public ApiResponse webhookEndpointDeleteWithHttpInfo(@javax.annotation.Nonnull String webhookEndpointID) throws ApiException { okhttp3.Call localVarCall = webhookEndpointDeleteValidateBeforeCall(webhookEndpointID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -328,14 +328,14 @@ public ApiResponse webhookEndpointDeleteWithHttpInfo(String webhookE - +
Response Details
Status Code Description Response Headers
200 Operation succeeded -
200 Operation succeeded. -
0 Error -
*/ - public okhttp3.Call webhookEndpointDeleteAsync(String webhookEndpointID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call webhookEndpointDeleteAsync(@javax.annotation.Nonnull String webhookEndpointID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = webhookEndpointDeleteValidateBeforeCall(webhookEndpointID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -348,7 +348,7 @@ public okhttp3.Call webhookEndpointDeleteAsync(String webhookEndpointID, final A - +
Response Details
Status Code Description Response Headers
200 List of webhook endpoints -
200 List of webhook endpoints. -
0 Error -
*/ @@ -411,7 +411,7 @@ private okhttp3.Call webhookEndpointListValidateBeforeCall(final ApiCallback _ca - +
Response Details
Status Code Description Response Headers
200 List of webhook endpoints -
200 List of webhook endpoints. -
0 Error -
*/ @@ -429,7 +429,7 @@ public WebhookEndpointList webhookEndpointList() throws ApiException { - +
Response Details
Status Code Description Response Headers
200 List of webhook endpoints -
200 List of webhook endpoints. -
0 Error -
*/ @@ -449,7 +449,7 @@ public ApiResponse webhookEndpointListWithHttpInfo() throws - +
Response Details
Status Code Description Response Headers
200 List of webhook endpoints -
200 List of webhook endpoints. -
0 Error -
*/ @@ -471,11 +471,11 @@ public okhttp3.Call webhookEndpointListAsync(final ApiCallback Response Details Status Code Description Response Headers - 200 Webhook endpoint has been updated - + 200 Webhook endpoint has been updated. - 0 Error - */ - public okhttp3.Call webhookEndpointUpdateCall(String webhookEndpointID, WebhookEndpointUpdateReq webhookEndpointUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call webhookEndpointUpdateCall(@javax.annotation.Nonnull String webhookEndpointID, @javax.annotation.Nonnull WebhookEndpointUpdateReq webhookEndpointUpdateReq, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -522,7 +522,7 @@ public okhttp3.Call webhookEndpointUpdateCall(String webhookEndpointID, WebhookE } @SuppressWarnings("rawtypes") - private okhttp3.Call webhookEndpointUpdateValidateBeforeCall(String webhookEndpointID, WebhookEndpointUpdateReq webhookEndpointUpdateReq, final ApiCallback _callback) throws ApiException { + private okhttp3.Call webhookEndpointUpdateValidateBeforeCall(@javax.annotation.Nonnull String webhookEndpointID, @javax.annotation.Nonnull WebhookEndpointUpdateReq webhookEndpointUpdateReq, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookEndpointID' is set if (webhookEndpointID == null) { throw new ApiException("Missing the required parameter 'webhookEndpointID' when calling webhookEndpointUpdate(Async)"); @@ -548,11 +548,11 @@ private okhttp3.Call webhookEndpointUpdateValidateBeforeCall(String webhookEndpo - +
Response Details
Status Code Description Response Headers
200 Webhook endpoint has been updated -
200 Webhook endpoint has been updated. -
0 Error -
*/ - public WebhookEndpoint webhookEndpointUpdate(String webhookEndpointID, WebhookEndpointUpdateReq webhookEndpointUpdateReq) throws ApiException { + public WebhookEndpoint webhookEndpointUpdate(@javax.annotation.Nonnull String webhookEndpointID, @javax.annotation.Nonnull WebhookEndpointUpdateReq webhookEndpointUpdateReq) throws ApiException { ApiResponse localVarResp = webhookEndpointUpdateWithHttpInfo(webhookEndpointID, webhookEndpointUpdateReq); return localVarResp.getData(); } @@ -568,11 +568,11 @@ public WebhookEndpoint webhookEndpointUpdate(String webhookEndpointID, WebhookEn - +
Response Details
Status Code Description Response Headers
200 Webhook endpoint has been updated -
200 Webhook endpoint has been updated. -
0 Error -
*/ - public ApiResponse webhookEndpointUpdateWithHttpInfo(String webhookEndpointID, WebhookEndpointUpdateReq webhookEndpointUpdateReq) throws ApiException { + public ApiResponse webhookEndpointUpdateWithHttpInfo(@javax.annotation.Nonnull String webhookEndpointID, @javax.annotation.Nonnull WebhookEndpointUpdateReq webhookEndpointUpdateReq) throws ApiException { okhttp3.Call localVarCall = webhookEndpointUpdateValidateBeforeCall(webhookEndpointID, webhookEndpointUpdateReq, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -590,11 +590,11 @@ public ApiResponse webhookEndpointUpdateWithHttpInfo(String web - +
Response Details
Status Code Description Response Headers
200 Webhook endpoint has been updated -
200 Webhook endpoint has been updated. -
0 Error -
*/ - public okhttp3.Call webhookEndpointUpdateAsync(String webhookEndpointID, WebhookEndpointUpdateReq webhookEndpointUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call webhookEndpointUpdateAsync(@javax.annotation.Nonnull String webhookEndpointID, @javax.annotation.Nonnull WebhookEndpointUpdateReq webhookEndpointUpdateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = webhookEndpointUpdateValidateBeforeCall(webhookEndpointID, webhookEndpointUpdateReq, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/corbado/generated/invoker/ApiCallback.java b/src/main/java/com/corbado/generated/invoker/ApiCallback.java index bc98235..2fe890b 100644 --- a/src/main/java/com/corbado/generated/invoker/ApiCallback.java +++ b/src/main/java/com/corbado/generated/invoker/ApiCallback.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com diff --git a/src/main/java/com/corbado/generated/invoker/ApiClient.java b/src/main/java/com/corbado/generated/invoker/ApiClient.java index b401f53..83b824f 100644 --- a/src/main/java/com/corbado/generated/invoker/ApiClient.java +++ b/src/main/java/com/corbado/generated/invoker/ApiClient.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -61,7 +61,7 @@ */ public class ApiClient { - private String basePath = "https://backendapi.corbado.io/v2"; + protected String basePath = "https://backendapi.corbado.io/v2"; protected List servers = new ArrayList(Arrays.asList( new ServerConfiguration( "https://backendapi.corbado.io/v2", @@ -71,26 +71,26 @@ public class ApiClient { )); protected Integer serverIndex = 0; protected Map serverVariables = null; - private boolean debugging = false; - private Map defaultHeaderMap = new HashMap(); - private Map defaultCookieMap = new HashMap(); - private String tempFolderPath = null; + protected boolean debugging = false; + protected Map defaultHeaderMap = new HashMap(); + protected Map defaultCookieMap = new HashMap(); + protected String tempFolderPath = null; - private Map authentications; + protected Map authentications; - private DateFormat dateFormat; - private DateFormat datetimeFormat; - private boolean lenientDatetimeFormat; - private int dateLength; + protected DateFormat dateFormat; + protected DateFormat datetimeFormat; + protected boolean lenientDatetimeFormat; + protected int dateLength; - private InputStream sslCaCert; - private boolean verifyingSsl; - private KeyManager[] keyManagers; + protected InputStream sslCaCert; + protected boolean verifyingSsl; + protected KeyManager[] keyManagers; - private OkHttpClient httpClient; - private JSON json; + protected OkHttpClient httpClient; + protected JSON json; - private HttpLoggingInterceptor loggingInterceptor; + protected HttpLoggingInterceptor loggingInterceptor; /** * Basic constructor for ApiClient @@ -121,11 +121,11 @@ public ApiClient(OkHttpClient client) { authentications = Collections.unmodifiableMap(authentications); } - private void initHttpClient() { + protected void initHttpClient() { initHttpClient(Collections.emptyList()); } - private void initHttpClient(List interceptors) { + protected void initHttpClient(List interceptors) { OkHttpClient.Builder builder = new OkHttpClient.Builder(); builder.addNetworkInterceptor(getProgressInterceptor()); for (Interceptor interceptor: interceptors) { @@ -135,7 +135,7 @@ private void initHttpClient(List interceptors) { httpClient = builder.build(); } - private void init() { + protected void init() { verifyingSsl = true; json = new JSON(); @@ -158,8 +158,8 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g https://backendapi.corbado.io/v2 - * @return An instance of OkHttpClient + * @param basePath Base path of the URL (e.g https://backendapi.corbado.io/v2) + * @return An instance of ApiClient */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; @@ -207,7 +207,7 @@ public OkHttpClient getHttpClient() { * Set HTTP client, which must never be null. * * @param newHttpClient An instance of OkHttpClient - * @return Api Client + * @return ApiClient * @throws java.lang.NullPointerException when newHttpClient is null */ public ApiClient setHttpClient(OkHttpClient newHttpClient) { @@ -695,7 +695,7 @@ public List parameterToPair(String name, Object value) { * @param value The value of the parameter. * @return A list of {@code Pair} objects. */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { + public List parameterToPairs(String collectionFormat, String name, Collection value) { List params = new ArrayList(); // preconditions @@ -802,7 +802,7 @@ public String collectionPathParameterToString(String collectionFormat, Collectio * @return The sanitized filename */ public String sanitizeFilename(String filename) { - return filename.replaceAll(".*[/\\\\]", ""); + return filename.replaceFirst("^.*[/\\\\]", ""); } /** @@ -912,17 +912,8 @@ public T deserialize(Response response, Type returnType) throws ApiException return (T) downloadFileFromResponse(response); } - String respBody; - try { - if (response.body() != null) - respBody = response.body().string(); - else - respBody = null; - } catch (IOException e) { - throw new ApiException(e); - } - - if (respBody == null || "".equals(respBody)) { + ResponseBody respBody = response.body(); + if (respBody == null) { return null; } @@ -931,17 +922,25 @@ public T deserialize(Response response, Type returnType) throws ApiException // ensuring a default content type contentType = "application/json"; } - if (isJsonMime(contentType)) { - return JSON.deserialize(respBody, returnType); - } else if (returnType.equals(String.class)) { - // Expecting string, return the raw response body. - return (T) respBody; - } else { - throw new ApiException( + try { + if (isJsonMime(contentType)) { + return JSON.deserialize(respBody.byteStream(), returnType); + } else if (returnType.equals(String.class)) { + String respBodyString = respBody.string(); + if (respBodyString.isEmpty()) { + return null; + } + // Expecting string, return the raw response body. + return (T) respBodyString; + } else { + throw new ApiException( "Content type \"" + contentType + "\" is not supported for type: " + returnType, response.code(), response.headers().toMultimap(), - respBody); + response.body().string()); + } + } catch (IOException e) { + throw new ApiException(e); } } @@ -1268,7 +1267,8 @@ public String buildUrl(String baseUrl, String path, List queryParams, List if (serverIndex != null) { if (serverIndex < 0 || serverIndex >= servers.size()) { throw new ArrayIndexOutOfBoundsException(String.format( - "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() + Locale.ROOT, + "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() )); } baseURL = servers.get(serverIndex).URL(serverVariables); @@ -1340,11 +1340,11 @@ public void processHeaderParams(Map headerParams, Request.Builde */ public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } for (Entry param : defaultCookieMap.entrySet()) { if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } } } @@ -1437,7 +1437,7 @@ public String guessContentTypeFromFile(File file) { * @param key The key of the Header element * @param file The file to add to the Header */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); @@ -1450,7 +1450,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k * @param key The key of the Header element * @param obj The complex object to add to the Header */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { RequestBody requestBody; if (obj instanceof String) { requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); @@ -1472,7 +1472,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k * Get network interceptor to add it to the httpClient to track download progress for * async requests. */ - private Interceptor getProgressInterceptor() { + protected Interceptor getProgressInterceptor() { return new Interceptor() { @Override public Response intercept(Interceptor.Chain chain) throws IOException { @@ -1493,7 +1493,7 @@ public Response intercept(Interceptor.Chain chain) throws IOException { * Apply SSL related settings to httpClient according to the current values of * verifyingSsl and sslCaCert. */ - private void applySslSettings() { + protected void applySslSettings() { try { TrustManager[] trustManagers; HostnameVerifier hostnameVerifier; @@ -1555,7 +1555,7 @@ public boolean verify(String hostname, SSLSession session) { } } - private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { + protected KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { try { KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); keyStore.load(null, password); @@ -1572,7 +1572,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti * @return The string representation of the HTTP request body * @throws com.corbado.generated.invoker.ApiException If fail to serialize the request body object into a string */ - private String requestBodyToString(RequestBody requestBody) throws ApiException { + protected String requestBodyToString(RequestBody requestBody) throws ApiException { if (requestBody != null) { try { final Buffer buffer = new Buffer(); diff --git a/src/main/java/com/corbado/generated/invoker/ApiException.java b/src/main/java/com/corbado/generated/invoker/ApiException.java index 1cf4a31..7d3e242 100644 --- a/src/main/java/com/corbado/generated/invoker/ApiException.java +++ b/src/main/java/com/corbado/generated/invoker/ApiException.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -15,13 +15,14 @@ import java.util.Map; import java.util.List; +import java.util.Locale; /** *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ApiException extends Exception { private static final long serialVersionUID = 1L; @@ -161,7 +162,7 @@ public String getResponseBody() { * @return The exception message */ public String getMessage() { - return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + return String.format(Locale.ROOT, "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); } } diff --git a/src/main/java/com/corbado/generated/invoker/ApiResponse.java b/src/main/java/com/corbado/generated/invoker/ApiResponse.java index 73c0176..7b83cf8 100644 --- a/src/main/java/com/corbado/generated/invoker/ApiResponse.java +++ b/src/main/java/com/corbado/generated/invoker/ApiResponse.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com diff --git a/src/main/java/com/corbado/generated/invoker/Configuration.java b/src/main/java/com/corbado/generated/invoker/Configuration.java index 477b40d..4329b9b 100644 --- a/src/main/java/com/corbado/generated/invoker/Configuration.java +++ b/src/main/java/com/corbado/generated/invoker/Configuration.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -17,7 +17,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Configuration { public static final String VERSION = "1.0.0"; diff --git a/src/main/java/com/corbado/generated/invoker/GzipRequestInterceptor.java b/src/main/java/com/corbado/generated/invoker/GzipRequestInterceptor.java index 9af01e7..65b41d6 100644 --- a/src/main/java/com/corbado/generated/invoker/GzipRequestInterceptor.java +++ b/src/main/java/com/corbado/generated/invoker/GzipRequestInterceptor.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com diff --git a/src/main/java/com/corbado/generated/invoker/JSON.java b/src/main/java/com/corbado/generated/invoker/JSON.java index 82c66cb..1a2f5b3 100644 --- a/src/main/java/com/corbado/generated/invoker/JSON.java +++ b/src/main/java/com/corbado/generated/invoker/JSON.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -27,8 +27,11 @@ import okio.ByteString; import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.io.StringReader; import java.lang.reflect.Type; +import java.nio.charset.StandardCharsets; import java.text.DateFormat; import java.text.ParseException; import java.text.ParsePosition; @@ -64,8 +67,6 @@ public Class classByDiscriminatorValue = new HashMap(); classByDiscriminatorValue.put("alternativeProjectID", com.corbado.generated.model.PasskeyMediationFinishErrorAlternativeProject.class); classByDiscriminatorValue.put("credentialDeleted", com.corbado.generated.model.PasskeyMediationFinishErrorCredentialDeleted.class); - classByDiscriminatorValue.put("passkeyMediationFinishErrorAlternativeProject", com.corbado.generated.model.PasskeyMediationFinishErrorAlternativeProject.class); - classByDiscriminatorValue.put("passkeyMediationFinishErrorCredentialDeleted", com.corbado.generated.model.PasskeyMediationFinishErrorCredentialDeleted.class); classByDiscriminatorValue.put("passkeyMediationFinishRsp_error", com.corbado.generated.model.PasskeyMediationFinishRspError.class); return getClassByDiscriminator(classByDiscriminatorValue, getDiscriminatorValue(readElement, "type")); @@ -107,11 +108,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.AaguidDetails.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.AppendHistoryData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.AuthEvent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.AuthEventCreateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Challenge.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ChallengeCreateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ChallengeUpdateReq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ClientEnv.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ClientEnvList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ClientInformation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ConnectToken.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ConnectTokenCreateReq.CustomTypeAdapterFactory()); @@ -125,18 +129,15 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Credential.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.CredentialList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.DecisionInsights.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.DecisionInsightsAppend.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.DetectionInsights.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.DetectionTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ErrorRsp.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ErrorRspAllOfError.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ErrorRspAllOfErrorValidation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.GenericRsp.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Identifier.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.IdentifierCreateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.IdentifierList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.IdentifierUpdateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.JavaScriptHighEntropy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Paging.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.NativeMeta.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ParsedDeviceInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyAppendFinishReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyAppendFinishRsp.CustomTypeAdapterFactory()); @@ -163,17 +164,26 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyMediationStartRsp.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyPostLoginReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyPostLoginRsp.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyVerifySignedDataReq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyVerifySignedDataRsp.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasswordManager.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasswordManagerList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ProjectConfigUpdateCnameReq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.RequestData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Session.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SessionList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SessionListSessionsInner.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SocialAccount.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SocialAccountCreateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SocialAccountList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.User.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserAggregate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserCreateReq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserDelete200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponseAllOfError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponseAllOfErrorValidationInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponseAllOfRequestData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListPaging.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserUpdateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.WebhookEndpoint.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.WebhookEndpointCreateReq.CustomTypeAdapterFactory()); @@ -244,6 +254,28 @@ public static T deserialize(String body, Type returnType) { } } + /** + * Deserialize the given JSON InputStream to a Java object. + * + * @param Type + * @param inputStream The JSON InputStream + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public static T deserialize(InputStream inputStream, Type returnType) throws IOException { + try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { + if (isLenientOnJson) { + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + JsonReader jsonReader = new JsonReader(reader); + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(reader, returnType); + } + } + } + /** * Gson TypeAdapter for Byte Array type */ diff --git a/src/main/java/com/corbado/generated/invoker/Pair.java b/src/main/java/com/corbado/generated/invoker/Pair.java index c37df58..adf6cea 100644 --- a/src/main/java/com/corbado/generated/invoker/Pair.java +++ b/src/main/java/com/corbado/generated/invoker/Pair.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -13,45 +13,25 @@ package com.corbado.generated.invoker; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Pair { - private String name = ""; - private String value = ""; + private final String name; + private final String value; - public Pair (String name, String value) { - setName(name); - setValue(value); - } + public Pair(String name, String value) { + this.name = isValidString(name) ? name : ""; + this.value = isValidString(value) ? value : ""; + } - private void setName(String name) { - if (!isValidString(name)) { - return; - } + public String getName() { + return this.name; + } - this.name = name; - } + public String getValue() { + return this.value; + } - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } - - public String getName() { - return this.name; - } - - public String getValue() { - return this.value; - } - - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } - - return true; - } + private static boolean isValidString(String arg) { + return arg != null; + } } diff --git a/src/main/java/com/corbado/generated/invoker/ProgressRequestBody.java b/src/main/java/com/corbado/generated/invoker/ProgressRequestBody.java index 456cf6a..9869c30 100644 --- a/src/main/java/com/corbado/generated/invoker/ProgressRequestBody.java +++ b/src/main/java/com/corbado/generated/invoker/ProgressRequestBody.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com diff --git a/src/main/java/com/corbado/generated/invoker/ProgressResponseBody.java b/src/main/java/com/corbado/generated/invoker/ProgressResponseBody.java index 0a2a85b..88b4ecc 100644 --- a/src/main/java/com/corbado/generated/invoker/ProgressResponseBody.java +++ b/src/main/java/com/corbado/generated/invoker/ProgressResponseBody.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com diff --git a/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java b/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java index 1c9320e..1f5d124 100644 --- a/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java +++ b/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/corbado/generated/invoker/ServerVariable.java b/src/main/java/com/corbado/generated/invoker/ServerVariable.java index ae636b9..c0fe73c 100644 --- a/src/main/java/com/corbado/generated/invoker/ServerVariable.java +++ b/src/main/java/com/corbado/generated/invoker/ServerVariable.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/corbado/generated/invoker/StringUtil.java b/src/main/java/com/corbado/generated/invoker/StringUtil.java index 97e151d..31eb9be 100644 --- a/src/main/java/com/corbado/generated/invoker/StringUtil.java +++ b/src/main/java/com/corbado/generated/invoker/StringUtil.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java b/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java index 2b55511..bcd2284 100644 --- a/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java +++ b/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/corbado/generated/invoker/auth/Authentication.java b/src/main/java/com/corbado/generated/invoker/auth/Authentication.java index 30dbc06..5414274 100644 --- a/src/main/java/com/corbado/generated/invoker/auth/Authentication.java +++ b/src/main/java/com/corbado/generated/invoker/auth/Authentication.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -20,6 +20,7 @@ import java.util.Map; import java.util.List; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/src/main/java/com/corbado/generated/invoker/auth/HttpBasicAuth.java b/src/main/java/com/corbado/generated/invoker/auth/HttpBasicAuth.java index 6bb40bf..ebb1d48 100644 --- a/src/main/java/com/corbado/generated/invoker/auth/HttpBasicAuth.java +++ b/src/main/java/com/corbado/generated/invoker/auth/HttpBasicAuth.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com diff --git a/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java b/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java index 6cba8cb..60d8a2b 100644 --- a/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java +++ b/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/src/main/java/com/corbado/generated/model/AaguidDetails.java b/src/main/java/com/corbado/generated/model/AaguidDetails.java index 0b5b1aa..b6a2321 100644 --- a/src/main/java/com/corbado/generated/model/AaguidDetails.java +++ b/src/main/java/com/corbado/generated/model/AaguidDetails.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * AaguidDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class AaguidDetails { public static final String SERIALIZED_NAME_AAGUID = "aaguid"; @SerializedName(SERIALIZED_NAME_AAGUID) @@ -199,18 +201,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("aaguid"); - openapiFields.add("name"); - openapiFields.add("iconLight"); - openapiFields.add("iconDark"); + openapiFields = new HashSet(Arrays.asList("aaguid", "name", "iconLight", "iconDark")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("aaguid"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("iconLight"); - openapiRequiredFields.add("iconDark"); + openapiRequiredFields = new HashSet(Arrays.asList("aaguid", "name", "iconLight", "iconDark")); } /** @@ -222,7 +216,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AaguidDetails.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AaguidDetails is not found in the empty JSON string", AaguidDetails.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AaguidDetails is not found in the empty JSON string", AaguidDetails.openapiRequiredFields.toString())); } } @@ -230,28 +224,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!AaguidDetails.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AaguidDetails` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AaguidDetails` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AaguidDetails.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("aaguid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `aaguid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aaguid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `aaguid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aaguid").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("iconLight").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `iconLight` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iconLight").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `iconLight` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iconLight").toString())); } if (!jsonObj.get("iconDark").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `iconDark` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iconDark").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `iconDark` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iconDark").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java b/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java index b00630f..8c1ffa5 100644 --- a/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/corbado/generated/model/AppendHistoryData.java b/src/main/java/com/corbado/generated/model/AppendHistoryData.java new file mode 100644 index 0000000..3bd4289 --- /dev/null +++ b/src/main/java/com/corbado/generated/model/AppendHistoryData.java @@ -0,0 +1,393 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * AppendHistoryData + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class AppendHistoryData { + public static final String SERIALIZED_NAME_DEFAULT_COUNT = "defaultCount"; + @SerializedName(SERIALIZED_NAME_DEFAULT_COUNT) + @javax.annotation.Nonnull + private Integer defaultCount; + + public static final String SERIALIZED_NAME_AFTER_ERROR_COUNT = "afterErrorCount"; + @SerializedName(SERIALIZED_NAME_AFTER_ERROR_COUNT) + @javax.annotation.Nonnull + private Integer afterErrorCount; + + public static final String SERIALIZED_NAME_AFTER_HYBRID_COUNT = "afterHybridCount"; + @SerializedName(SERIALIZED_NAME_AFTER_HYBRID_COUNT) + @javax.annotation.Nonnull + private Integer afterHybridCount; + + public static final String SERIALIZED_NAME_AUTO_COUNT = "autoCount"; + @SerializedName(SERIALIZED_NAME_AUTO_COUNT) + @javax.annotation.Nonnull + private Integer autoCount; + + public static final String SERIALIZED_NAME_DEFAULT_COOLDOWN = "defaultCooldown"; + @SerializedName(SERIALIZED_NAME_DEFAULT_COOLDOWN) + @javax.annotation.Nonnull + private Boolean defaultCooldown; + + public static final String SERIALIZED_NAME_AFTER_ERROR_COOLDOWN = "afterErrorCooldown"; + @SerializedName(SERIALIZED_NAME_AFTER_ERROR_COOLDOWN) + @javax.annotation.Nonnull + private Boolean afterErrorCooldown; + + public static final String SERIALIZED_NAME_AFTER_HYBRID_COOLDOWN = "afterHybridCooldown"; + @SerializedName(SERIALIZED_NAME_AFTER_HYBRID_COOLDOWN) + @javax.annotation.Nonnull + private Boolean afterHybridCooldown; + + public static final String SERIALIZED_NAME_AUTO_COOLDOWN = "autoCooldown"; + @SerializedName(SERIALIZED_NAME_AUTO_COOLDOWN) + @javax.annotation.Nonnull + private Boolean autoCooldown; + + public AppendHistoryData() { + } + + public AppendHistoryData defaultCount(@javax.annotation.Nonnull Integer defaultCount) { + this.defaultCount = defaultCount; + return this; + } + + /** + * Get defaultCount + * @return defaultCount + */ + @javax.annotation.Nonnull + public Integer getDefaultCount() { + return defaultCount; + } + + public void setDefaultCount(@javax.annotation.Nonnull Integer defaultCount) { + this.defaultCount = defaultCount; + } + + + public AppendHistoryData afterErrorCount(@javax.annotation.Nonnull Integer afterErrorCount) { + this.afterErrorCount = afterErrorCount; + return this; + } + + /** + * Get afterErrorCount + * @return afterErrorCount + */ + @javax.annotation.Nonnull + public Integer getAfterErrorCount() { + return afterErrorCount; + } + + public void setAfterErrorCount(@javax.annotation.Nonnull Integer afterErrorCount) { + this.afterErrorCount = afterErrorCount; + } + + + public AppendHistoryData afterHybridCount(@javax.annotation.Nonnull Integer afterHybridCount) { + this.afterHybridCount = afterHybridCount; + return this; + } + + /** + * Get afterHybridCount + * @return afterHybridCount + */ + @javax.annotation.Nonnull + public Integer getAfterHybridCount() { + return afterHybridCount; + } + + public void setAfterHybridCount(@javax.annotation.Nonnull Integer afterHybridCount) { + this.afterHybridCount = afterHybridCount; + } + + + public AppendHistoryData autoCount(@javax.annotation.Nonnull Integer autoCount) { + this.autoCount = autoCount; + return this; + } + + /** + * Get autoCount + * @return autoCount + */ + @javax.annotation.Nonnull + public Integer getAutoCount() { + return autoCount; + } + + public void setAutoCount(@javax.annotation.Nonnull Integer autoCount) { + this.autoCount = autoCount; + } + + + public AppendHistoryData defaultCooldown(@javax.annotation.Nonnull Boolean defaultCooldown) { + this.defaultCooldown = defaultCooldown; + return this; + } + + /** + * Get defaultCooldown + * @return defaultCooldown + */ + @javax.annotation.Nonnull + public Boolean getDefaultCooldown() { + return defaultCooldown; + } + + public void setDefaultCooldown(@javax.annotation.Nonnull Boolean defaultCooldown) { + this.defaultCooldown = defaultCooldown; + } + + + public AppendHistoryData afterErrorCooldown(@javax.annotation.Nonnull Boolean afterErrorCooldown) { + this.afterErrorCooldown = afterErrorCooldown; + return this; + } + + /** + * Get afterErrorCooldown + * @return afterErrorCooldown + */ + @javax.annotation.Nonnull + public Boolean getAfterErrorCooldown() { + return afterErrorCooldown; + } + + public void setAfterErrorCooldown(@javax.annotation.Nonnull Boolean afterErrorCooldown) { + this.afterErrorCooldown = afterErrorCooldown; + } + + + public AppendHistoryData afterHybridCooldown(@javax.annotation.Nonnull Boolean afterHybridCooldown) { + this.afterHybridCooldown = afterHybridCooldown; + return this; + } + + /** + * Get afterHybridCooldown + * @return afterHybridCooldown + */ + @javax.annotation.Nonnull + public Boolean getAfterHybridCooldown() { + return afterHybridCooldown; + } + + public void setAfterHybridCooldown(@javax.annotation.Nonnull Boolean afterHybridCooldown) { + this.afterHybridCooldown = afterHybridCooldown; + } + + + public AppendHistoryData autoCooldown(@javax.annotation.Nonnull Boolean autoCooldown) { + this.autoCooldown = autoCooldown; + return this; + } + + /** + * Get autoCooldown + * @return autoCooldown + */ + @javax.annotation.Nonnull + public Boolean getAutoCooldown() { + return autoCooldown; + } + + public void setAutoCooldown(@javax.annotation.Nonnull Boolean autoCooldown) { + this.autoCooldown = autoCooldown; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AppendHistoryData appendHistoryData = (AppendHistoryData) o; + return Objects.equals(this.defaultCount, appendHistoryData.defaultCount) && + Objects.equals(this.afterErrorCount, appendHistoryData.afterErrorCount) && + Objects.equals(this.afterHybridCount, appendHistoryData.afterHybridCount) && + Objects.equals(this.autoCount, appendHistoryData.autoCount) && + Objects.equals(this.defaultCooldown, appendHistoryData.defaultCooldown) && + Objects.equals(this.afterErrorCooldown, appendHistoryData.afterErrorCooldown) && + Objects.equals(this.afterHybridCooldown, appendHistoryData.afterHybridCooldown) && + Objects.equals(this.autoCooldown, appendHistoryData.autoCooldown); + } + + @Override + public int hashCode() { + return Objects.hash(defaultCount, afterErrorCount, afterHybridCount, autoCount, defaultCooldown, afterErrorCooldown, afterHybridCooldown, autoCooldown); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AppendHistoryData {\n"); + sb.append(" defaultCount: ").append(toIndentedString(defaultCount)).append("\n"); + sb.append(" afterErrorCount: ").append(toIndentedString(afterErrorCount)).append("\n"); + sb.append(" afterHybridCount: ").append(toIndentedString(afterHybridCount)).append("\n"); + sb.append(" autoCount: ").append(toIndentedString(autoCount)).append("\n"); + sb.append(" defaultCooldown: ").append(toIndentedString(defaultCooldown)).append("\n"); + sb.append(" afterErrorCooldown: ").append(toIndentedString(afterErrorCooldown)).append("\n"); + sb.append(" afterHybridCooldown: ").append(toIndentedString(afterHybridCooldown)).append("\n"); + sb.append(" autoCooldown: ").append(toIndentedString(autoCooldown)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("defaultCount", "afterErrorCount", "afterHybridCount", "autoCount", "defaultCooldown", "afterErrorCooldown", "afterHybridCooldown", "autoCooldown")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("defaultCount", "afterErrorCount", "afterHybridCount", "autoCount", "defaultCooldown", "afterErrorCooldown", "afterHybridCooldown", "autoCooldown")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AppendHistoryData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AppendHistoryData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AppendHistoryData is not found in the empty JSON string", AppendHistoryData.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AppendHistoryData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AppendHistoryData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AppendHistoryData.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AppendHistoryData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AppendHistoryData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AppendHistoryData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AppendHistoryData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AppendHistoryData read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AppendHistoryData given an JSON string + * + * @param jsonString JSON string + * @return An instance of AppendHistoryData + * @throws IOException if the JSON string is invalid with respect to AppendHistoryData + */ + public static AppendHistoryData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AppendHistoryData.class); + } + + /** + * Convert an instance of AppendHistoryData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/AuthEvent.java b/src/main/java/com/corbado/generated/model/AuthEvent.java index 344e1d1..b1fdf05 100644 --- a/src/main/java/com/corbado/generated/model/AuthEvent.java +++ b/src/main/java/com/corbado/generated/model/AuthEvent.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.AuthEventMethod; import com.corbado.generated.model.AuthEventStatus; import com.corbado.generated.model.AuthEventType; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * AuthEvent */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class AuthEvent { public static final String SERIALIZED_NAME_AUTH_EVENT_I_D = "authEventID"; @SerializedName(SERIALIZED_NAME_AUTH_EVENT_I_D) @@ -306,26 +308,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("authEventID"); - openapiFields.add("userID"); - openapiFields.add("username"); - openapiFields.add("eventType"); - openapiFields.add("method"); - openapiFields.add("created"); - openapiFields.add("createdMs"); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("authEventID", "userID", "username", "eventType", "method", "created", "createdMs", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("authEventID"); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("username"); - openapiRequiredFields.add("eventType"); - openapiRequiredFields.add("method"); - openapiRequiredFields.add("created"); - openapiRequiredFields.add("createdMs"); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("authEventID", "userID", "username", "eventType", "method", "created", "createdMs", "status")); } /** @@ -337,7 +323,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AuthEvent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AuthEvent is not found in the empty JSON string", AuthEvent.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AuthEvent is not found in the empty JSON string", AuthEvent.openapiRequiredFields.toString())); } } @@ -345,32 +331,32 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!AuthEvent.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AuthEvent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AuthEvent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AuthEvent.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("authEventID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `authEventID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authEventID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authEventID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authEventID").toString())); } if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } // validate the required field `eventType` AuthEventType.validateJsonElement(jsonObj.get("eventType")); // validate the required field `method` AuthEventMethod.validateJsonElement(jsonObj.get("method")); if (!jsonObj.get("created").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); } // validate the required field `status` AuthEventStatus.validateJsonElement(jsonObj.get("status")); diff --git a/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java b/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java index fb6f13a..5e6a2c9 100644 --- a/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java +++ b/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.AuthEventMethod; import com.corbado.generated.model.AuthEventStatus; import com.corbado.generated.model.AuthEventType; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * AuthEventCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class AuthEventCreateReq { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -229,20 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("username"); - openapiFields.add("eventType"); - openapiFields.add("method"); - openapiFields.add("status"); - openapiFields.add("clientInformation"); + openapiFields = new HashSet(Arrays.asList("username", "eventType", "method", "status", "clientInformation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("username"); - openapiRequiredFields.add("eventType"); - openapiRequiredFields.add("method"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("clientInformation"); + openapiRequiredFields = new HashSet(Arrays.asList("username", "eventType", "method", "status", "clientInformation")); } /** @@ -254,7 +246,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AuthEventCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AuthEventCreateReq is not found in the empty JSON string", AuthEventCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AuthEventCreateReq is not found in the empty JSON string", AuthEventCreateReq.openapiRequiredFields.toString())); } } @@ -262,19 +254,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!AuthEventCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AuthEventCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AuthEventCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AuthEventCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } // validate the required field `eventType` AuthEventType.validateJsonElement(jsonObj.get("eventType")); diff --git a/src/main/java/com/corbado/generated/model/AuthEventMethod.java b/src/main/java/com/corbado/generated/model/AuthEventMethod.java index ff07d4d..1af0959 100644 --- a/src/main/java/com/corbado/generated/model/AuthEventMethod.java +++ b/src/main/java/com/corbado/generated/model/AuthEventMethod.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/AuthEventStatus.java b/src/main/java/com/corbado/generated/model/AuthEventStatus.java index 5dc76c7..9062f4e 100644 --- a/src/main/java/com/corbado/generated/model/AuthEventStatus.java +++ b/src/main/java/com/corbado/generated/model/AuthEventStatus.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/AuthEventType.java b/src/main/java/com/corbado/generated/model/AuthEventType.java index b5d9d74..120900d 100644 --- a/src/main/java/com/corbado/generated/model/AuthEventType.java +++ b/src/main/java/com/corbado/generated/model/AuthEventType.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/Challenge.java b/src/main/java/com/corbado/generated/model/Challenge.java index 2b81852..bf5da0d 100644 --- a/src/main/java/com/corbado/generated/model/Challenge.java +++ b/src/main/java/com/corbado/generated/model/Challenge.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ChallengeStatus; import com.corbado.generated.model.ChallengeType; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * Challenge */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Challenge { public static final String SERIALIZED_NAME_CHALLENGE_I_D = "challengeID"; @SerializedName(SERIALIZED_NAME_CHALLENGE_I_D) @@ -253,22 +255,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("challengeID"); - openapiFields.add("type"); - openapiFields.add("identifierValue"); - openapiFields.add("value"); - openapiFields.add("expires"); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("challengeID", "type", "identifierValue", "value", "expires", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("challengeID"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("identifierValue"); - openapiRequiredFields.add("value"); - openapiRequiredFields.add("expires"); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("challengeID", "type", "identifierValue", "value", "expires", "status")); } /** @@ -280,7 +270,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Challenge.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Challenge is not found in the empty JSON string", Challenge.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Challenge is not found in the empty JSON string", Challenge.openapiRequiredFields.toString())); } } @@ -288,27 +278,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!Challenge.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Challenge` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Challenge` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Challenge.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("challengeID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `challengeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challengeID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `challengeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challengeID").toString())); } // validate the required field `type` ChallengeType.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("identifierValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); } if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } // validate the required field `status` ChallengeStatus.validateJsonElement(jsonObj.get("status")); diff --git a/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java b/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java index c738fb7..c0f58c2 100644 --- a/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java +++ b/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ChallengeType; import com.corbado.generated.model.ClientInformation; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ChallengeCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ChallengeCreateReq { public static final String SERIALIZED_NAME_CHALLENGE_TYPE = "challengeType"; @SerializedName(SERIALIZED_NAME_CHALLENGE_TYPE) @@ -227,18 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("challengeType"); - openapiFields.add("identifierValue"); - openapiFields.add("challengeMetadata"); - openapiFields.add("lifetimeSeconds"); - openapiFields.add("clientInformation"); + openapiFields = new HashSet(Arrays.asList("challengeType", "identifierValue", "challengeMetadata", "lifetimeSeconds", "clientInformation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("challengeType"); - openapiRequiredFields.add("identifierValue"); - openapiRequiredFields.add("clientInformation"); + openapiRequiredFields = new HashSet(Arrays.asList("challengeType", "identifierValue", "clientInformation")); } /** @@ -250,7 +244,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ChallengeCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ChallengeCreateReq is not found in the empty JSON string", ChallengeCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ChallengeCreateReq is not found in the empty JSON string", ChallengeCreateReq.openapiRequiredFields.toString())); } } @@ -258,21 +252,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ChallengeCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ChallengeCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ChallengeCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ChallengeCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `challengeType` ChallengeType.validateJsonElement(jsonObj.get("challengeType")); if (!jsonObj.get("identifierValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); } // validate the required field `clientInformation` ClientInformation.validateJsonElement(jsonObj.get("clientInformation")); diff --git a/src/main/java/com/corbado/generated/model/ChallengeStatus.java b/src/main/java/com/corbado/generated/model/ChallengeStatus.java index a5a04d3..dc9d7fa 100644 --- a/src/main/java/com/corbado/generated/model/ChallengeStatus.java +++ b/src/main/java/com/corbado/generated/model/ChallengeStatus.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/ChallengeType.java b/src/main/java/com/corbado/generated/model/ChallengeType.java index dc37c63..5cd116e 100644 --- a/src/main/java/com/corbado/generated/model/ChallengeType.java +++ b/src/main/java/com/corbado/generated/model/ChallengeType.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java b/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java index 9d2a67e..e1348d0 100644 --- a/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ChallengeUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ChallengeUpdateReq { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -121,12 +123,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -138,7 +138,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ChallengeUpdateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ChallengeUpdateReq is not found in the empty JSON string", ChallengeUpdateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ChallengeUpdateReq is not found in the empty JSON string", ChallengeUpdateReq.openapiRequiredFields.toString())); } } @@ -146,19 +146,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ChallengeUpdateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ChallengeUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ChallengeUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ChallengeUpdateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/ClientEnv.java b/src/main/java/com/corbado/generated/model/ClientEnv.java new file mode 100644 index 0000000..46df418 --- /dev/null +++ b/src/main/java/com/corbado/generated/model/ClientEnv.java @@ -0,0 +1,472 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * ClientEnv + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class ClientEnv { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public static final String SERIALIZED_NAME_HANDLE = "handle"; + @SerializedName(SERIALIZED_NAME_HANDLE) + @javax.annotation.Nonnull + private String handle; + + public static final String SERIALIZED_NAME_BROWSER_NAME = "browserName"; + @SerializedName(SERIALIZED_NAME_BROWSER_NAME) + @javax.annotation.Nonnull + private String browserName; + + public static final String SERIALIZED_NAME_BROWSER_VERSION = "browserVersion"; + @SerializedName(SERIALIZED_NAME_BROWSER_VERSION) + @javax.annotation.Nonnull + private String browserVersion; + + public static final String SERIALIZED_NAME_OS_NAME = "osName"; + @SerializedName(SERIALIZED_NAME_OS_NAME) + @javax.annotation.Nonnull + private String osName; + + public static final String SERIALIZED_NAME_OS_VERSION = "osVersion"; + @SerializedName(SERIALIZED_NAME_OS_VERSION) + @javax.annotation.Nonnull + private String osVersion; + + public static final String SERIALIZED_NAME_USER_AGENT = "userAgent"; + @SerializedName(SERIALIZED_NAME_USER_AGENT) + @javax.annotation.Nonnull + private String userAgent; + + public static final String SERIALIZED_NAME_JS_FINGERPRINT = "jsFingerprint"; + @SerializedName(SERIALIZED_NAME_JS_FINGERPRINT) + @javax.annotation.Nonnull + private String jsFingerprint; + + public static final String SERIALIZED_NAME_CREATED_MS = "createdMs"; + @SerializedName(SERIALIZED_NAME_CREATED_MS) + @javax.annotation.Nonnull + private Long createdMs; + + public static final String SERIALIZED_NAME_DEVICE_ID = "deviceId"; + @SerializedName(SERIALIZED_NAME_DEVICE_ID) + @javax.annotation.Nullable + private String deviceId; + + public ClientEnv() { + } + + public ClientEnv id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + + public ClientEnv handle(@javax.annotation.Nonnull String handle) { + this.handle = handle; + return this; + } + + /** + * Get handle + * @return handle + */ + @javax.annotation.Nonnull + public String getHandle() { + return handle; + } + + public void setHandle(@javax.annotation.Nonnull String handle) { + this.handle = handle; + } + + + public ClientEnv browserName(@javax.annotation.Nonnull String browserName) { + this.browserName = browserName; + return this; + } + + /** + * Get browserName + * @return browserName + */ + @javax.annotation.Nonnull + public String getBrowserName() { + return browserName; + } + + public void setBrowserName(@javax.annotation.Nonnull String browserName) { + this.browserName = browserName; + } + + + public ClientEnv browserVersion(@javax.annotation.Nonnull String browserVersion) { + this.browserVersion = browserVersion; + return this; + } + + /** + * Get browserVersion + * @return browserVersion + */ + @javax.annotation.Nonnull + public String getBrowserVersion() { + return browserVersion; + } + + public void setBrowserVersion(@javax.annotation.Nonnull String browserVersion) { + this.browserVersion = browserVersion; + } + + + public ClientEnv osName(@javax.annotation.Nonnull String osName) { + this.osName = osName; + return this; + } + + /** + * Get osName + * @return osName + */ + @javax.annotation.Nonnull + public String getOsName() { + return osName; + } + + public void setOsName(@javax.annotation.Nonnull String osName) { + this.osName = osName; + } + + + public ClientEnv osVersion(@javax.annotation.Nonnull String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Get osVersion + * @return osVersion + */ + @javax.annotation.Nonnull + public String getOsVersion() { + return osVersion; + } + + public void setOsVersion(@javax.annotation.Nonnull String osVersion) { + this.osVersion = osVersion; + } + + + public ClientEnv userAgent(@javax.annotation.Nonnull String userAgent) { + this.userAgent = userAgent; + return this; + } + + /** + * Get userAgent + * @return userAgent + */ + @javax.annotation.Nonnull + public String getUserAgent() { + return userAgent; + } + + public void setUserAgent(@javax.annotation.Nonnull String userAgent) { + this.userAgent = userAgent; + } + + + public ClientEnv jsFingerprint(@javax.annotation.Nonnull String jsFingerprint) { + this.jsFingerprint = jsFingerprint; + return this; + } + + /** + * Get jsFingerprint + * @return jsFingerprint + */ + @javax.annotation.Nonnull + public String getJsFingerprint() { + return jsFingerprint; + } + + public void setJsFingerprint(@javax.annotation.Nonnull String jsFingerprint) { + this.jsFingerprint = jsFingerprint; + } + + + public ClientEnv createdMs(@javax.annotation.Nonnull Long createdMs) { + this.createdMs = createdMs; + return this; + } + + /** + * Get createdMs + * @return createdMs + */ + @javax.annotation.Nonnull + public Long getCreatedMs() { + return createdMs; + } + + public void setCreatedMs(@javax.annotation.Nonnull Long createdMs) { + this.createdMs = createdMs; + } + + + public ClientEnv deviceId(@javax.annotation.Nullable String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * Get deviceId + * @return deviceId + */ + @javax.annotation.Nullable + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(@javax.annotation.Nullable String deviceId) { + this.deviceId = deviceId; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientEnv clientEnv = (ClientEnv) o; + return Objects.equals(this.id, clientEnv.id) && + Objects.equals(this.handle, clientEnv.handle) && + Objects.equals(this.browserName, clientEnv.browserName) && + Objects.equals(this.browserVersion, clientEnv.browserVersion) && + Objects.equals(this.osName, clientEnv.osName) && + Objects.equals(this.osVersion, clientEnv.osVersion) && + Objects.equals(this.userAgent, clientEnv.userAgent) && + Objects.equals(this.jsFingerprint, clientEnv.jsFingerprint) && + Objects.equals(this.createdMs, clientEnv.createdMs) && + Objects.equals(this.deviceId, clientEnv.deviceId); + } + + @Override + public int hashCode() { + return Objects.hash(id, handle, browserName, browserVersion, osName, osVersion, userAgent, jsFingerprint, createdMs, deviceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientEnv {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); + sb.append(" browserName: ").append(toIndentedString(browserName)).append("\n"); + sb.append(" browserVersion: ").append(toIndentedString(browserVersion)).append("\n"); + sb.append(" osName: ").append(toIndentedString(osName)).append("\n"); + sb.append(" osVersion: ").append(toIndentedString(osVersion)).append("\n"); + sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n"); + sb.append(" jsFingerprint: ").append(toIndentedString(jsFingerprint)).append("\n"); + sb.append(" createdMs: ").append(toIndentedString(createdMs)).append("\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("id", "handle", "browserName", "browserVersion", "osName", "osVersion", "userAgent", "jsFingerprint", "createdMs", "deviceId")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("id", "handle", "browserName", "browserVersion", "osName", "osVersion", "userAgent", "jsFingerprint", "createdMs")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ClientEnv + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ClientEnv.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ClientEnv is not found in the empty JSON string", ClientEnv.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ClientEnv.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ClientEnv` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ClientEnv.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if (!jsonObj.get("handle").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `handle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("handle").toString())); + } + if (!jsonObj.get("browserName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `browserName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("browserName").toString())); + } + if (!jsonObj.get("browserVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `browserVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("browserVersion").toString())); + } + if (!jsonObj.get("osName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `osName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osName").toString())); + } + if (!jsonObj.get("osVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `osVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osVersion").toString())); + } + if (!jsonObj.get("userAgent").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userAgent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userAgent").toString())); + } + if (!jsonObj.get("jsFingerprint").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `jsFingerprint` to be a primitive type in the JSON string but got `%s`", jsonObj.get("jsFingerprint").toString())); + } + if ((jsonObj.get("deviceId") != null && !jsonObj.get("deviceId").isJsonNull()) && !jsonObj.get("deviceId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceId").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ClientEnv.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ClientEnv' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ClientEnv.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ClientEnv value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ClientEnv read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ClientEnv given an JSON string + * + * @param jsonString JSON string + * @return An instance of ClientEnv + * @throws IOException if the JSON string is invalid with respect to ClientEnv + */ + public static ClientEnv fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ClientEnv.class); + } + + /** + * Convert an instance of ClientEnv to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/ClientEnvList.java b/src/main/java/com/corbado/generated/model/ClientEnvList.java new file mode 100644 index 0000000..3b6a6c3 --- /dev/null +++ b/src/main/java/com/corbado/generated/model/ClientEnvList.java @@ -0,0 +1,232 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.corbado.generated.model.ClientEnv; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * ClientEnvList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class ClientEnvList { + public static final String SERIALIZED_NAME_CLIENT_ENVS = "clientEnvs"; + @SerializedName(SERIALIZED_NAME_CLIENT_ENVS) + @javax.annotation.Nonnull + private List clientEnvs = new ArrayList<>(); + + public ClientEnvList() { + } + + public ClientEnvList clientEnvs(@javax.annotation.Nonnull List clientEnvs) { + this.clientEnvs = clientEnvs; + return this; + } + + public ClientEnvList addClientEnvsItem(ClientEnv clientEnvsItem) { + if (this.clientEnvs == null) { + this.clientEnvs = new ArrayList<>(); + } + this.clientEnvs.add(clientEnvsItem); + return this; + } + + /** + * Get clientEnvs + * @return clientEnvs + */ + @javax.annotation.Nonnull + public List getClientEnvs() { + return clientEnvs; + } + + public void setClientEnvs(@javax.annotation.Nonnull List clientEnvs) { + this.clientEnvs = clientEnvs; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientEnvList clientEnvList = (ClientEnvList) o; + return Objects.equals(this.clientEnvs, clientEnvList.clientEnvs); + } + + @Override + public int hashCode() { + return Objects.hash(clientEnvs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientEnvList {\n"); + sb.append(" clientEnvs: ").append(toIndentedString(clientEnvs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("clientEnvs")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("clientEnvs")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ClientEnvList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ClientEnvList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ClientEnvList is not found in the empty JSON string", ClientEnvList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ClientEnvList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ClientEnvList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ClientEnvList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the json data is an array + if (!jsonObj.get("clientEnvs").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientEnvs` to be an array in the JSON string but got `%s`", jsonObj.get("clientEnvs").toString())); + } + + JsonArray jsonArrayclientEnvs = jsonObj.getAsJsonArray("clientEnvs"); + // validate the required field `clientEnvs` (array) + for (int i = 0; i < jsonArrayclientEnvs.size(); i++) { + ClientEnv.validateJsonElement(jsonArrayclientEnvs.get(i)); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ClientEnvList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ClientEnvList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ClientEnvList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ClientEnvList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ClientEnvList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ClientEnvList given an JSON string + * + * @param jsonString JSON string + * @return An instance of ClientEnvList + * @throws IOException if the JSON string is invalid with respect to ClientEnvList + */ + public static ClientEnvList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ClientEnvList.class); + } + + /** + * Convert an instance of ClientEnvList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/ClientInformation.java b/src/main/java/com/corbado/generated/model/ClientInformation.java index 6a496f0..064ed93 100644 --- a/src/main/java/com/corbado/generated/model/ClientInformation.java +++ b/src/main/java/com/corbado/generated/model/ClientInformation.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,7 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.JavaScriptHighEntropy; +import com.corbado.generated.model.NativeMeta; import com.corbado.generated.model.ParsedDeviceInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -44,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ClientInformation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ClientInformation { public static final String SERIALIZED_NAME_REMOTE_ADDRESS = "remoteAddress"; @SerializedName(SERIALIZED_NAME_REMOTE_ADDRESS) @@ -107,6 +110,11 @@ public class ClientInformation { @javax.annotation.Nonnull private ParsedDeviceInfo parsedDeviceInfo; + public static final String SERIALIZED_NAME_NATIVE_META = "nativeMeta"; + @SerializedName(SERIALIZED_NAME_NATIVE_META) + @javax.annotation.Nullable + private NativeMeta nativeMeta; + public ClientInformation() { } @@ -319,6 +327,25 @@ public void setParsedDeviceInfo(@javax.annotation.Nonnull ParsedDeviceInfo parse } + public ClientInformation nativeMeta(@javax.annotation.Nullable NativeMeta nativeMeta) { + this.nativeMeta = nativeMeta; + return this; + } + + /** + * Get nativeMeta + * @return nativeMeta + */ + @javax.annotation.Nullable + public NativeMeta getNativeMeta() { + return nativeMeta; + } + + public void setNativeMeta(@javax.annotation.Nullable NativeMeta nativeMeta) { + this.nativeMeta = nativeMeta; + } + + @Override public boolean equals(Object o) { @@ -339,12 +366,13 @@ public boolean equals(Object o) { Objects.equals(this.userVerifyingPlatformAuthenticatorAvailable, clientInformation.userVerifyingPlatformAuthenticatorAvailable) && Objects.equals(this.conditionalMediationAvailable, clientInformation.conditionalMediationAvailable) && Objects.equals(this.privateMode, clientInformation.privateMode) && - Objects.equals(this.parsedDeviceInfo, clientInformation.parsedDeviceInfo); + Objects.equals(this.parsedDeviceInfo, clientInformation.parsedDeviceInfo) && + Objects.equals(this.nativeMeta, clientInformation.nativeMeta); } @Override public int hashCode() { - return Objects.hash(remoteAddress, userAgent, clientEnvHandle, javascriptFingerprint, javaScriptHighEntropy, bluetoothAvailable, passwordManagerAvailable, userVerifyingPlatformAuthenticatorAvailable, conditionalMediationAvailable, privateMode, parsedDeviceInfo); + return Objects.hash(remoteAddress, userAgent, clientEnvHandle, javascriptFingerprint, javaScriptHighEntropy, bluetoothAvailable, passwordManagerAvailable, userVerifyingPlatformAuthenticatorAvailable, conditionalMediationAvailable, privateMode, parsedDeviceInfo, nativeMeta); } @Override @@ -362,6 +390,7 @@ public String toString() { sb.append(" conditionalMediationAvailable: ").append(toIndentedString(conditionalMediationAvailable)).append("\n"); sb.append(" privateMode: ").append(toIndentedString(privateMode)).append("\n"); sb.append(" parsedDeviceInfo: ").append(toIndentedString(parsedDeviceInfo)).append("\n"); + sb.append(" nativeMeta: ").append(toIndentedString(nativeMeta)).append("\n"); sb.append("}"); return sb.toString(); } @@ -383,26 +412,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("remoteAddress"); - openapiFields.add("userAgent"); - openapiFields.add("clientEnvHandle"); - openapiFields.add("javascriptFingerprint"); - openapiFields.add("javaScriptHighEntropy"); - openapiFields.add("bluetoothAvailable"); - openapiFields.add("passwordManagerAvailable"); - openapiFields.add("userVerifyingPlatformAuthenticatorAvailable"); - openapiFields.add("conditionalMediationAvailable"); - openapiFields.add("privateMode"); - openapiFields.add("parsedDeviceInfo"); + openapiFields = new HashSet(Arrays.asList("remoteAddress", "userAgent", "clientEnvHandle", "javascriptFingerprint", "javaScriptHighEntropy", "bluetoothAvailable", "passwordManagerAvailable", "userVerifyingPlatformAuthenticatorAvailable", "conditionalMediationAvailable", "privateMode", "parsedDeviceInfo", "nativeMeta")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("remoteAddress"); - openapiRequiredFields.add("userAgent"); - openapiRequiredFields.add("userVerifyingPlatformAuthenticatorAvailable"); - openapiRequiredFields.add("conditionalMediationAvailable"); - openapiRequiredFields.add("parsedDeviceInfo"); + openapiRequiredFields = new HashSet(Arrays.asList("remoteAddress", "userAgent", "userVerifyingPlatformAuthenticatorAvailable", "conditionalMediationAvailable", "parsedDeviceInfo")); } /** @@ -414,7 +427,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ClientInformation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ClientInformation is not found in the empty JSON string", ClientInformation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ClientInformation is not found in the empty JSON string", ClientInformation.openapiRequiredFields.toString())); } } @@ -422,28 +435,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ClientInformation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ClientInformation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ClientInformation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ClientInformation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("remoteAddress").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `remoteAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remoteAddress").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `remoteAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remoteAddress").toString())); } if (!jsonObj.get("userAgent").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userAgent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userAgent").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userAgent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userAgent").toString())); } if ((jsonObj.get("clientEnvHandle") != null && !jsonObj.get("clientEnvHandle").isJsonNull()) && !jsonObj.get("clientEnvHandle").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientEnvHandle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvHandle").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientEnvHandle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvHandle").toString())); } if ((jsonObj.get("javascriptFingerprint") != null && !jsonObj.get("javascriptFingerprint").isJsonNull()) && !jsonObj.get("javascriptFingerprint").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `javascriptFingerprint` to be a primitive type in the JSON string but got `%s`", jsonObj.get("javascriptFingerprint").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `javascriptFingerprint` to be a primitive type in the JSON string but got `%s`", jsonObj.get("javascriptFingerprint").toString())); } // validate the optional field `javaScriptHighEntropy` if (jsonObj.get("javaScriptHighEntropy") != null && !jsonObj.get("javaScriptHighEntropy").isJsonNull()) { @@ -451,6 +464,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the required field `parsedDeviceInfo` ParsedDeviceInfo.validateJsonElement(jsonObj.get("parsedDeviceInfo")); + // validate the optional field `nativeMeta` + if (jsonObj.get("nativeMeta") != null && !jsonObj.get("nativeMeta").isJsonNull()) { + NativeMeta.validateJsonElement(jsonObj.get("nativeMeta")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/ConnectToken.java b/src/main/java/com/corbado/generated/model/ConnectToken.java index 7c476ef..9004919 100644 --- a/src/main/java/com/corbado/generated/model/ConnectToken.java +++ b/src/main/java/com/corbado/generated/model/ConnectToken.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ConnectTokenData; import com.corbado.generated.model.ConnectTokenStatus; import com.corbado.generated.model.ConnectTokenType; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ConnectToken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectToken { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -92,7 +94,7 @@ public ConnectToken id(@javax.annotation.Nonnull String id) { } /** - * Get id + * Unique identifier of the connectToken. * @return id */ @javax.annotation.Nonnull @@ -168,7 +170,7 @@ public ConnectToken secret(@javax.annotation.Nullable String secret) { } /** - * Get secret + * Secret of the connectToken. * @return secret */ @javax.annotation.Nullable @@ -187,7 +189,7 @@ public ConnectToken expires(@javax.annotation.Nonnull Integer expires) { } /** - * Get expires + * Unix time of when the connectToken expires (in seconds elapsed since January 1, 1970, 00:00:00 UTC). * @return expires */ @javax.annotation.Nonnull @@ -254,21 +256,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("tokenType"); - openapiFields.add("data"); - openapiFields.add("connectTokenStatus"); - openapiFields.add("secret"); - openapiFields.add("expires"); + openapiFields = new HashSet(Arrays.asList("id", "tokenType", "data", "connectTokenStatus", "secret", "expires")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("tokenType"); - openapiRequiredFields.add("data"); - openapiRequiredFields.add("connectTokenStatus"); - openapiRequiredFields.add("expires"); + openapiRequiredFields = new HashSet(Arrays.asList("id", "tokenType", "data", "connectTokenStatus", "expires")); } /** @@ -280,7 +271,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectToken.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectToken is not found in the empty JSON string", ConnectToken.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectToken is not found in the empty JSON string", ConnectToken.openapiRequiredFields.toString())); } } @@ -288,19 +279,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectToken.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectToken` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectToken` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectToken.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } // validate the required field `tokenType` ConnectTokenType.validateJsonElement(jsonObj.get("tokenType")); @@ -309,7 +300,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the required field `connectTokenStatus` ConnectTokenStatus.validateJsonElement(jsonObj.get("connectTokenStatus")); if ((jsonObj.get("secret") != null && !jsonObj.get("secret").isJsonNull()) && !jsonObj.get("secret").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `secret` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `secret` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java b/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java index 9ab5152..059b951 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ConnectTokenData; import com.corbado.generated.model.ConnectTokenType; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ConnectTokenCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenCreateReq { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -114,7 +116,7 @@ public ConnectTokenCreateReq maxLifetimeInSeconds(@javax.annotation.Nullable Int } /** - * Get maxLifetimeInSeconds + * Maximum lifetime of the connectToken in seconds. * @return maxLifetimeInSeconds */ @javax.annotation.Nullable @@ -175,15 +177,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("data"); - openapiFields.add("maxLifetimeInSeconds"); + openapiFields = new HashSet(Arrays.asList("type", "data", "maxLifetimeInSeconds")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("data"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "data")); } /** @@ -195,7 +192,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectTokenCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectTokenCreateReq is not found in the empty JSON string", ConnectTokenCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectTokenCreateReq is not found in the empty JSON string", ConnectTokenCreateReq.openapiRequiredFields.toString())); } } @@ -203,14 +200,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectTokenCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectTokenCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectTokenCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectTokenCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenData.java b/src/main/java/com/corbado/generated/model/ConnectTokenData.java index 34dc5ad..65dcee8 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenData.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenData.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ConnectTokenDataPasskeyAppend; import com.corbado.generated.model.ConnectTokenDataPasskeyDelete; import com.corbado.generated.model.ConnectTokenDataPasskeyList; @@ -38,6 +39,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -61,7 +63,7 @@ import com.corbado.generated.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenData extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ConnectTokenData.class.getName()); @@ -131,7 +133,7 @@ public ConnectTokenData read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'ConnectTokenDataPasskeyAppend'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyAppend failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyAppend failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ConnectTokenDataPasskeyAppend'", e); } // deserialize ConnectTokenDataPasskeyDelete @@ -143,7 +145,7 @@ public ConnectTokenData read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'ConnectTokenDataPasskeyDelete'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyDelete failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyDelete failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ConnectTokenDataPasskeyDelete'", e); } // deserialize ConnectTokenDataPasskeyList @@ -155,7 +157,7 @@ public ConnectTokenData read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'ConnectTokenDataPasskeyList'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyList failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyList failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ConnectTokenDataPasskeyList'", e); } // deserialize ConnectTokenDataPasskeyLogin @@ -167,7 +169,7 @@ public ConnectTokenData read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'ConnectTokenDataPasskeyLogin'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyLogin failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyLogin failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'ConnectTokenDataPasskeyLogin'", e); } @@ -177,7 +179,7 @@ public ConnectTokenData read(JsonReader in) throws IOException { return ret; } - throw new IOException(String.format("Failed deserialization for ConnectTokenData: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for ConnectTokenData: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -310,7 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectTokenDataPasskeyAppend.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyAppend failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyAppend failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with ConnectTokenDataPasskeyDelete @@ -318,7 +320,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectTokenDataPasskeyDelete.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyDelete failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyDelete failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with ConnectTokenDataPasskeyList @@ -326,7 +328,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectTokenDataPasskeyList.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyList failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyList failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with ConnectTokenDataPasskeyLogin @@ -334,11 +336,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectTokenDataPasskeyLogin.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for ConnectTokenDataPasskeyLogin failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for ConnectTokenDataPasskeyLogin failed with `%s`.", e.getMessage())); // continue to the next one } if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for ConnectTokenData with oneOf schemas: ConnectTokenDataPasskeyAppend, ConnectTokenDataPasskeyDelete, ConnectTokenDataPasskeyList, ConnectTokenDataPasskeyLogin. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for ConnectTokenData with oneOf schemas: ConnectTokenDataPasskeyAppend, ConnectTokenDataPasskeyDelete, ConnectTokenDataPasskeyList, ConnectTokenDataPasskeyLogin. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java index f6c4d48..31837fa 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * ConnectTokenDataPasskeyAppend + * Data for `passkey-append`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyAppend { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) @@ -69,7 +71,7 @@ public ConnectTokenDataPasskeyAppend displayName(@javax.annotation.Nonnull Strin } /** - * Get displayName + * Display name of the user. * @return displayName */ @javax.annotation.Nonnull @@ -88,7 +90,7 @@ public ConnectTokenDataPasskeyAppend identifier(@javax.annotation.Nonnull String } /** - * Get identifier + * Login identifier of the user (here email address). * @return identifier */ @javax.annotation.Nonnull @@ -147,14 +149,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("displayName"); - openapiFields.add("identifier"); + openapiFields = new HashSet(Arrays.asList("displayName", "identifier")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("displayName"); - openapiRequiredFields.add("identifier"); + openapiRequiredFields = new HashSet(Arrays.asList("displayName", "identifier")); } /** @@ -166,7 +164,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectTokenDataPasskeyAppend.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectTokenDataPasskeyAppend is not found in the empty JSON string", ConnectTokenDataPasskeyAppend.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectTokenDataPasskeyAppend is not found in the empty JSON string", ConnectTokenDataPasskeyAppend.openapiRequiredFields.toString())); } } @@ -174,22 +172,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectTokenDataPasskeyAppend.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyAppend` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyAppend` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectTokenDataPasskeyAppend.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("displayName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } if (!jsonObj.get("identifier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java index cda43fc..3fd4293 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * ConnectTokenDataPasskeyDelete + * Data for `passkey-delete`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyDelete { public static final String SERIALIZED_NAME_IDENTIFIER = "identifier"; @SerializedName(SERIALIZED_NAME_IDENTIFIER) @@ -64,7 +66,7 @@ public ConnectTokenDataPasskeyDelete identifier(@javax.annotation.Nonnull String } /** - * Get identifier + * Login identifier of the user (here email address). * @return identifier */ @javax.annotation.Nonnull @@ -121,12 +123,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("identifier"); + openapiFields = new HashSet(Arrays.asList("identifier")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("identifier"); + openapiRequiredFields = new HashSet(Arrays.asList("identifier")); } /** @@ -138,7 +138,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectTokenDataPasskeyDelete.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectTokenDataPasskeyDelete is not found in the empty JSON string", ConnectTokenDataPasskeyDelete.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectTokenDataPasskeyDelete is not found in the empty JSON string", ConnectTokenDataPasskeyDelete.openapiRequiredFields.toString())); } } @@ -146,19 +146,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectTokenDataPasskeyDelete.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyDelete` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyDelete` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectTokenDataPasskeyDelete.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("identifier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java index dd77ae2..469c25a 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * ConnectTokenDataPasskeyList + * Data for `passkey-list`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyList { public static final String SERIALIZED_NAME_IDENTIFIER = "identifier"; @SerializedName(SERIALIZED_NAME_IDENTIFIER) @@ -64,7 +66,7 @@ public ConnectTokenDataPasskeyList identifier(@javax.annotation.Nonnull String i } /** - * Get identifier + * Login identifier of the user (here email address). * @return identifier */ @javax.annotation.Nonnull @@ -121,12 +123,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("identifier"); + openapiFields = new HashSet(Arrays.asList("identifier")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("identifier"); + openapiRequiredFields = new HashSet(Arrays.asList("identifier")); } /** @@ -138,7 +138,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectTokenDataPasskeyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectTokenDataPasskeyList is not found in the empty JSON string", ConnectTokenDataPasskeyList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectTokenDataPasskeyList is not found in the empty JSON string", ConnectTokenDataPasskeyList.openapiRequiredFields.toString())); } } @@ -146,19 +146,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectTokenDataPasskeyList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectTokenDataPasskeyList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("identifier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java index f39170a..dcae27c 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * ConnectTokenDataPasskeyLogin + * Data for `passkey-login`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyLogin { public static final String SERIALIZED_NAME_IDENTIFIER = "identifier"; @SerializedName(SERIALIZED_NAME_IDENTIFIER) @@ -64,7 +66,7 @@ public ConnectTokenDataPasskeyLogin identifier(@javax.annotation.Nonnull String } /** - * Get identifier + * Login identifier of the user (here email address). * @return identifier */ @javax.annotation.Nonnull @@ -121,12 +123,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("identifier"); + openapiFields = new HashSet(Arrays.asList("identifier")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("identifier"); + openapiRequiredFields = new HashSet(Arrays.asList("identifier")); } /** @@ -138,7 +138,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectTokenDataPasskeyLogin.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectTokenDataPasskeyLogin is not found in the empty JSON string", ConnectTokenDataPasskeyLogin.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectTokenDataPasskeyLogin is not found in the empty JSON string", ConnectTokenDataPasskeyLogin.openapiRequiredFields.toString())); } } @@ -146,19 +146,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectTokenDataPasskeyLogin.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyLogin` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectTokenDataPasskeyLogin` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectTokenDataPasskeyLogin.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("identifier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifier").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenList.java b/src/main/java/com/corbado/generated/model/ConnectTokenList.java index 615e4b8..96548e2 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenList.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ConnectToken; -import com.corbado.generated.model.Paging; +import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ConnectTokenList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenList { public static final String SERIALIZED_NAME_CONNECT_TOKENS = "connectTokens"; @SerializedName(SERIALIZED_NAME_CONNECT_TOKENS) @@ -62,7 +64,7 @@ public class ConnectTokenList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private Paging paging; + private UserListPaging paging; public ConnectTokenList() { } @@ -94,7 +96,7 @@ public void setConnectTokens(@javax.annotation.Nonnull List connec } - public ConnectTokenList paging(@javax.annotation.Nonnull Paging paging) { + public ConnectTokenList paging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; return this; } @@ -104,11 +106,11 @@ public ConnectTokenList paging(@javax.annotation.Nonnull Paging paging) { * @return paging */ @javax.annotation.Nonnull - public Paging getPaging() { + public UserListPaging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull Paging paging) { + public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; } @@ -159,14 +161,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("connectTokens"); - openapiFields.add("paging"); + openapiFields = new HashSet(Arrays.asList("connectTokens", "paging")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("connectTokens"); - openapiRequiredFields.add("paging"); + openapiRequiredFields = new HashSet(Arrays.asList("connectTokens", "paging")); } /** @@ -178,7 +176,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectTokenList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectTokenList is not found in the empty JSON string", ConnectTokenList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectTokenList is not found in the empty JSON string", ConnectTokenList.openapiRequiredFields.toString())); } } @@ -186,20 +184,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectTokenList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectTokenList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectTokenList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectTokenList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("connectTokens").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `connectTokens` to be an array in the JSON string but got `%s`", jsonObj.get("connectTokens").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `connectTokens` to be an array in the JSON string but got `%s`", jsonObj.get("connectTokens").toString())); } JsonArray jsonArrayconnectTokens = jsonObj.getAsJsonArray("connectTokens"); @@ -208,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectToken.validateJsonElement(jsonArrayconnectTokens.get(i)); }; // validate the required field `paging` - Paging.validateJsonElement(jsonObj.get("paging")); + UserListPaging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenStatus.java b/src/main/java/com/corbado/generated/model/ConnectTokenStatus.java index 2a0be6c..2348315 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenStatus.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenStatus.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenType.java b/src/main/java/com/corbado/generated/model/ConnectTokenType.java index 51ea620..6f930b7 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenType.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenType.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java b/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java index 3bce717..3763e93 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ConnectTokenStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ConnectTokenUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenUpdateReq { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -122,12 +124,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("status")); } /** @@ -139,7 +139,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConnectTokenUpdateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ConnectTokenUpdateReq is not found in the empty JSON string", ConnectTokenUpdateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ConnectTokenUpdateReq is not found in the empty JSON string", ConnectTokenUpdateReq.openapiRequiredFields.toString())); } } @@ -147,14 +147,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ConnectTokenUpdateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ConnectTokenUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ConnectTokenUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ConnectTokenUpdateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/src/main/java/com/corbado/generated/model/Credential.java b/src/main/java/com/corbado/generated/model/Credential.java index 523f321..542eb21 100644 --- a/src/main/java/com/corbado/generated/model/Credential.java +++ b/src/main/java/com/corbado/generated/model/Credential.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.AaguidDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * Credential */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Credential { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -240,6 +242,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private AaguidDetails aaguidDetails; + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nonnull + private List tags = new ArrayList<>(); + public Credential() { } @@ -536,6 +543,33 @@ public void setAaguidDetails(@javax.annotation.Nonnull AaguidDetails aaguidDetai } + public Credential tags(@javax.annotation.Nonnull List tags) { + this.tags = tags; + return this; + } + + public Credential addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @javax.annotation.Nonnull + public List getTags() { + return tags; + } + + public void setTags(@javax.annotation.Nonnull List tags) { + this.tags = tags; + } + + @Override public boolean equals(Object o) { @@ -560,12 +594,13 @@ public boolean equals(Object o) { Objects.equals(this.created, credential.created) && Objects.equals(this.createdMs, credential.createdMs) && Objects.equals(this.status, credential.status) && - Objects.equals(this.aaguidDetails, credential.aaguidDetails); + Objects.equals(this.aaguidDetails, credential.aaguidDetails) && + Objects.equals(this.tags, credential.tags); } @Override public int hashCode() { - return Objects.hash(id, credentialID, attestationType, transport, backupEligible, backupState, authenticatorAAGUID, sourceOS, sourceBrowser, lastUsed, lastUsedMs, created, createdMs, status, aaguidDetails); + return Objects.hash(id, credentialID, attestationType, transport, backupEligible, backupState, authenticatorAAGUID, sourceOS, sourceBrowser, lastUsed, lastUsedMs, created, createdMs, status, aaguidDetails, tags); } @Override @@ -587,6 +622,7 @@ public String toString() { sb.append(" createdMs: ").append(toIndentedString(createdMs)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" aaguidDetails: ").append(toIndentedString(aaguidDetails)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); } @@ -608,40 +644,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("credentialID"); - openapiFields.add("attestationType"); - openapiFields.add("transport"); - openapiFields.add("backupEligible"); - openapiFields.add("backupState"); - openapiFields.add("authenticatorAAGUID"); - openapiFields.add("sourceOS"); - openapiFields.add("sourceBrowser"); - openapiFields.add("lastUsed"); - openapiFields.add("lastUsedMs"); - openapiFields.add("created"); - openapiFields.add("createdMs"); - openapiFields.add("status"); - openapiFields.add("aaguidDetails"); + openapiFields = new HashSet(Arrays.asList("id", "credentialID", "attestationType", "transport", "backupEligible", "backupState", "authenticatorAAGUID", "sourceOS", "sourceBrowser", "lastUsed", "lastUsedMs", "created", "createdMs", "status", "aaguidDetails", "tags")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("credentialID"); - openapiRequiredFields.add("attestationType"); - openapiRequiredFields.add("transport"); - openapiRequiredFields.add("backupEligible"); - openapiRequiredFields.add("backupState"); - openapiRequiredFields.add("authenticatorAAGUID"); - openapiRequiredFields.add("sourceOS"); - openapiRequiredFields.add("sourceBrowser"); - openapiRequiredFields.add("lastUsed"); - openapiRequiredFields.add("lastUsedMs"); - openapiRequiredFields.add("created"); - openapiRequiredFields.add("createdMs"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("aaguidDetails"); + openapiRequiredFields = new HashSet(Arrays.asList("id", "credentialID", "attestationType", "transport", "backupEligible", "backupState", "authenticatorAAGUID", "sourceOS", "sourceBrowser", "lastUsed", "lastUsedMs", "created", "createdMs", "status", "aaguidDetails", "tags")); } /** @@ -653,7 +659,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Credential.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Credential is not found in the empty JSON string", Credential.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Credential is not found in the empty JSON string", Credential.openapiRequiredFields.toString())); } } @@ -661,54 +667,60 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!Credential.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Credential` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Credential` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Credential.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if (!jsonObj.get("credentialID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); } if (!jsonObj.get("attestationType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attestationType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attestationType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attestationType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attestationType").toString())); } // ensure the required json array is present if (jsonObj.get("transport") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("transport").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `transport` to be an array in the JSON string but got `%s`", jsonObj.get("transport").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `transport` to be an array in the JSON string but got `%s`", jsonObj.get("transport").toString())); } if (!jsonObj.get("authenticatorAAGUID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `authenticatorAAGUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authenticatorAAGUID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authenticatorAAGUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authenticatorAAGUID").toString())); } if (!jsonObj.get("sourceOS").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sourceOS` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sourceOS").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sourceOS` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sourceOS").toString())); } if (!jsonObj.get("sourceBrowser").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sourceBrowser` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sourceBrowser").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sourceBrowser` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sourceBrowser").toString())); } if (!jsonObj.get("lastUsed").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lastUsed` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastUsed").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastUsed` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastUsed").toString())); } if (!jsonObj.get("created").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); } if (!jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the required field `status` StatusEnum.validateJsonElement(jsonObj.get("status")); // validate the required field `aaguidDetails` AaguidDetails.validateJsonElement(jsonObj.get("aaguidDetails")); + // ensure the required json array is present + if (jsonObj.get("tags") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/CredentialList.java b/src/main/java/com/corbado/generated/model/CredentialList.java index fbcd288..6ff5183 100644 --- a/src/main/java/com/corbado/generated/model/CredentialList.java +++ b/src/main/java/com/corbado/generated/model/CredentialList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.Credential; -import com.corbado.generated.model.Paging; +import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * CredentialList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class CredentialList { public static final String SERIALIZED_NAME_CREDENTIALS = "credentials"; @SerializedName(SERIALIZED_NAME_CREDENTIALS) @@ -62,7 +64,7 @@ public class CredentialList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private Paging paging; + private UserListPaging paging; public CredentialList() { } @@ -94,7 +96,7 @@ public void setCredentials(@javax.annotation.Nonnull List credential } - public CredentialList paging(@javax.annotation.Nonnull Paging paging) { + public CredentialList paging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; return this; } @@ -104,11 +106,11 @@ public CredentialList paging(@javax.annotation.Nonnull Paging paging) { * @return paging */ @javax.annotation.Nonnull - public Paging getPaging() { + public UserListPaging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull Paging paging) { + public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; } @@ -159,14 +161,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("credentials"); - openapiFields.add("paging"); + openapiFields = new HashSet(Arrays.asList("credentials", "paging")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("credentials"); - openapiRequiredFields.add("paging"); + openapiRequiredFields = new HashSet(Arrays.asList("credentials", "paging")); } /** @@ -178,7 +176,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CredentialList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CredentialList is not found in the empty JSON string", CredentialList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CredentialList is not found in the empty JSON string", CredentialList.openapiRequiredFields.toString())); } } @@ -186,20 +184,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!CredentialList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CredentialList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CredentialList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CredentialList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("credentials").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `credentials` to be an array in the JSON string but got `%s`", jsonObj.get("credentials").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `credentials` to be an array in the JSON string but got `%s`", jsonObj.get("credentials").toString())); } JsonArray jsonArraycredentials = jsonObj.getAsJsonArray("credentials"); @@ -208,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Credential.validateJsonElement(jsonArraycredentials.get(i)); }; // validate the required field `paging` - Paging.validateJsonElement(jsonObj.get("paging")); + UserListPaging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/CrossDeviceAuthenticationStrategy.java b/src/main/java/com/corbado/generated/model/CrossDeviceAuthenticationStrategy.java index 38bd955..e035f3f 100644 --- a/src/main/java/com/corbado/generated/model/CrossDeviceAuthenticationStrategy.java +++ b/src/main/java/com/corbado/generated/model/CrossDeviceAuthenticationStrategy.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/DecisionInsights.java b/src/main/java/com/corbado/generated/model/DecisionInsights.java index 57940cf..408d0b7 100644 --- a/src/main/java/com/corbado/generated/model/DecisionInsights.java +++ b/src/main/java/com/corbado/generated/model/DecisionInsights.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.DecisionTag; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * DecisionInsights */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class DecisionInsights { public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) @@ -63,16 +65,16 @@ public class DecisionInsights { @javax.annotation.Nonnull private Boolean isCDACandidate; - public static final String SERIALIZED_NAME_IS_RESTRICTED_BROWSER = "isRestrictedBrowser"; - @SerializedName(SERIALIZED_NAME_IS_RESTRICTED_BROWSER) - @javax.annotation.Nonnull - private Boolean isRestrictedBrowser; - public static final String SERIALIZED_NAME_EXPERIMENTS = "experiments"; @SerializedName(SERIALIZED_NAME_EXPERIMENTS) @javax.annotation.Nonnull private List experiments = new ArrayList<>(); + public static final String SERIALIZED_NAME_PREFER_IMMEDIATELY_AVAILABLE = "preferImmediatelyAvailable"; + @SerializedName(SERIALIZED_NAME_PREFER_IMMEDIATELY_AVAILABLE) + @javax.annotation.Nullable + private Boolean preferImmediatelyAvailable; + public DecisionInsights() { } @@ -114,25 +116,6 @@ public void setIsCDACandidate(@javax.annotation.Nonnull Boolean isCDACandidate) } - public DecisionInsights isRestrictedBrowser(@javax.annotation.Nonnull Boolean isRestrictedBrowser) { - this.isRestrictedBrowser = isRestrictedBrowser; - return this; - } - - /** - * Get isRestrictedBrowser - * @return isRestrictedBrowser - */ - @javax.annotation.Nonnull - public Boolean getIsRestrictedBrowser() { - return isRestrictedBrowser; - } - - public void setIsRestrictedBrowser(@javax.annotation.Nonnull Boolean isRestrictedBrowser) { - this.isRestrictedBrowser = isRestrictedBrowser; - } - - public DecisionInsights experiments(@javax.annotation.Nonnull List experiments) { this.experiments = experiments; return this; @@ -160,6 +143,25 @@ public void setExperiments(@javax.annotation.Nonnull List experiments) { } + public DecisionInsights preferImmediatelyAvailable(@javax.annotation.Nullable Boolean preferImmediatelyAvailable) { + this.preferImmediatelyAvailable = preferImmediatelyAvailable; + return this; + } + + /** + * Get preferImmediatelyAvailable + * @return preferImmediatelyAvailable + */ + @javax.annotation.Nullable + public Boolean getPreferImmediatelyAvailable() { + return preferImmediatelyAvailable; + } + + public void setPreferImmediatelyAvailable(@javax.annotation.Nullable Boolean preferImmediatelyAvailable) { + this.preferImmediatelyAvailable = preferImmediatelyAvailable; + } + + @Override public boolean equals(Object o) { @@ -172,13 +174,13 @@ public boolean equals(Object o) { DecisionInsights decisionInsights = (DecisionInsights) o; return Objects.equals(this.tag, decisionInsights.tag) && Objects.equals(this.isCDACandidate, decisionInsights.isCDACandidate) && - Objects.equals(this.isRestrictedBrowser, decisionInsights.isRestrictedBrowser) && - Objects.equals(this.experiments, decisionInsights.experiments); + Objects.equals(this.experiments, decisionInsights.experiments) && + Objects.equals(this.preferImmediatelyAvailable, decisionInsights.preferImmediatelyAvailable); } @Override public int hashCode() { - return Objects.hash(tag, isCDACandidate, isRestrictedBrowser, experiments); + return Objects.hash(tag, isCDACandidate, experiments, preferImmediatelyAvailable); } @Override @@ -187,8 +189,8 @@ public String toString() { sb.append("class DecisionInsights {\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append(" isCDACandidate: ").append(toIndentedString(isCDACandidate)).append("\n"); - sb.append(" isRestrictedBrowser: ").append(toIndentedString(isRestrictedBrowser)).append("\n"); sb.append(" experiments: ").append(toIndentedString(experiments)).append("\n"); + sb.append(" preferImmediatelyAvailable: ").append(toIndentedString(preferImmediatelyAvailable)).append("\n"); sb.append("}"); return sb.toString(); } @@ -210,18 +212,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("tag"); - openapiFields.add("isCDACandidate"); - openapiFields.add("isRestrictedBrowser"); - openapiFields.add("experiments"); + openapiFields = new HashSet(Arrays.asList("tag", "isCDACandidate", "experiments", "preferImmediatelyAvailable")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("tag"); - openapiRequiredFields.add("isCDACandidate"); - openapiRequiredFields.add("isRestrictedBrowser"); - openapiRequiredFields.add("experiments"); + openapiRequiredFields = new HashSet(Arrays.asList("tag", "isCDACandidate", "experiments")); } /** @@ -233,7 +227,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DecisionInsights.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DecisionInsights is not found in the empty JSON string", DecisionInsights.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DecisionInsights is not found in the empty JSON string", DecisionInsights.openapiRequiredFields.toString())); } } @@ -241,14 +235,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!DecisionInsights.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DecisionInsights` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DecisionInsights` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DecisionInsights.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -258,7 +252,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("experiments") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("experiments").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `experiments` to be an array in the JSON string but got `%s`", jsonObj.get("experiments").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `experiments` to be an array in the JSON string but got `%s`", jsonObj.get("experiments").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java b/src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java new file mode 100644 index 0000000..1143e0a --- /dev/null +++ b/src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java @@ -0,0 +1,355 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.corbado.generated.model.DecisionTag; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * DecisionInsightsAppend + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class DecisionInsightsAppend { + public static final String SERIALIZED_NAME_TAG = "tag"; + @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nonnull + private DecisionTag tag; + + public static final String SERIALIZED_NAME_IS_RESTRICTED_BROWSER = "isRestrictedBrowser"; + @SerializedName(SERIALIZED_NAME_IS_RESTRICTED_BROWSER) + @javax.annotation.Nonnull + private Boolean isRestrictedBrowser; + + /** + * Gets or Sets variant + */ + @JsonAdapter(VariantEnum.Adapter.class) + public enum VariantEnum { + DEFAULT("default"), + + AFTER_ERROR("after-error"), + + AFTER_HYBRID("after-hybrid"), + + PASSKEY_LIST("passkey-list"), + + AFTER_NO_CREDENTIAL("after-no-credential"); + + private String value; + + VariantEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static VariantEnum fromValue(String value) { + for (VariantEnum b : VariantEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final VariantEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public VariantEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return VariantEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + VariantEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_VARIANT = "variant"; + @SerializedName(SERIALIZED_NAME_VARIANT) + @javax.annotation.Nonnull + private VariantEnum variant; + + public static final String SERIALIZED_NAME_AUTO = "auto"; + @SerializedName(SERIALIZED_NAME_AUTO) + @javax.annotation.Nonnull + private Boolean auto; + + public DecisionInsightsAppend() { + } + + public DecisionInsightsAppend tag(@javax.annotation.Nonnull DecisionTag tag) { + this.tag = tag; + return this; + } + + /** + * Get tag + * @return tag + */ + @javax.annotation.Nonnull + public DecisionTag getTag() { + return tag; + } + + public void setTag(@javax.annotation.Nonnull DecisionTag tag) { + this.tag = tag; + } + + + public DecisionInsightsAppend isRestrictedBrowser(@javax.annotation.Nonnull Boolean isRestrictedBrowser) { + this.isRestrictedBrowser = isRestrictedBrowser; + return this; + } + + /** + * Get isRestrictedBrowser + * @return isRestrictedBrowser + */ + @javax.annotation.Nonnull + public Boolean getIsRestrictedBrowser() { + return isRestrictedBrowser; + } + + public void setIsRestrictedBrowser(@javax.annotation.Nonnull Boolean isRestrictedBrowser) { + this.isRestrictedBrowser = isRestrictedBrowser; + } + + + public DecisionInsightsAppend variant(@javax.annotation.Nonnull VariantEnum variant) { + this.variant = variant; + return this; + } + + /** + * Get variant + * @return variant + */ + @javax.annotation.Nonnull + public VariantEnum getVariant() { + return variant; + } + + public void setVariant(@javax.annotation.Nonnull VariantEnum variant) { + this.variant = variant; + } + + + public DecisionInsightsAppend auto(@javax.annotation.Nonnull Boolean auto) { + this.auto = auto; + return this; + } + + /** + * Get auto + * @return auto + */ + @javax.annotation.Nonnull + public Boolean getAuto() { + return auto; + } + + public void setAuto(@javax.annotation.Nonnull Boolean auto) { + this.auto = auto; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DecisionInsightsAppend decisionInsightsAppend = (DecisionInsightsAppend) o; + return Objects.equals(this.tag, decisionInsightsAppend.tag) && + Objects.equals(this.isRestrictedBrowser, decisionInsightsAppend.isRestrictedBrowser) && + Objects.equals(this.variant, decisionInsightsAppend.variant) && + Objects.equals(this.auto, decisionInsightsAppend.auto); + } + + @Override + public int hashCode() { + return Objects.hash(tag, isRestrictedBrowser, variant, auto); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DecisionInsightsAppend {\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" isRestrictedBrowser: ").append(toIndentedString(isRestrictedBrowser)).append("\n"); + sb.append(" variant: ").append(toIndentedString(variant)).append("\n"); + sb.append(" auto: ").append(toIndentedString(auto)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("tag", "isRestrictedBrowser", "variant", "auto")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("tag", "isRestrictedBrowser", "variant", "auto")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DecisionInsightsAppend + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DecisionInsightsAppend.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DecisionInsightsAppend is not found in the empty JSON string", DecisionInsightsAppend.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DecisionInsightsAppend.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DecisionInsightsAppend` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DecisionInsightsAppend.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `tag` + DecisionTag.validateJsonElement(jsonObj.get("tag")); + if (!jsonObj.get("variant").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `variant` to be a primitive type in the JSON string but got `%s`", jsonObj.get("variant").toString())); + } + // validate the required field `variant` + VariantEnum.validateJsonElement(jsonObj.get("variant")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DecisionInsightsAppend.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DecisionInsightsAppend' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DecisionInsightsAppend.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DecisionInsightsAppend value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DecisionInsightsAppend read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DecisionInsightsAppend given an JSON string + * + * @param jsonString JSON string + * @return An instance of DecisionInsightsAppend + * @throws IOException if the JSON string is invalid with respect to DecisionInsightsAppend + */ + public static DecisionInsightsAppend fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DecisionInsightsAppend.class); + } + + /** + * Convert an instance of DecisionInsightsAppend to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/DecisionTag.java b/src/main/java/com/corbado/generated/model/DecisionTag.java index 76a90e2..2f2191a 100644 --- a/src/main/java/com/corbado/generated/model/DecisionTag.java +++ b/src/main/java/com/corbado/generated/model/DecisionTag.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/DetectionInsights.java b/src/main/java/com/corbado/generated/model/DetectionInsights.java index 04b9661..9645bde 100644 --- a/src/main/java/com/corbado/generated/model/DetectionInsights.java +++ b/src/main/java/com/corbado/generated/model/DetectionInsights.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,8 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; +import com.corbado.generated.model.AppendHistoryData; import com.corbado.generated.model.DetectionTag; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * DetectionInsights */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class DetectionInsights { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -73,6 +76,11 @@ public class DetectionInsights { @javax.annotation.Nonnull private List passwordManagerIds = new ArrayList<>(); + public static final String SERIALIZED_NAME_HISTORY_DATA = "historyData"; + @SerializedName(SERIALIZED_NAME_HISTORY_DATA) + @javax.annotation.Nonnull + private AppendHistoryData historyData; + public DetectionInsights() { } @@ -184,6 +192,25 @@ public void setPasswordManagerIds(@javax.annotation.Nonnull List passwor } + public DetectionInsights historyData(@javax.annotation.Nonnull AppendHistoryData historyData) { + this.historyData = historyData; + return this; + } + + /** + * Get historyData + * @return historyData + */ + @javax.annotation.Nonnull + public AppendHistoryData getHistoryData() { + return historyData; + } + + public void setHistoryData(@javax.annotation.Nonnull AppendHistoryData historyData) { + this.historyData = historyData; + } + + @Override public boolean equals(Object o) { @@ -197,12 +224,13 @@ public boolean equals(Object o) { return Objects.equals(this.tags, detectionInsights.tags) && Objects.equals(this.credentialIds, detectionInsights.credentialIds) && Objects.equals(this.clientEnvIds, detectionInsights.clientEnvIds) && - Objects.equals(this.passwordManagerIds, detectionInsights.passwordManagerIds); + Objects.equals(this.passwordManagerIds, detectionInsights.passwordManagerIds) && + Objects.equals(this.historyData, detectionInsights.historyData); } @Override public int hashCode() { - return Objects.hash(tags, credentialIds, clientEnvIds, passwordManagerIds); + return Objects.hash(tags, credentialIds, clientEnvIds, passwordManagerIds, historyData); } @Override @@ -213,6 +241,7 @@ public String toString() { sb.append(" credentialIds: ").append(toIndentedString(credentialIds)).append("\n"); sb.append(" clientEnvIds: ").append(toIndentedString(clientEnvIds)).append("\n"); sb.append(" passwordManagerIds: ").append(toIndentedString(passwordManagerIds)).append("\n"); + sb.append(" historyData: ").append(toIndentedString(historyData)).append("\n"); sb.append("}"); return sb.toString(); } @@ -234,18 +263,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("tags"); - openapiFields.add("credentialIds"); - openapiFields.add("clientEnvIds"); - openapiFields.add("passwordManagerIds"); + openapiFields = new HashSet(Arrays.asList("tags", "credentialIds", "clientEnvIds", "passwordManagerIds", "historyData")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("tags"); - openapiRequiredFields.add("credentialIds"); - openapiRequiredFields.add("clientEnvIds"); - openapiRequiredFields.add("passwordManagerIds"); + openapiRequiredFields = new HashSet(Arrays.asList("tags", "credentialIds", "clientEnvIds", "passwordManagerIds", "historyData")); } /** @@ -257,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DetectionInsights.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DetectionInsights is not found in the empty JSON string", DetectionInsights.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DetectionInsights is not found in the empty JSON string", DetectionInsights.openapiRequiredFields.toString())); } } @@ -265,20 +286,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!DetectionInsights.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DetectionInsights` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DetectionInsights` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DetectionInsights.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); @@ -290,20 +311,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("credentialIds") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("credentialIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `credentialIds` to be an array in the JSON string but got `%s`", jsonObj.get("credentialIds").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `credentialIds` to be an array in the JSON string but got `%s`", jsonObj.get("credentialIds").toString())); } // ensure the required json array is present if (jsonObj.get("clientEnvIds") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("clientEnvIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `clientEnvIds` to be an array in the JSON string but got `%s`", jsonObj.get("clientEnvIds").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientEnvIds` to be an array in the JSON string but got `%s`", jsonObj.get("clientEnvIds").toString())); } // ensure the required json array is present if (jsonObj.get("passwordManagerIds") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("passwordManagerIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `passwordManagerIds` to be an array in the JSON string but got `%s`", jsonObj.get("passwordManagerIds").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `passwordManagerIds` to be an array in the JSON string but got `%s`", jsonObj.get("passwordManagerIds").toString())); } + // validate the required field `historyData` + AppendHistoryData.validateJsonElement(jsonObj.get("historyData")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/DetectionTag.java b/src/main/java/com/corbado/generated/model/DetectionTag.java index 539e9f9..dd8d563 100644 --- a/src/main/java/com/corbado/generated/model/DetectionTag.java +++ b/src/main/java/com/corbado/generated/model/DetectionTag.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * DetectionTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class DetectionTag { /** * Gets or Sets category @@ -203,14 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("category"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("category", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("category"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("category", "name")); } /** @@ -222,7 +220,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DetectionTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DetectionTag is not found in the empty JSON string", DetectionTag.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DetectionTag is not found in the empty JSON string", DetectionTag.openapiRequiredFields.toString())); } } @@ -230,24 +228,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!DetectionTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DetectionTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DetectionTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DetectionTag.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("category").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `category` to be a primitive type in the JSON string but got `%s`", jsonObj.get("category").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `category` to be a primitive type in the JSON string but got `%s`", jsonObj.get("category").toString())); } // validate the required field `category` CategoryEnum.validateJsonElement(jsonObj.get("category")); if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/Identifier.java b/src/main/java/com/corbado/generated/model/Identifier.java index 050f40b..5435510 100644 --- a/src/main/java/com/corbado/generated/model/Identifier.java +++ b/src/main/java/com/corbado/generated/model/Identifier.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.IdentifierStatus; import com.corbado.generated.model.IdentifierType; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * Identifier */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Identifier { public static final String SERIALIZED_NAME_IDENTIFIER_I_D = "identifierID"; @SerializedName(SERIALIZED_NAME_IDENTIFIER_I_D) @@ -86,7 +88,7 @@ public Identifier identifierID(@javax.annotation.Nonnull String identifierID) { } /** - * Get identifierID + * Unique identifier of the login identifier. * @return identifierID */ @javax.annotation.Nonnull @@ -124,7 +126,7 @@ public Identifier value(@javax.annotation.Nonnull String value) { } /** - * Get value + * Value of the identifier (here email address). * @return value */ @javax.annotation.Nonnull @@ -162,7 +164,7 @@ public Identifier userID(@javax.annotation.Nonnull String userID) { } /** - * Get userID + * Unique identifier of the user. * @return userID */ @javax.annotation.Nonnull @@ -227,20 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("identifierID"); - openapiFields.add("type"); - openapiFields.add("value"); - openapiFields.add("status"); - openapiFields.add("userID"); + openapiFields = new HashSet(Arrays.asList("identifierID", "type", "value", "status", "userID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("identifierID"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("value"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("userID"); + openapiRequiredFields = new HashSet(Arrays.asList("identifierID", "type", "value", "status", "userID")); } /** @@ -252,7 +244,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Identifier.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Identifier is not found in the empty JSON string", Identifier.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Identifier is not found in the empty JSON string", Identifier.openapiRequiredFields.toString())); } } @@ -260,29 +252,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!Identifier.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Identifier` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Identifier` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Identifier.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("identifierID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifierID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierID").toString())); } // validate the required field `type` IdentifierType.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } // validate the required field `status` IdentifierStatus.validateJsonElement(jsonObj.get("status")); if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java b/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java index 16b550d..448537e 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java +++ b/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.IdentifierStatus; import com.corbado.generated.model.IdentifierType; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * IdentifierCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class IdentifierCreateReq { public static final String SERIALIZED_NAME_IDENTIFIER_TYPE = "identifierType"; @SerializedName(SERIALIZED_NAME_IDENTIFIER_TYPE) @@ -175,16 +177,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("identifierType"); - openapiFields.add("identifierValue"); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("identifierType", "identifierValue", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("identifierType"); - openapiRequiredFields.add("identifierValue"); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("identifierType", "identifierValue", "status")); } /** @@ -196,7 +192,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!IdentifierCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in IdentifierCreateReq is not found in the empty JSON string", IdentifierCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IdentifierCreateReq is not found in the empty JSON string", IdentifierCreateReq.openapiRequiredFields.toString())); } } @@ -204,21 +200,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!IdentifierCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `IdentifierCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IdentifierCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : IdentifierCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `identifierType` IdentifierType.validateJsonElement(jsonObj.get("identifierType")); if (!jsonObj.get("identifierValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); } // validate the required field `status` IdentifierStatus.validateJsonElement(jsonObj.get("status")); diff --git a/src/main/java/com/corbado/generated/model/IdentifierList.java b/src/main/java/com/corbado/generated/model/IdentifierList.java index 365ea19..f83b74d 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierList.java +++ b/src/main/java/com/corbado/generated/model/IdentifierList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.Identifier; -import com.corbado.generated.model.Paging; +import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * IdentifierList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class IdentifierList { public static final String SERIALIZED_NAME_IDENTIFIERS = "identifiers"; @SerializedName(SERIALIZED_NAME_IDENTIFIERS) @@ -62,7 +64,7 @@ public class IdentifierList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private Paging paging; + private UserListPaging paging; public IdentifierList() { } @@ -94,7 +96,7 @@ public void setIdentifiers(@javax.annotation.Nonnull List identifier } - public IdentifierList paging(@javax.annotation.Nonnull Paging paging) { + public IdentifierList paging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; return this; } @@ -104,11 +106,11 @@ public IdentifierList paging(@javax.annotation.Nonnull Paging paging) { * @return paging */ @javax.annotation.Nonnull - public Paging getPaging() { + public UserListPaging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull Paging paging) { + public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; } @@ -159,14 +161,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("identifiers"); - openapiFields.add("paging"); + openapiFields = new HashSet(Arrays.asList("identifiers", "paging")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("identifiers"); - openapiRequiredFields.add("paging"); + openapiRequiredFields = new HashSet(Arrays.asList("identifiers", "paging")); } /** @@ -178,7 +176,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!IdentifierList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in IdentifierList is not found in the empty JSON string", IdentifierList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IdentifierList is not found in the empty JSON string", IdentifierList.openapiRequiredFields.toString())); } } @@ -186,20 +184,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!IdentifierList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `IdentifierList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IdentifierList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : IdentifierList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("identifiers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `identifiers` to be an array in the JSON string but got `%s`", jsonObj.get("identifiers").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifiers` to be an array in the JSON string but got `%s`", jsonObj.get("identifiers").toString())); } JsonArray jsonArrayidentifiers = jsonObj.getAsJsonArray("identifiers"); @@ -208,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Identifier.validateJsonElement(jsonArrayidentifiers.get(i)); }; // validate the required field `paging` - Paging.validateJsonElement(jsonObj.get("paging")); + UserListPaging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/IdentifierStatus.java b/src/main/java/com/corbado/generated/model/IdentifierStatus.java index 86596d5..f42ff4f 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierStatus.java +++ b/src/main/java/com/corbado/generated/model/IdentifierStatus.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/IdentifierType.java b/src/main/java/com/corbado/generated/model/IdentifierType.java index 0f7e3d0..e9107f2 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierType.java +++ b/src/main/java/com/corbado/generated/model/IdentifierType.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java b/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java index 365962c..60f3cb0 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.IdentifierStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * IdentifierUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class IdentifierUpdateReq { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -122,12 +124,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("status")); } /** @@ -139,7 +139,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!IdentifierUpdateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in IdentifierUpdateReq is not found in the empty JSON string", IdentifierUpdateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IdentifierUpdateReq is not found in the empty JSON string", IdentifierUpdateReq.openapiRequiredFields.toString())); } } @@ -147,14 +147,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!IdentifierUpdateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `IdentifierUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IdentifierUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : IdentifierUpdateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java b/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java index 9139385..f88ef04 100644 --- a/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java +++ b/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * JavaScriptHighEntropy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class JavaScriptHighEntropy { public static final String SERIALIZED_NAME_PLATFORM = "platform"; @SerializedName(SERIALIZED_NAME_PLATFORM) @@ -173,16 +175,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("platform"); - openapiFields.add("platformVersion"); - openapiFields.add("mobile"); + openapiFields = new HashSet(Arrays.asList("platform", "platformVersion", "mobile")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("platform"); - openapiRequiredFields.add("platformVersion"); - openapiRequiredFields.add("mobile"); + openapiRequiredFields = new HashSet(Arrays.asList("platform", "platformVersion", "mobile")); } /** @@ -194,7 +190,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!JavaScriptHighEntropy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in JavaScriptHighEntropy is not found in the empty JSON string", JavaScriptHighEntropy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in JavaScriptHighEntropy is not found in the empty JSON string", JavaScriptHighEntropy.openapiRequiredFields.toString())); } } @@ -202,22 +198,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!JavaScriptHighEntropy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `JavaScriptHighEntropy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `JavaScriptHighEntropy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : JavaScriptHighEntropy.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("platform").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `platform` to be a primitive type in the JSON string but got `%s`", jsonObj.get("platform").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `platform` to be a primitive type in the JSON string but got `%s`", jsonObj.get("platform").toString())); } if (!jsonObj.get("platformVersion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `platformVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("platformVersion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `platformVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("platformVersion").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/NativeMeta.java b/src/main/java/com/corbado/generated/model/NativeMeta.java new file mode 100644 index 0000000..7d937fa --- /dev/null +++ b/src/main/java/com/corbado/generated/model/NativeMeta.java @@ -0,0 +1,373 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * NativeMeta + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class NativeMeta { + public static final String SERIALIZED_NAME_BUILD = "build"; + @SerializedName(SERIALIZED_NAME_BUILD) + @javax.annotation.Nonnull + private String build; + + public static final String SERIALIZED_NAME_DEVICE_OWNER_AUTH = "deviceOwnerAuth"; + @SerializedName(SERIALIZED_NAME_DEVICE_OWNER_AUTH) + @javax.annotation.Nullable + private String deviceOwnerAuth; + + public static final String SERIALIZED_NAME_IS_PLATFORM_AUTHENTICATOR_A_P_I_SUPPORTED = "isPlatformAuthenticatorAPISupported"; + @SerializedName(SERIALIZED_NAME_IS_PLATFORM_AUTHENTICATOR_A_P_I_SUPPORTED) + @javax.annotation.Nullable + private Boolean isPlatformAuthenticatorAPISupported; + + public static final String SERIALIZED_NAME_IS_BLUETOOTH_AVAILABLE = "isBluetoothAvailable"; + @SerializedName(SERIALIZED_NAME_IS_BLUETOOTH_AVAILABLE) + @javax.annotation.Nullable + private Boolean isBluetoothAvailable; + + public static final String SERIALIZED_NAME_IS_BLUETOOTH_ON = "isBluetoothOn"; + @SerializedName(SERIALIZED_NAME_IS_BLUETOOTH_ON) + @javax.annotation.Nullable + private Boolean isBluetoothOn; + + public static final String SERIALIZED_NAME_GOOGLE_PLAY_SERVICES = "googlePlayServices"; + @SerializedName(SERIALIZED_NAME_GOOGLE_PLAY_SERVICES) + @javax.annotation.Nullable + private Boolean googlePlayServices; + + public static final String SERIALIZED_NAME_DEVICE_SECURE = "deviceSecure"; + @SerializedName(SERIALIZED_NAME_DEVICE_SECURE) + @javax.annotation.Nullable + private Boolean deviceSecure; + + public NativeMeta() { + } + + public NativeMeta build(@javax.annotation.Nonnull String build) { + this.build = build; + return this; + } + + /** + * Get build + * @return build + */ + @javax.annotation.Nonnull + public String getBuild() { + return build; + } + + public void setBuild(@javax.annotation.Nonnull String build) { + this.build = build; + } + + + public NativeMeta deviceOwnerAuth(@javax.annotation.Nullable String deviceOwnerAuth) { + this.deviceOwnerAuth = deviceOwnerAuth; + return this; + } + + /** + * Get deviceOwnerAuth + * @return deviceOwnerAuth + */ + @javax.annotation.Nullable + public String getDeviceOwnerAuth() { + return deviceOwnerAuth; + } + + public void setDeviceOwnerAuth(@javax.annotation.Nullable String deviceOwnerAuth) { + this.deviceOwnerAuth = deviceOwnerAuth; + } + + + public NativeMeta isPlatformAuthenticatorAPISupported(@javax.annotation.Nullable Boolean isPlatformAuthenticatorAPISupported) { + this.isPlatformAuthenticatorAPISupported = isPlatformAuthenticatorAPISupported; + return this; + } + + /** + * Get isPlatformAuthenticatorAPISupported + * @return isPlatformAuthenticatorAPISupported + */ + @javax.annotation.Nullable + public Boolean getIsPlatformAuthenticatorAPISupported() { + return isPlatformAuthenticatorAPISupported; + } + + public void setIsPlatformAuthenticatorAPISupported(@javax.annotation.Nullable Boolean isPlatformAuthenticatorAPISupported) { + this.isPlatformAuthenticatorAPISupported = isPlatformAuthenticatorAPISupported; + } + + + public NativeMeta isBluetoothAvailable(@javax.annotation.Nullable Boolean isBluetoothAvailable) { + this.isBluetoothAvailable = isBluetoothAvailable; + return this; + } + + /** + * Get isBluetoothAvailable + * @return isBluetoothAvailable + */ + @javax.annotation.Nullable + public Boolean getIsBluetoothAvailable() { + return isBluetoothAvailable; + } + + public void setIsBluetoothAvailable(@javax.annotation.Nullable Boolean isBluetoothAvailable) { + this.isBluetoothAvailable = isBluetoothAvailable; + } + + + public NativeMeta isBluetoothOn(@javax.annotation.Nullable Boolean isBluetoothOn) { + this.isBluetoothOn = isBluetoothOn; + return this; + } + + /** + * Get isBluetoothOn + * @return isBluetoothOn + */ + @javax.annotation.Nullable + public Boolean getIsBluetoothOn() { + return isBluetoothOn; + } + + public void setIsBluetoothOn(@javax.annotation.Nullable Boolean isBluetoothOn) { + this.isBluetoothOn = isBluetoothOn; + } + + + public NativeMeta googlePlayServices(@javax.annotation.Nullable Boolean googlePlayServices) { + this.googlePlayServices = googlePlayServices; + return this; + } + + /** + * Get googlePlayServices + * @return googlePlayServices + */ + @javax.annotation.Nullable + public Boolean getGooglePlayServices() { + return googlePlayServices; + } + + public void setGooglePlayServices(@javax.annotation.Nullable Boolean googlePlayServices) { + this.googlePlayServices = googlePlayServices; + } + + + public NativeMeta deviceSecure(@javax.annotation.Nullable Boolean deviceSecure) { + this.deviceSecure = deviceSecure; + return this; + } + + /** + * Get deviceSecure + * @return deviceSecure + */ + @javax.annotation.Nullable + public Boolean getDeviceSecure() { + return deviceSecure; + } + + public void setDeviceSecure(@javax.annotation.Nullable Boolean deviceSecure) { + this.deviceSecure = deviceSecure; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NativeMeta nativeMeta = (NativeMeta) o; + return Objects.equals(this.build, nativeMeta.build) && + Objects.equals(this.deviceOwnerAuth, nativeMeta.deviceOwnerAuth) && + Objects.equals(this.isPlatformAuthenticatorAPISupported, nativeMeta.isPlatformAuthenticatorAPISupported) && + Objects.equals(this.isBluetoothAvailable, nativeMeta.isBluetoothAvailable) && + Objects.equals(this.isBluetoothOn, nativeMeta.isBluetoothOn) && + Objects.equals(this.googlePlayServices, nativeMeta.googlePlayServices) && + Objects.equals(this.deviceSecure, nativeMeta.deviceSecure); + } + + @Override + public int hashCode() { + return Objects.hash(build, deviceOwnerAuth, isPlatformAuthenticatorAPISupported, isBluetoothAvailable, isBluetoothOn, googlePlayServices, deviceSecure); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NativeMeta {\n"); + sb.append(" build: ").append(toIndentedString(build)).append("\n"); + sb.append(" deviceOwnerAuth: ").append(toIndentedString(deviceOwnerAuth)).append("\n"); + sb.append(" isPlatformAuthenticatorAPISupported: ").append(toIndentedString(isPlatformAuthenticatorAPISupported)).append("\n"); + sb.append(" isBluetoothAvailable: ").append(toIndentedString(isBluetoothAvailable)).append("\n"); + sb.append(" isBluetoothOn: ").append(toIndentedString(isBluetoothOn)).append("\n"); + sb.append(" googlePlayServices: ").append(toIndentedString(googlePlayServices)).append("\n"); + sb.append(" deviceSecure: ").append(toIndentedString(deviceSecure)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("build", "deviceOwnerAuth", "isPlatformAuthenticatorAPISupported", "isBluetoothAvailable", "isBluetoothOn", "googlePlayServices", "deviceSecure")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("build")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NativeMeta + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NativeMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in NativeMeta is not found in the empty JSON string", NativeMeta.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NativeMeta.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `NativeMeta` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : NativeMeta.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("build").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `build` to be a primitive type in the JSON string but got `%s`", jsonObj.get("build").toString())); + } + if ((jsonObj.get("deviceOwnerAuth") != null && !jsonObj.get("deviceOwnerAuth").isJsonNull()) && !jsonObj.get("deviceOwnerAuth").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceOwnerAuth` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceOwnerAuth").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!NativeMeta.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NativeMeta' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NativeMeta.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NativeMeta value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NativeMeta read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NativeMeta given an JSON string + * + * @param jsonString JSON string + * @return An instance of NativeMeta + * @throws IOException if the JSON string is invalid with respect to NativeMeta + */ + public static NativeMeta fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NativeMeta.class); + } + + /** + * Convert an instance of NativeMeta to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java b/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java index c398689..441f7fe 100644 --- a/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java +++ b/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ParsedDeviceInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ParsedDeviceInfo { public static final String SERIALIZED_NAME_BROWSER_NAME = "browserName"; @SerializedName(SERIALIZED_NAME_BROWSER_NAME) @@ -199,18 +201,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("browserName"); - openapiFields.add("browserVersion"); - openapiFields.add("osName"); - openapiFields.add("osVersion"); + openapiFields = new HashSet(Arrays.asList("browserName", "browserVersion", "osName", "osVersion")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("browserName"); - openapiRequiredFields.add("browserVersion"); - openapiRequiredFields.add("osName"); - openapiRequiredFields.add("osVersion"); + openapiRequiredFields = new HashSet(Arrays.asList("browserName", "browserVersion", "osName", "osVersion")); } /** @@ -222,7 +216,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ParsedDeviceInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ParsedDeviceInfo is not found in the empty JSON string", ParsedDeviceInfo.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ParsedDeviceInfo is not found in the empty JSON string", ParsedDeviceInfo.openapiRequiredFields.toString())); } } @@ -230,28 +224,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ParsedDeviceInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ParsedDeviceInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ParsedDeviceInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ParsedDeviceInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("browserName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `browserName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("browserName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `browserName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("browserName").toString())); } if (!jsonObj.get("browserVersion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `browserVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("browserVersion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `browserVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("browserVersion").toString())); } if (!jsonObj.get("osName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `osName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `osName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osName").toString())); } if (!jsonObj.get("osVersion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `osVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osVersion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `osVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osVersion").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java index cda37c5..1ee2ba1 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ClientInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyAppendFinishReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendFinishReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) @@ -76,6 +78,11 @@ public class PasskeyAppendFinishReq { @javax.annotation.Nullable private Boolean sendNotification; + public static final String SERIALIZED_NAME_TRACKING_I_D = "trackingID"; + @SerializedName(SERIALIZED_NAME_TRACKING_I_D) + @javax.annotation.Nonnull + private String trackingID; + public PasskeyAppendFinishReq() { } @@ -174,6 +181,25 @@ public void setSendNotification(@javax.annotation.Nullable Boolean sendNotificat } + public PasskeyAppendFinishReq trackingID(@javax.annotation.Nonnull String trackingID) { + this.trackingID = trackingID; + return this; + } + + /** + * Get trackingID + * @return trackingID + */ + @javax.annotation.Nonnull + public String getTrackingID() { + return trackingID; + } + + public void setTrackingID(@javax.annotation.Nonnull String trackingID) { + this.trackingID = trackingID; + } + + @Override public boolean equals(Object o) { @@ -188,12 +214,13 @@ public boolean equals(Object o) { Objects.equals(this.processID, passkeyAppendFinishReq.processID) && Objects.equals(this.attestationResponse, passkeyAppendFinishReq.attestationResponse) && Objects.equals(this.clientInformation, passkeyAppendFinishReq.clientInformation) && - Objects.equals(this.sendNotification, passkeyAppendFinishReq.sendNotification); + Objects.equals(this.sendNotification, passkeyAppendFinishReq.sendNotification) && + Objects.equals(this.trackingID, passkeyAppendFinishReq.trackingID); } @Override public int hashCode() { - return Objects.hash(userID, processID, attestationResponse, clientInformation, sendNotification); + return Objects.hash(userID, processID, attestationResponse, clientInformation, sendNotification, trackingID); } @Override @@ -205,6 +232,7 @@ public String toString() { sb.append(" attestationResponse: ").append(toIndentedString(attestationResponse)).append("\n"); sb.append(" clientInformation: ").append(toIndentedString(clientInformation)).append("\n"); sb.append(" sendNotification: ").append(toIndentedString(sendNotification)).append("\n"); + sb.append(" trackingID: ").append(toIndentedString(trackingID)).append("\n"); sb.append("}"); return sb.toString(); } @@ -226,19 +254,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userID"); - openapiFields.add("processID"); - openapiFields.add("attestationResponse"); - openapiFields.add("clientInformation"); - openapiFields.add("sendNotification"); + openapiFields = new HashSet(Arrays.asList("userID", "processID", "attestationResponse", "clientInformation", "sendNotification", "trackingID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("processID"); - openapiRequiredFields.add("attestationResponse"); - openapiRequiredFields.add("clientInformation"); + openapiRequiredFields = new HashSet(Arrays.asList("userID", "processID", "attestationResponse", "clientInformation", "trackingID")); } /** @@ -250,7 +269,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyAppendFinishReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyAppendFinishReq is not found in the empty JSON string", PasskeyAppendFinishReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyAppendFinishReq is not found in the empty JSON string", PasskeyAppendFinishReq.openapiRequiredFields.toString())); } } @@ -258,28 +277,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyAppendFinishReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyAppendFinishReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyAppendFinishReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyAppendFinishReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("processID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); } if (!jsonObj.get("attestationResponse").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attestationResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attestationResponse").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attestationResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attestationResponse").toString())); } // validate the required field `clientInformation` ClientInformation.validateJsonElement(jsonObj.get("clientInformation")); + if (!jsonObj.get("trackingID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `trackingID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trackingID").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java index cc0a752..22ff9c1 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyData; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyAppendFinishRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendFinishRsp { public static final String SERIALIZED_NAME_PASSKEY_DATA = "passkeyData"; @SerializedName(SERIALIZED_NAME_PASSKEY_DATA) @@ -122,12 +124,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("passkeyData"); + openapiFields = new HashSet(Arrays.asList("passkeyData")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("passkeyData"); + openapiRequiredFields = new HashSet(Arrays.asList("passkeyData")); } /** @@ -139,7 +139,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyAppendFinishRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyAppendFinishRsp is not found in the empty JSON string", PasskeyAppendFinishRsp.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyAppendFinishRsp is not found in the empty JSON string", PasskeyAppendFinishRsp.openapiRequiredFields.toString())); } } @@ -147,14 +147,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyAppendFinishRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyAppendFinishRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyAppendFinishRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyAppendFinishRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java b/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java index bba1f75..3249b54 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ClientInformation; import com.corbado.generated.model.PasskeyIntelFlags; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyAppendStartReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendStartReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) @@ -227,20 +229,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userID"); - openapiFields.add("processID"); - openapiFields.add("username"); - openapiFields.add("clientInformation"); - openapiFields.add("passkeyIntelFlags"); + openapiFields = new HashSet(Arrays.asList("userID", "processID", "username", "clientInformation", "passkeyIntelFlags")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("processID"); - openapiRequiredFields.add("username"); - openapiRequiredFields.add("clientInformation"); - openapiRequiredFields.add("passkeyIntelFlags"); + openapiRequiredFields = new HashSet(Arrays.asList("userID", "processID", "username", "clientInformation", "passkeyIntelFlags")); } /** @@ -252,7 +244,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyAppendStartReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyAppendStartReq is not found in the empty JSON string", PasskeyAppendStartReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyAppendStartReq is not found in the empty JSON string", PasskeyAppendStartReq.openapiRequiredFields.toString())); } } @@ -260,25 +252,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyAppendStartReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyAppendStartReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyAppendStartReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyAppendStartReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("processID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); } if (!jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } // validate the required field `clientInformation` ClientInformation.validateJsonElement(jsonObj.get("clientInformation")); diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java b/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java index 9aa129c..dc67ff8 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,7 +14,8 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.DecisionInsights; +import java.util.Locale; +import com.corbado.generated.model.DecisionInsightsAppend; import com.corbado.generated.model.DetectionInsights; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyAppendStartRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendStartRsp { public static final String SERIALIZED_NAME_APPEND_ALLOW = "appendAllow"; @SerializedName(SERIALIZED_NAME_APPEND_ALLOW) @@ -70,7 +72,7 @@ public class PasskeyAppendStartRsp { public static final String SERIALIZED_NAME_DECISION_INSIGHTS = "decisionInsights"; @SerializedName(SERIALIZED_NAME_DECISION_INSIGHTS) @javax.annotation.Nonnull - private DecisionInsights decisionInsights; + private DecisionInsightsAppend decisionInsights; public PasskeyAppendStartRsp() { } @@ -132,7 +134,7 @@ public void setDetectionInsights(@javax.annotation.Nonnull DetectionInsights det } - public PasskeyAppendStartRsp decisionInsights(@javax.annotation.Nonnull DecisionInsights decisionInsights) { + public PasskeyAppendStartRsp decisionInsights(@javax.annotation.Nonnull DecisionInsightsAppend decisionInsights) { this.decisionInsights = decisionInsights; return this; } @@ -142,11 +144,11 @@ public PasskeyAppendStartRsp decisionInsights(@javax.annotation.Nonnull Decision * @return decisionInsights */ @javax.annotation.Nonnull - public DecisionInsights getDecisionInsights() { + public DecisionInsightsAppend getDecisionInsights() { return decisionInsights; } - public void setDecisionInsights(@javax.annotation.Nonnull DecisionInsights decisionInsights) { + public void setDecisionInsights(@javax.annotation.Nonnull DecisionInsightsAppend decisionInsights) { this.decisionInsights = decisionInsights; } @@ -201,18 +203,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("appendAllow"); - openapiFields.add("attestationOptions"); - openapiFields.add("detectionInsights"); - openapiFields.add("decisionInsights"); + openapiFields = new HashSet(Arrays.asList("appendAllow", "attestationOptions", "detectionInsights", "decisionInsights")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("appendAllow"); - openapiRequiredFields.add("attestationOptions"); - openapiRequiredFields.add("detectionInsights"); - openapiRequiredFields.add("decisionInsights"); + openapiRequiredFields = new HashSet(Arrays.asList("appendAllow", "attestationOptions", "detectionInsights", "decisionInsights")); } /** @@ -224,7 +218,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyAppendStartRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyAppendStartRsp is not found in the empty JSON string", PasskeyAppendStartRsp.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyAppendStartRsp is not found in the empty JSON string", PasskeyAppendStartRsp.openapiRequiredFields.toString())); } } @@ -232,24 +226,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyAppendStartRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyAppendStartRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyAppendStartRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyAppendStartRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("attestationOptions").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attestationOptions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attestationOptions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attestationOptions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attestationOptions").toString())); } // validate the required field `detectionInsights` DetectionInsights.validateJsonElement(jsonObj.get("detectionInsights")); // validate the required field `decisionInsights` - DecisionInsights.validateJsonElement(jsonObj.get("decisionInsights")); + DecisionInsightsAppend.validateJsonElement(jsonObj.get("decisionInsights")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/PasskeyChallenge.java b/src/main/java/com/corbado/generated/model/PasskeyChallenge.java index 8b08ee7..01d10c5 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyChallenge.java +++ b/src/main/java/com/corbado/generated/model/PasskeyChallenge.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyChallengeStatus; import com.corbado.generated.model.PasskeyChallengeType; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyChallenge */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyChallenge { public static final String SERIALIZED_NAME_CHALLENGE_I_D = "challengeID"; @SerializedName(SERIALIZED_NAME_CHALLENGE_I_D) @@ -279,24 +281,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("challengeID"); - openapiFields.add("type"); - openapiFields.add("value"); - openapiFields.add("status"); - openapiFields.add("created"); - openapiFields.add("createdMs"); - openapiFields.add("expires"); + openapiFields = new HashSet(Arrays.asList("challengeID", "type", "value", "status", "created", "createdMs", "expires")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("challengeID"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("value"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("created"); - openapiRequiredFields.add("createdMs"); - openapiRequiredFields.add("expires"); + openapiRequiredFields = new HashSet(Arrays.asList("challengeID", "type", "value", "status", "created", "createdMs", "expires")); } /** @@ -308,7 +296,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyChallenge.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyChallenge is not found in the empty JSON string", PasskeyChallenge.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyChallenge is not found in the empty JSON string", PasskeyChallenge.openapiRequiredFields.toString())); } } @@ -316,24 +304,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyChallenge.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyChallenge` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyChallenge` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyChallenge.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("challengeID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `challengeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challengeID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `challengeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challengeID").toString())); } // validate the required field `type` PasskeyChallengeType.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } // validate the required field `status` PasskeyChallengeStatus.validateJsonElement(jsonObj.get("status")); diff --git a/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java b/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java index faeb905..78942e2 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java +++ b/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.Paging; +import java.util.Locale; import com.corbado.generated.model.PasskeyChallenge; +import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyChallengeList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyChallengeList { public static final String SERIALIZED_NAME_PASSKEY_CHALLENGES = "passkeyChallenges"; @SerializedName(SERIALIZED_NAME_PASSKEY_CHALLENGES) @@ -62,7 +64,7 @@ public class PasskeyChallengeList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private Paging paging; + private UserListPaging paging; public PasskeyChallengeList() { } @@ -94,7 +96,7 @@ public void setPasskeyChallenges(@javax.annotation.Nonnull List(); - openapiFields.add("passkeyChallenges"); - openapiFields.add("paging"); + openapiFields = new HashSet(Arrays.asList("passkeyChallenges", "paging")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("passkeyChallenges"); - openapiRequiredFields.add("paging"); + openapiRequiredFields = new HashSet(Arrays.asList("passkeyChallenges", "paging")); } /** @@ -178,7 +176,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyChallengeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyChallengeList is not found in the empty JSON string", PasskeyChallengeList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyChallengeList is not found in the empty JSON string", PasskeyChallengeList.openapiRequiredFields.toString())); } } @@ -186,20 +184,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyChallengeList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyChallengeList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyChallengeList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyChallengeList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("passkeyChallenges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `passkeyChallenges` to be an array in the JSON string but got `%s`", jsonObj.get("passkeyChallenges").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `passkeyChallenges` to be an array in the JSON string but got `%s`", jsonObj.get("passkeyChallenges").toString())); } JsonArray jsonArraypasskeyChallenges = jsonObj.getAsJsonArray("passkeyChallenges"); @@ -208,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PasskeyChallenge.validateJsonElement(jsonArraypasskeyChallenges.get(i)); }; // validate the required field `paging` - Paging.validateJsonElement(jsonObj.get("paging")); + UserListPaging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/PasskeyChallengeStatus.java b/src/main/java/com/corbado/generated/model/PasskeyChallengeStatus.java index 34cec93..fa02b72 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyChallengeStatus.java +++ b/src/main/java/com/corbado/generated/model/PasskeyChallengeStatus.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/PasskeyChallengeType.java b/src/main/java/com/corbado/generated/model/PasskeyChallengeType.java index d186bbe..c2d5e80 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyChallengeType.java +++ b/src/main/java/com/corbado/generated/model/PasskeyChallengeType.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/PasskeyChallengeUpdateReq.java b/src/main/java/com/corbado/generated/model/PasskeyChallengeUpdateReq.java index 1d2ed37..f1b88db 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyChallengeUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyChallengeUpdateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyChallengeStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyChallengeUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyChallengeUpdateReq { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -122,12 +124,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("status")); } /** @@ -139,7 +139,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyChallengeUpdateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyChallengeUpdateReq is not found in the empty JSON string", PasskeyChallengeUpdateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyChallengeUpdateReq is not found in the empty JSON string", PasskeyChallengeUpdateReq.openapiRequiredFields.toString())); } } @@ -147,14 +147,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyChallengeUpdateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyChallengeUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyChallengeUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyChallengeUpdateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/src/main/java/com/corbado/generated/model/PasskeyData.java b/src/main/java/com/corbado/generated/model/PasskeyData.java index 82a06b2..3089e47 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyData.java +++ b/src/main/java/com/corbado/generated/model/PasskeyData.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.AaguidDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyData { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -306,22 +308,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("userID"); - openapiFields.add("username"); - openapiFields.add("ceremonyType"); - openapiFields.add("challengeID"); - openapiFields.add("aaguidDetails"); + openapiFields = new HashSet(Arrays.asList("id", "userID", "username", "ceremonyType", "challengeID", "aaguidDetails")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("username"); - openapiRequiredFields.add("ceremonyType"); - openapiRequiredFields.add("challengeID"); - openapiRequiredFields.add("aaguidDetails"); + openapiRequiredFields = new HashSet(Arrays.asList("id", "userID", "username", "ceremonyType", "challengeID", "aaguidDetails")); } /** @@ -333,7 +323,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyData is not found in the empty JSON string", PasskeyData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyData is not found in the empty JSON string", PasskeyData.openapiRequiredFields.toString())); } } @@ -341,33 +331,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } if (!jsonObj.get("ceremonyType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ceremonyType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ceremonyType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ceremonyType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ceremonyType").toString())); } // validate the required field `ceremonyType` CeremonyTypeEnum.validateJsonElement(jsonObj.get("ceremonyType")); if (!jsonObj.get("challengeID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `challengeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challengeID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `challengeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challengeID").toString())); } // validate the required field `aaguidDetails` AaguidDetails.validateJsonElement(jsonObj.get("aaguidDetails")); diff --git a/src/main/java/com/corbado/generated/model/PasskeyEvent.java b/src/main/java/com/corbado/generated/model/PasskeyEvent.java index be24eca..5e68043 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyEvent.java +++ b/src/main/java/com/corbado/generated/model/PasskeyEvent.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyEventType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyEvent */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyEvent { public static final String SERIALIZED_NAME_PASSKEY_EVENT_I_D = "passkeyEventID"; @SerializedName(SERIALIZED_NAME_PASSKEY_EVENT_I_D) @@ -330,24 +332,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("passkeyEventID"); - openapiFields.add("userID"); - openapiFields.add("eventType"); - openapiFields.add("clientEnvID"); - openapiFields.add("processID"); - openapiFields.add("credentialID"); - openapiFields.add("expires"); - openapiFields.add("created"); - openapiFields.add("createdMs"); + openapiFields = new HashSet(Arrays.asList("passkeyEventID", "userID", "eventType", "clientEnvID", "processID", "credentialID", "expires", "created", "createdMs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("passkeyEventID"); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("eventType"); - openapiRequiredFields.add("created"); - openapiRequiredFields.add("createdMs"); + openapiRequiredFields = new HashSet(Arrays.asList("passkeyEventID", "userID", "eventType", "created", "createdMs")); } /** @@ -359,7 +347,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyEvent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyEvent is not found in the empty JSON string", PasskeyEvent.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyEvent is not found in the empty JSON string", PasskeyEvent.openapiRequiredFields.toString())); } } @@ -367,36 +355,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyEvent.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyEvent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyEvent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyEvent.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("passkeyEventID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `passkeyEventID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("passkeyEventID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `passkeyEventID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("passkeyEventID").toString())); } if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } // validate the required field `eventType` PasskeyEventType.validateJsonElement(jsonObj.get("eventType")); if ((jsonObj.get("clientEnvID") != null && !jsonObj.get("clientEnvID").isJsonNull()) && !jsonObj.get("clientEnvID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientEnvID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientEnvID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvID").toString())); } if ((jsonObj.get("processID") != null && !jsonObj.get("processID").isJsonNull()) && !jsonObj.get("processID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); } if ((jsonObj.get("credentialID") != null && !jsonObj.get("credentialID").isJsonNull()) && !jsonObj.get("credentialID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); } if (!jsonObj.get("created").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyEventCreateReq.java b/src/main/java/com/corbado/generated/model/PasskeyEventCreateReq.java index 5fdd31a..d792323 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyEventCreateReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyEventCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyEventType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyEventCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyEventCreateReq { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -252,17 +254,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("eventType"); - openapiFields.add("expires"); - openapiFields.add("processID"); - openapiFields.add("clientEnvID"); - openapiFields.add("credentialID"); - openapiFields.add("challenge"); + openapiFields = new HashSet(Arrays.asList("eventType", "expires", "processID", "clientEnvID", "credentialID", "challenge")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("eventType"); + openapiRequiredFields = new HashSet(Arrays.asList("eventType")); } /** @@ -274,7 +269,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyEventCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyEventCreateReq is not found in the empty JSON string", PasskeyEventCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyEventCreateReq is not found in the empty JSON string", PasskeyEventCreateReq.openapiRequiredFields.toString())); } } @@ -282,30 +277,30 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyEventCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyEventCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyEventCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyEventCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `eventType` PasskeyEventType.validateJsonElement(jsonObj.get("eventType")); if ((jsonObj.get("processID") != null && !jsonObj.get("processID").isJsonNull()) && !jsonObj.get("processID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); } if ((jsonObj.get("clientEnvID") != null && !jsonObj.get("clientEnvID").isJsonNull()) && !jsonObj.get("clientEnvID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientEnvID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientEnvID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvID").toString())); } if ((jsonObj.get("credentialID") != null && !jsonObj.get("credentialID").isJsonNull()) && !jsonObj.get("credentialID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); } if ((jsonObj.get("challenge") != null && !jsonObj.get("challenge").isJsonNull()) && !jsonObj.get("challenge").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `challenge` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challenge").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `challenge` to be a primitive type in the JSON string but got `%s`", jsonObj.get("challenge").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyEventList.java b/src/main/java/com/corbado/generated/model/PasskeyEventList.java index 2fc5630..d432eca 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyEventList.java +++ b/src/main/java/com/corbado/generated/model/PasskeyEventList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.Paging; +import java.util.Locale; import com.corbado.generated.model.PasskeyEvent; +import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyEventList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyEventList { public static final String SERIALIZED_NAME_PASSKEY_EVENTS = "passkeyEvents"; @SerializedName(SERIALIZED_NAME_PASSKEY_EVENTS) @@ -62,7 +64,7 @@ public class PasskeyEventList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private Paging paging; + private UserListPaging paging; public PasskeyEventList() { } @@ -94,7 +96,7 @@ public void setPasskeyEvents(@javax.annotation.Nonnull List passke } - public PasskeyEventList paging(@javax.annotation.Nonnull Paging paging) { + public PasskeyEventList paging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; return this; } @@ -104,11 +106,11 @@ public PasskeyEventList paging(@javax.annotation.Nonnull Paging paging) { * @return paging */ @javax.annotation.Nonnull - public Paging getPaging() { + public UserListPaging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull Paging paging) { + public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; } @@ -159,14 +161,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("passkeyEvents"); - openapiFields.add("paging"); + openapiFields = new HashSet(Arrays.asList("passkeyEvents", "paging")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("passkeyEvents"); - openapiRequiredFields.add("paging"); + openapiRequiredFields = new HashSet(Arrays.asList("passkeyEvents", "paging")); } /** @@ -178,7 +176,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyEventList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyEventList is not found in the empty JSON string", PasskeyEventList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyEventList is not found in the empty JSON string", PasskeyEventList.openapiRequiredFields.toString())); } } @@ -186,20 +184,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyEventList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyEventList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyEventList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyEventList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("passkeyEvents").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `passkeyEvents` to be an array in the JSON string but got `%s`", jsonObj.get("passkeyEvents").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `passkeyEvents` to be an array in the JSON string but got `%s`", jsonObj.get("passkeyEvents").toString())); } JsonArray jsonArraypasskeyEvents = jsonObj.getAsJsonArray("passkeyEvents"); @@ -208,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PasskeyEvent.validateJsonElement(jsonArraypasskeyEvents.get(i)); }; // validate the required field `paging` - Paging.validateJsonElement(jsonObj.get("paging")); + UserListPaging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/PasskeyEventType.java b/src/main/java/com/corbado/generated/model/PasskeyEventType.java index c597468..a021f7a 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyEventType.java +++ b/src/main/java/com/corbado/generated/model/PasskeyEventType.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; @@ -47,7 +49,9 @@ public enum PasskeyEventType { APPEND_EXPLICIT_ABORT("append-explicit-abort"), - APPEND_ERROR("append-error"); + APPEND_ERROR("append-error"), + + LOGIN_NO_CREDENTIALS("login-no-credentials"); private String value; diff --git a/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java b/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java index b5cb75c..9939472 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java +++ b/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,19 +43,25 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyIntelFlags */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyIntelFlags { public static final String SERIALIZED_NAME_FORCE_PASSKEY_APPEND = "forcePasskeyAppend"; @SerializedName(SERIALIZED_NAME_FORCE_PASSKEY_APPEND) @javax.annotation.Nonnull private Boolean forcePasskeyAppend; + public static final String SERIALIZED_NAME_ASK_FOR_AUTO_APPEND = "askForAutoAppend"; + @SerializedName(SERIALIZED_NAME_ASK_FOR_AUTO_APPEND) + @javax.annotation.Nullable + private Boolean askForAutoAppend; + public PasskeyIntelFlags() { } @@ -77,6 +84,25 @@ public void setForcePasskeyAppend(@javax.annotation.Nonnull Boolean forcePasskey } + public PasskeyIntelFlags askForAutoAppend(@javax.annotation.Nullable Boolean askForAutoAppend) { + this.askForAutoAppend = askForAutoAppend; + return this; + } + + /** + * Get askForAutoAppend + * @return askForAutoAppend + */ + @javax.annotation.Nullable + public Boolean getAskForAutoAppend() { + return askForAutoAppend; + } + + public void setAskForAutoAppend(@javax.annotation.Nullable Boolean askForAutoAppend) { + this.askForAutoAppend = askForAutoAppend; + } + + @Override public boolean equals(Object o) { @@ -87,12 +113,13 @@ public boolean equals(Object o) { return false; } PasskeyIntelFlags passkeyIntelFlags = (PasskeyIntelFlags) o; - return Objects.equals(this.forcePasskeyAppend, passkeyIntelFlags.forcePasskeyAppend); + return Objects.equals(this.forcePasskeyAppend, passkeyIntelFlags.forcePasskeyAppend) && + Objects.equals(this.askForAutoAppend, passkeyIntelFlags.askForAutoAppend); } @Override public int hashCode() { - return Objects.hash(forcePasskeyAppend); + return Objects.hash(forcePasskeyAppend, askForAutoAppend); } @Override @@ -100,6 +127,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PasskeyIntelFlags {\n"); sb.append(" forcePasskeyAppend: ").append(toIndentedString(forcePasskeyAppend)).append("\n"); + sb.append(" askForAutoAppend: ").append(toIndentedString(askForAutoAppend)).append("\n"); sb.append("}"); return sb.toString(); } @@ -121,12 +149,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("forcePasskeyAppend"); + openapiFields = new HashSet(Arrays.asList("forcePasskeyAppend", "askForAutoAppend")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("forcePasskeyAppend"); + openapiRequiredFields = new HashSet(Arrays.asList("forcePasskeyAppend")); } /** @@ -138,7 +164,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyIntelFlags.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyIntelFlags is not found in the empty JSON string", PasskeyIntelFlags.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyIntelFlags is not found in the empty JSON string", PasskeyIntelFlags.openapiRequiredFields.toString())); } } @@ -146,14 +172,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyIntelFlags.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyIntelFlags` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyIntelFlags` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyIntelFlags.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java index d691e25..18fcd7b 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ClientInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyLoginFinishReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginFinishReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) @@ -76,6 +78,11 @@ public class PasskeyLoginFinishReq { @javax.annotation.Nullable private Boolean signPasskeyData; + public static final String SERIALIZED_NAME_TRACKING_I_D = "trackingID"; + @SerializedName(SERIALIZED_NAME_TRACKING_I_D) + @javax.annotation.Nonnull + private String trackingID; + public PasskeyLoginFinishReq() { } @@ -174,6 +181,25 @@ public void setSignPasskeyData(@javax.annotation.Nullable Boolean signPasskeyDat } + public PasskeyLoginFinishReq trackingID(@javax.annotation.Nonnull String trackingID) { + this.trackingID = trackingID; + return this; + } + + /** + * Get trackingID + * @return trackingID + */ + @javax.annotation.Nonnull + public String getTrackingID() { + return trackingID; + } + + public void setTrackingID(@javax.annotation.Nonnull String trackingID) { + this.trackingID = trackingID; + } + + @Override public boolean equals(Object o) { @@ -188,12 +214,13 @@ public boolean equals(Object o) { Objects.equals(this.assertionResponse, passkeyLoginFinishReq.assertionResponse) && Objects.equals(this.clientInformation, passkeyLoginFinishReq.clientInformation) && Objects.equals(this.processID, passkeyLoginFinishReq.processID) && - Objects.equals(this.signPasskeyData, passkeyLoginFinishReq.signPasskeyData); + Objects.equals(this.signPasskeyData, passkeyLoginFinishReq.signPasskeyData) && + Objects.equals(this.trackingID, passkeyLoginFinishReq.trackingID); } @Override public int hashCode() { - return Objects.hash(userID, assertionResponse, clientInformation, processID, signPasskeyData); + return Objects.hash(userID, assertionResponse, clientInformation, processID, signPasskeyData, trackingID); } @Override @@ -205,6 +232,7 @@ public String toString() { sb.append(" clientInformation: ").append(toIndentedString(clientInformation)).append("\n"); sb.append(" processID: ").append(toIndentedString(processID)).append("\n"); sb.append(" signPasskeyData: ").append(toIndentedString(signPasskeyData)).append("\n"); + sb.append(" trackingID: ").append(toIndentedString(trackingID)).append("\n"); sb.append("}"); return sb.toString(); } @@ -226,19 +254,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userID"); - openapiFields.add("assertionResponse"); - openapiFields.add("clientInformation"); - openapiFields.add("processID"); - openapiFields.add("signPasskeyData"); + openapiFields = new HashSet(Arrays.asList("userID", "assertionResponse", "clientInformation", "processID", "signPasskeyData", "trackingID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("assertionResponse"); - openapiRequiredFields.add("clientInformation"); - openapiRequiredFields.add("processID"); + openapiRequiredFields = new HashSet(Arrays.asList("userID", "assertionResponse", "clientInformation", "processID", "trackingID")); } /** @@ -250,7 +269,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyLoginFinishReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyLoginFinishReq is not found in the empty JSON string", PasskeyLoginFinishReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyLoginFinishReq is not found in the empty JSON string", PasskeyLoginFinishReq.openapiRequiredFields.toString())); } } @@ -258,27 +277,30 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyLoginFinishReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyLoginFinishReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyLoginFinishReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyLoginFinishReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("assertionResponse").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `assertionResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionResponse").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `assertionResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionResponse").toString())); } // validate the required field `clientInformation` ClientInformation.validateJsonElement(jsonObj.get("clientInformation")); if (!jsonObj.get("processID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + } + if (!jsonObj.get("trackingID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `trackingID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trackingID").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java index d6ad2bc..aaac672 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyData; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyLoginFinishRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginFinishRsp { public static final String SERIALIZED_NAME_PASSKEY_DATA = "passkeyData"; @SerializedName(SERIALIZED_NAME_PASSKEY_DATA) @@ -148,13 +150,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("passkeyData"); - openapiFields.add("signedPasskeyData"); + openapiFields = new HashSet(Arrays.asList("passkeyData", "signedPasskeyData")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("passkeyData"); + openapiRequiredFields = new HashSet(Arrays.asList("passkeyData")); } /** @@ -166,7 +165,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyLoginFinishRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyLoginFinishRsp is not found in the empty JSON string", PasskeyLoginFinishRsp.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyLoginFinishRsp is not found in the empty JSON string", PasskeyLoginFinishRsp.openapiRequiredFields.toString())); } } @@ -174,21 +173,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyLoginFinishRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyLoginFinishRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyLoginFinishRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyLoginFinishRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `passkeyData` PasskeyData.validateJsonElement(jsonObj.get("passkeyData")); if ((jsonObj.get("signedPasskeyData") != null && !jsonObj.get("signedPasskeyData").isJsonNull()) && !jsonObj.get("signedPasskeyData").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `signedPasskeyData` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signedPasskeyData").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signedPasskeyData` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signedPasskeyData").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java b/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java index 745dc47..7214e9c 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ClientInformation; import com.corbado.generated.model.CrossDeviceAuthenticationStrategy; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyLoginStartReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginStartReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) @@ -201,18 +203,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userID"); - openapiFields.add("clientInformation"); - openapiFields.add("crossDeviceAuthenticationStrategy"); - openapiFields.add("processID"); + openapiFields = new HashSet(Arrays.asList("userID", "clientInformation", "crossDeviceAuthenticationStrategy", "processID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("clientInformation"); - openapiRequiredFields.add("crossDeviceAuthenticationStrategy"); - openapiRequiredFields.add("processID"); + openapiRequiredFields = new HashSet(Arrays.asList("userID", "clientInformation", "crossDeviceAuthenticationStrategy", "processID")); } /** @@ -224,7 +218,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyLoginStartReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyLoginStartReq is not found in the empty JSON string", PasskeyLoginStartReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyLoginStartReq is not found in the empty JSON string", PasskeyLoginStartReq.openapiRequiredFields.toString())); } } @@ -232,26 +226,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyLoginStartReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyLoginStartReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyLoginStartReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyLoginStartReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } // validate the required field `clientInformation` ClientInformation.validateJsonElement(jsonObj.get("clientInformation")); // validate the required field `crossDeviceAuthenticationStrategy` CrossDeviceAuthenticationStrategy.validateJsonElement(jsonObj.get("crossDeviceAuthenticationStrategy")); if (!jsonObj.get("processID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java b/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java index ca7c065..e4d31a6 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.DecisionInsights; import com.corbado.generated.model.DetectionInsights; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyLoginStartRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginStartRsp { public static final String SERIALIZED_NAME_LOGIN_ALLOW = "loginAllow"; @SerializedName(SERIALIZED_NAME_LOGIN_ALLOW) @@ -201,18 +203,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("loginAllow"); - openapiFields.add("assertionOptions"); - openapiFields.add("detectionInsights"); - openapiFields.add("decisionInsights"); + openapiFields = new HashSet(Arrays.asList("loginAllow", "assertionOptions", "detectionInsights", "decisionInsights")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("loginAllow"); - openapiRequiredFields.add("assertionOptions"); - openapiRequiredFields.add("detectionInsights"); - openapiRequiredFields.add("decisionInsights"); + openapiRequiredFields = new HashSet(Arrays.asList("loginAllow", "assertionOptions", "detectionInsights", "decisionInsights")); } /** @@ -224,7 +218,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyLoginStartRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyLoginStartRsp is not found in the empty JSON string", PasskeyLoginStartRsp.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyLoginStartRsp is not found in the empty JSON string", PasskeyLoginStartRsp.openapiRequiredFields.toString())); } } @@ -232,19 +226,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyLoginStartRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyLoginStartRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyLoginStartRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyLoginStartRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("assertionOptions").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `assertionOptions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionOptions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `assertionOptions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionOptions").toString())); } // validate the required field `detectionInsights` DetectionInsights.validateJsonElement(jsonObj.get("detectionInsights")); diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java index 15857c2..2bbc3d8 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyMediationFinishErrorAlternativeProject */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishErrorAlternativeProject { /** * Gets or Sets type @@ -197,14 +199,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("alternativeProjectName"); + openapiFields = new HashSet(Arrays.asList("type", "alternativeProjectName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("alternativeProjectName"); + openapiRequiredFields = new HashSet(Arrays.asList("type", "alternativeProjectName")); } /** @@ -216,7 +214,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyMediationFinishErrorAlternativeProject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyMediationFinishErrorAlternativeProject is not found in the empty JSON string", PasskeyMediationFinishErrorAlternativeProject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyMediationFinishErrorAlternativeProject is not found in the empty JSON string", PasskeyMediationFinishErrorAlternativeProject.openapiRequiredFields.toString())); } } @@ -224,24 +222,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyMediationFinishErrorAlternativeProject.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishErrorAlternativeProject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishErrorAlternativeProject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyMediationFinishErrorAlternativeProject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); if (!jsonObj.get("alternativeProjectName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `alternativeProjectName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("alternativeProjectName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `alternativeProjectName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("alternativeProjectName").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java index 9edd6c2..39facaa 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyMediationFinishErrorCredentialDeleted */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishErrorCredentialDeleted { /** * Gets or Sets type @@ -171,12 +173,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -188,7 +188,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyMediationFinishErrorCredentialDeleted.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyMediationFinishErrorCredentialDeleted is not found in the empty JSON string", PasskeyMediationFinishErrorCredentialDeleted.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyMediationFinishErrorCredentialDeleted is not found in the empty JSON string", PasskeyMediationFinishErrorCredentialDeleted.openapiRequiredFields.toString())); } } @@ -196,19 +196,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyMediationFinishErrorCredentialDeleted.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishErrorCredentialDeleted` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishErrorCredentialDeleted` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyMediationFinishErrorCredentialDeleted.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `type` TypeEnum.validateJsonElement(jsonObj.get("type")); diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java index 3c618c9..91f7b39 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ClientInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyMediationFinishReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishReq { public static final String SERIALIZED_NAME_ASSERTION_RESPONSE = "assertionResponse"; @SerializedName(SERIALIZED_NAME_ASSERTION_RESPONSE) @@ -71,6 +73,11 @@ public class PasskeyMediationFinishReq { @javax.annotation.Nullable private Boolean signPasskeyData; + public static final String SERIALIZED_NAME_TRACKING_I_D = "trackingID"; + @SerializedName(SERIALIZED_NAME_TRACKING_I_D) + @javax.annotation.Nonnull + private String trackingID; + public PasskeyMediationFinishReq() { } @@ -150,6 +157,25 @@ public void setSignPasskeyData(@javax.annotation.Nullable Boolean signPasskeyDat } + public PasskeyMediationFinishReq trackingID(@javax.annotation.Nonnull String trackingID) { + this.trackingID = trackingID; + return this; + } + + /** + * Get trackingID + * @return trackingID + */ + @javax.annotation.Nonnull + public String getTrackingID() { + return trackingID; + } + + public void setTrackingID(@javax.annotation.Nonnull String trackingID) { + this.trackingID = trackingID; + } + + @Override public boolean equals(Object o) { @@ -163,12 +189,13 @@ public boolean equals(Object o) { return Objects.equals(this.assertionResponse, passkeyMediationFinishReq.assertionResponse) && Objects.equals(this.clientInformation, passkeyMediationFinishReq.clientInformation) && Objects.equals(this.processID, passkeyMediationFinishReq.processID) && - Objects.equals(this.signPasskeyData, passkeyMediationFinishReq.signPasskeyData); + Objects.equals(this.signPasskeyData, passkeyMediationFinishReq.signPasskeyData) && + Objects.equals(this.trackingID, passkeyMediationFinishReq.trackingID); } @Override public int hashCode() { - return Objects.hash(assertionResponse, clientInformation, processID, signPasskeyData); + return Objects.hash(assertionResponse, clientInformation, processID, signPasskeyData, trackingID); } @Override @@ -179,6 +206,7 @@ public String toString() { sb.append(" clientInformation: ").append(toIndentedString(clientInformation)).append("\n"); sb.append(" processID: ").append(toIndentedString(processID)).append("\n"); sb.append(" signPasskeyData: ").append(toIndentedString(signPasskeyData)).append("\n"); + sb.append(" trackingID: ").append(toIndentedString(trackingID)).append("\n"); sb.append("}"); return sb.toString(); } @@ -200,17 +228,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("assertionResponse"); - openapiFields.add("clientInformation"); - openapiFields.add("processID"); - openapiFields.add("signPasskeyData"); + openapiFields = new HashSet(Arrays.asList("assertionResponse", "clientInformation", "processID", "signPasskeyData", "trackingID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("assertionResponse"); - openapiRequiredFields.add("clientInformation"); - openapiRequiredFields.add("processID"); + openapiRequiredFields = new HashSet(Arrays.asList("assertionResponse", "clientInformation", "processID", "trackingID")); } /** @@ -222,7 +243,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyMediationFinishReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyMediationFinishReq is not found in the empty JSON string", PasskeyMediationFinishReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyMediationFinishReq is not found in the empty JSON string", PasskeyMediationFinishReq.openapiRequiredFields.toString())); } } @@ -230,24 +251,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyMediationFinishReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyMediationFinishReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("assertionResponse").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `assertionResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionResponse").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `assertionResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionResponse").toString())); } // validate the required field `clientInformation` ClientInformation.validateJsonElement(jsonObj.get("clientInformation")); if (!jsonObj.get("processID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `processID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("processID").toString())); + } + if (!jsonObj.get("trackingID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `trackingID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trackingID").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java index fc2fd43..8b3e5cf 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyData; import com.corbado.generated.model.PasskeyMediationFinishRspError; import com.google.gson.TypeAdapter; @@ -44,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyMediationFinishRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishRsp { public static final String SERIALIZED_NAME_PASSKEY_DATA = "passkeyData"; @SerializedName(SERIALIZED_NAME_PASSKEY_DATA) @@ -175,14 +177,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("passkeyData"); - openapiFields.add("signedPasskeyData"); - openapiFields.add("error"); + openapiFields = new HashSet(Arrays.asList("passkeyData", "signedPasskeyData", "error")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("passkeyData"); + openapiRequiredFields = new HashSet(Arrays.asList("passkeyData")); } /** @@ -194,7 +192,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyMediationFinishRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyMediationFinishRsp is not found in the empty JSON string", PasskeyMediationFinishRsp.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyMediationFinishRsp is not found in the empty JSON string", PasskeyMediationFinishRsp.openapiRequiredFields.toString())); } } @@ -202,21 +200,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyMediationFinishRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyMediationFinishRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyMediationFinishRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `passkeyData` PasskeyData.validateJsonElement(jsonObj.get("passkeyData")); if ((jsonObj.get("signedPasskeyData") != null && !jsonObj.get("signedPasskeyData").isJsonNull()) && !jsonObj.get("signedPasskeyData").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `signedPasskeyData` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signedPasskeyData").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signedPasskeyData` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signedPasskeyData").toString())); } // validate the optional field `error` if (jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) { diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java index 5eb168d..403eb4f 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasskeyMediationFinishErrorAlternativeProject; import com.corbado.generated.model.PasskeyMediationFinishErrorCredentialDeleted; import com.google.gson.TypeAdapter; @@ -36,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Locale; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -59,7 +61,7 @@ import com.corbado.generated.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishRspError extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(PasskeyMediationFinishRspError.class.getName()); @@ -115,7 +117,7 @@ public PasskeyMediationFinishRspError read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'PasskeyMediationFinishErrorCredentialDeleted'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for PasskeyMediationFinishErrorCredentialDeleted failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for PasskeyMediationFinishErrorCredentialDeleted failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'PasskeyMediationFinishErrorCredentialDeleted'", e); } // deserialize PasskeyMediationFinishErrorAlternativeProject @@ -127,7 +129,7 @@ public PasskeyMediationFinishRspError read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data matches schema 'PasskeyMediationFinishErrorAlternativeProject'"); } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format("Deserialization for PasskeyMediationFinishErrorAlternativeProject failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for PasskeyMediationFinishErrorAlternativeProject failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'PasskeyMediationFinishErrorAlternativeProject'", e); } @@ -137,7 +139,7 @@ public PasskeyMediationFinishRspError read(JsonReader in) throws IOException { return ret; } - throw new IOException(String.format("Failed deserialization for PasskeyMediationFinishRspError: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for PasskeyMediationFinishRspError: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -236,7 +238,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PasskeyMediationFinishErrorCredentialDeleted.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for PasskeyMediationFinishErrorCredentialDeleted failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for PasskeyMediationFinishErrorCredentialDeleted failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with PasskeyMediationFinishErrorAlternativeProject @@ -244,11 +246,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PasskeyMediationFinishErrorAlternativeProject.validateJsonElement(jsonElement); validCount++; } catch (Exception e) { - errorMessages.add(String.format("Deserialization for PasskeyMediationFinishErrorAlternativeProject failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for PasskeyMediationFinishErrorAlternativeProject failed with `%s`.", e.getMessage())); // continue to the next one } if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for PasskeyMediationFinishRspError with oneOf schemas: PasskeyMediationFinishErrorAlternativeProject, PasskeyMediationFinishErrorCredentialDeleted. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for PasskeyMediationFinishRspError with oneOf schemas: PasskeyMediationFinishErrorAlternativeProject, PasskeyMediationFinishErrorCredentialDeleted. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java b/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java index e480539..d4703d2 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.ClientInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyMediationStartReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationStartReq { public static final String SERIALIZED_NAME_CLIENT_INFORMATION = "clientInformation"; @SerializedName(SERIALIZED_NAME_CLIENT_INFORMATION) @@ -122,12 +124,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientInformation"); + openapiFields = new HashSet(Arrays.asList("clientInformation")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("clientInformation"); + openapiRequiredFields = new HashSet(Arrays.asList("clientInformation")); } /** @@ -139,7 +139,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyMediationStartReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyMediationStartReq is not found in the empty JSON string", PasskeyMediationStartReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyMediationStartReq is not found in the empty JSON string", PasskeyMediationStartReq.openapiRequiredFields.toString())); } } @@ -147,14 +147,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyMediationStartReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyMediationStartReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyMediationStartReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyMediationStartReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java b/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java index 9d88359..9d0f88a 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyMediationStartRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationStartRsp { public static final String SERIALIZED_NAME_LOGIN_ALLOW = "loginAllow"; @SerializedName(SERIALIZED_NAME_LOGIN_ALLOW) @@ -147,14 +149,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("loginAllow"); - openapiFields.add("assertionOptions"); + openapiFields = new HashSet(Arrays.asList("loginAllow", "assertionOptions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("loginAllow"); - openapiRequiredFields.add("assertionOptions"); + openapiRequiredFields = new HashSet(Arrays.asList("loginAllow", "assertionOptions")); } /** @@ -166,7 +164,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyMediationStartRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyMediationStartRsp is not found in the empty JSON string", PasskeyMediationStartRsp.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyMediationStartRsp is not found in the empty JSON string", PasskeyMediationStartRsp.openapiRequiredFields.toString())); } } @@ -174,19 +172,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyMediationStartRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyMediationStartRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyMediationStartRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyMediationStartRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("assertionOptions").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `assertionOptions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionOptions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `assertionOptions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assertionOptions").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java b/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java index 7fa48cf..fbf788b 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyPostLoginReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyPostLoginReq { public static final String SERIALIZED_NAME_SIGNED_PASSKEY_DATA = "signedPasskeyData"; @SerializedName(SERIALIZED_NAME_SIGNED_PASSKEY_DATA) @@ -121,12 +123,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("signedPasskeyData"); + openapiFields = new HashSet(Arrays.asList("signedPasskeyData")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("signedPasskeyData"); + openapiRequiredFields = new HashSet(Arrays.asList("signedPasskeyData")); } /** @@ -138,7 +138,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyPostLoginReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyPostLoginReq is not found in the empty JSON string", PasskeyPostLoginReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyPostLoginReq is not found in the empty JSON string", PasskeyPostLoginReq.openapiRequiredFields.toString())); } } @@ -146,19 +146,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyPostLoginReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyPostLoginReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyPostLoginReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyPostLoginReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("signedPasskeyData").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `signedPasskeyData` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signedPasskeyData").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signedPasskeyData` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signedPasskeyData").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java b/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java index 615900a..6ac9fff 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasskeyPostLoginRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyPostLoginRsp { public static final String SERIALIZED_NAME_SESSION = "session"; @SerializedName(SERIALIZED_NAME_SESSION) @@ -121,12 +123,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("session"); + openapiFields = new HashSet(Arrays.asList("session")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("session"); + openapiRequiredFields = new HashSet(Arrays.asList("session")); } /** @@ -138,7 +138,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasskeyPostLoginRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasskeyPostLoginRsp is not found in the empty JSON string", PasskeyPostLoginRsp.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyPostLoginRsp is not found in the empty JSON string", PasskeyPostLoginRsp.openapiRequiredFields.toString())); } } @@ -146,19 +146,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasskeyPostLoginRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasskeyPostLoginRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyPostLoginRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasskeyPostLoginRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("session").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `session` to be a primitive type in the JSON string but got `%s`", jsonObj.get("session").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `session` to be a primitive type in the JSON string but got `%s`", jsonObj.get("session").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java new file mode 100644 index 0000000..67eb1e9 --- /dev/null +++ b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java @@ -0,0 +1,243 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * PasskeyVerifySignedDataReq + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class PasskeyVerifySignedDataReq { + public static final String SERIALIZED_NAME_SIGNED_PASSKEY_DATA = "signedPasskeyData"; + @SerializedName(SERIALIZED_NAME_SIGNED_PASSKEY_DATA) + @javax.annotation.Nonnull + private String signedPasskeyData; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nonnull + private String username; + + public PasskeyVerifySignedDataReq() { + } + + public PasskeyVerifySignedDataReq signedPasskeyData(@javax.annotation.Nonnull String signedPasskeyData) { + this.signedPasskeyData = signedPasskeyData; + return this; + } + + /** + * Get signedPasskeyData + * @return signedPasskeyData + */ + @javax.annotation.Nonnull + public String getSignedPasskeyData() { + return signedPasskeyData; + } + + public void setSignedPasskeyData(@javax.annotation.Nonnull String signedPasskeyData) { + this.signedPasskeyData = signedPasskeyData; + } + + + public PasskeyVerifySignedDataReq username(@javax.annotation.Nonnull String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + */ + @javax.annotation.Nonnull + public String getUsername() { + return username; + } + + public void setUsername(@javax.annotation.Nonnull String username) { + this.username = username; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PasskeyVerifySignedDataReq passkeyVerifySignedDataReq = (PasskeyVerifySignedDataReq) o; + return Objects.equals(this.signedPasskeyData, passkeyVerifySignedDataReq.signedPasskeyData) && + Objects.equals(this.username, passkeyVerifySignedDataReq.username); + } + + @Override + public int hashCode() { + return Objects.hash(signedPasskeyData, username); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PasskeyVerifySignedDataReq {\n"); + sb.append(" signedPasskeyData: ").append(toIndentedString(signedPasskeyData)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("signedPasskeyData", "username")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("signedPasskeyData", "username")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PasskeyVerifySignedDataReq + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PasskeyVerifySignedDataReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyVerifySignedDataReq is not found in the empty JSON string", PasskeyVerifySignedDataReq.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PasskeyVerifySignedDataReq.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyVerifySignedDataReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PasskeyVerifySignedDataReq.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("signedPasskeyData").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signedPasskeyData` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signedPasskeyData").toString())); + } + if (!jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PasskeyVerifySignedDataReq.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PasskeyVerifySignedDataReq' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PasskeyVerifySignedDataReq.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PasskeyVerifySignedDataReq value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PasskeyVerifySignedDataReq read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PasskeyVerifySignedDataReq given an JSON string + * + * @param jsonString JSON string + * @return An instance of PasskeyVerifySignedDataReq + * @throws IOException if the JSON string is invalid with respect to PasskeyVerifySignedDataReq + */ + public static PasskeyVerifySignedDataReq fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PasskeyVerifySignedDataReq.class); + } + + /** + * Convert an instance of PasskeyVerifySignedDataReq to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java new file mode 100644 index 0000000..c532e18 --- /dev/null +++ b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java @@ -0,0 +1,274 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * PasskeyVerifySignedDataRsp + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class PasskeyVerifySignedDataRsp { + /** + * Gets or Sets verificationResult + */ + @JsonAdapter(VerificationResultEnum.Adapter.class) + public enum VerificationResultEnum { + SUCCESS("success"), + + INVALID_SIGNATURE("invalid_signature"), + + INVALID_CHALLENGE("invalid_challenge"), + + USER_MISMATCH("user_mismatch"), + + GENERIC_ERROR("generic_error"); + + private String value; + + VerificationResultEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static VerificationResultEnum fromValue(String value) { + for (VerificationResultEnum b : VerificationResultEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final VerificationResultEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public VerificationResultEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return VerificationResultEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + VerificationResultEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_VERIFICATION_RESULT = "verificationResult"; + @SerializedName(SERIALIZED_NAME_VERIFICATION_RESULT) + @javax.annotation.Nonnull + private VerificationResultEnum verificationResult; + + public PasskeyVerifySignedDataRsp() { + } + + public PasskeyVerifySignedDataRsp verificationResult(@javax.annotation.Nonnull VerificationResultEnum verificationResult) { + this.verificationResult = verificationResult; + return this; + } + + /** + * Get verificationResult + * @return verificationResult + */ + @javax.annotation.Nonnull + public VerificationResultEnum getVerificationResult() { + return verificationResult; + } + + public void setVerificationResult(@javax.annotation.Nonnull VerificationResultEnum verificationResult) { + this.verificationResult = verificationResult; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PasskeyVerifySignedDataRsp passkeyVerifySignedDataRsp = (PasskeyVerifySignedDataRsp) o; + return Objects.equals(this.verificationResult, passkeyVerifySignedDataRsp.verificationResult); + } + + @Override + public int hashCode() { + return Objects.hash(verificationResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PasskeyVerifySignedDataRsp {\n"); + sb.append(" verificationResult: ").append(toIndentedString(verificationResult)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("verificationResult")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("verificationResult")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PasskeyVerifySignedDataRsp + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PasskeyVerifySignedDataRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasskeyVerifySignedDataRsp is not found in the empty JSON string", PasskeyVerifySignedDataRsp.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PasskeyVerifySignedDataRsp.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasskeyVerifySignedDataRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PasskeyVerifySignedDataRsp.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("verificationResult").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `verificationResult` to be a primitive type in the JSON string but got `%s`", jsonObj.get("verificationResult").toString())); + } + // validate the required field `verificationResult` + VerificationResultEnum.validateJsonElement(jsonObj.get("verificationResult")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PasskeyVerifySignedDataRsp.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PasskeyVerifySignedDataRsp' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PasskeyVerifySignedDataRsp.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PasskeyVerifySignedDataRsp value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PasskeyVerifySignedDataRsp read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PasskeyVerifySignedDataRsp given an JSON string + * + * @param jsonString JSON string + * @return An instance of PasskeyVerifySignedDataRsp + * @throws IOException if the JSON string is invalid with respect to PasskeyVerifySignedDataRsp + */ + public static PasskeyVerifySignedDataRsp fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PasskeyVerifySignedDataRsp.class); + } + + /** + * Convert an instance of PasskeyVerifySignedDataRsp to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/PasswordManager.java b/src/main/java/com/corbado/generated/model/PasswordManager.java index 3a11b3f..eb88540 100644 --- a/src/main/java/com/corbado/generated/model/PasswordManager.java +++ b/src/main/java/com/corbado/generated/model/PasswordManager.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasswordManager */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasswordManager { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -303,26 +305,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("userID"); - openapiFields.add("clientEnvID"); - openapiFields.add("credentialID"); - openapiFields.add("aaguid"); - openapiFields.add("status"); - openapiFields.add("score"); - openapiFields.add("createdMs"); + openapiFields = new HashSet(Arrays.asList("id", "userID", "clientEnvID", "credentialID", "aaguid", "status", "score", "createdMs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("clientEnvID"); - openapiRequiredFields.add("credentialID"); - openapiRequiredFields.add("aaguid"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("score"); - openapiRequiredFields.add("createdMs"); + openapiRequiredFields = new HashSet(Arrays.asList("id", "userID", "clientEnvID", "credentialID", "aaguid", "status", "score", "createdMs")); } /** @@ -334,7 +320,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasswordManager.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasswordManager is not found in the empty JSON string", PasswordManager.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasswordManager is not found in the empty JSON string", PasswordManager.openapiRequiredFields.toString())); } } @@ -342,34 +328,34 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasswordManager.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasswordManager` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasswordManager` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasswordManager.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("clientEnvID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientEnvID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientEnvID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientEnvID").toString())); } if (!jsonObj.get("credentialID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `credentialID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialID").toString())); } if (!jsonObj.get("aaguid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `aaguid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aaguid").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `aaguid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aaguid").toString())); } if (!jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/PasswordManagerList.java b/src/main/java/com/corbado/generated/model/PasswordManagerList.java index 28381a2..7d5b04b 100644 --- a/src/main/java/com/corbado/generated/model/PasswordManagerList.java +++ b/src/main/java/com/corbado/generated/model/PasswordManagerList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.PasswordManager; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * PasswordManagerList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasswordManagerList { public static final String SERIALIZED_NAME_PASSWORD_MANAGERS = "passwordManagers"; @SerializedName(SERIALIZED_NAME_PASSWORD_MANAGERS) @@ -132,12 +134,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("passwordManagers"); + openapiFields = new HashSet(Arrays.asList("passwordManagers")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("passwordManagers"); + openapiRequiredFields = new HashSet(Arrays.asList("passwordManagers")); } /** @@ -149,7 +149,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PasswordManagerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PasswordManagerList is not found in the empty JSON string", PasswordManagerList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PasswordManagerList is not found in the empty JSON string", PasswordManagerList.openapiRequiredFields.toString())); } } @@ -157,20 +157,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!PasswordManagerList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PasswordManagerList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PasswordManagerList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PasswordManagerList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("passwordManagers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `passwordManagers` to be an array in the JSON string but got `%s`", jsonObj.get("passwordManagers").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `passwordManagers` to be an array in the JSON string but got `%s`", jsonObj.get("passwordManagers").toString())); } JsonArray jsonArraypasswordManagers = jsonObj.getAsJsonArray("passwordManagers"); diff --git a/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java b/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java index cc302d0..aa88a8f 100644 --- a/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java +++ b/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * ProjectConfigUpdateCnameReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ProjectConfigUpdateCnameReq { public static final String SERIALIZED_NAME_CNAME = "cname"; @SerializedName(SERIALIZED_NAME_CNAME) @@ -121,12 +123,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cname"); + openapiFields = new HashSet(Arrays.asList("cname")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("cname"); + openapiRequiredFields = new HashSet(Arrays.asList("cname")); } /** @@ -138,7 +138,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ProjectConfigUpdateCnameReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ProjectConfigUpdateCnameReq is not found in the empty JSON string", ProjectConfigUpdateCnameReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ProjectConfigUpdateCnameReq is not found in the empty JSON string", ProjectConfigUpdateCnameReq.openapiRequiredFields.toString())); } } @@ -146,19 +146,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ProjectConfigUpdateCnameReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ProjectConfigUpdateCnameReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ProjectConfigUpdateCnameReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ProjectConfigUpdateCnameReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("cname").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/SessionList.java b/src/main/java/com/corbado/generated/model/SessionList.java index 12d708f..9f94f7d 100644 --- a/src/main/java/com/corbado/generated/model/SessionList.java +++ b/src/main/java/com/corbado/generated/model/SessionList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.Paging; -import com.corbado.generated.model.Session; +import java.util.Locale; +import com.corbado.generated.model.SessionListSessionsInner; +import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,33 +47,34 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * SessionList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SessionList { public static final String SERIALIZED_NAME_SESSIONS = "sessions"; @SerializedName(SERIALIZED_NAME_SESSIONS) @javax.annotation.Nonnull - private List sessions = new ArrayList<>(); + private List sessions = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private Paging paging; + private UserListPaging paging; public SessionList() { } - public SessionList sessions(@javax.annotation.Nonnull List sessions) { + public SessionList sessions(@javax.annotation.Nonnull List sessions) { this.sessions = sessions; return this; } - public SessionList addSessionsItem(Session sessionsItem) { + public SessionList addSessionsItem(SessionListSessionsInner sessionsItem) { if (this.sessions == null) { this.sessions = new ArrayList<>(); } @@ -85,16 +87,16 @@ public SessionList addSessionsItem(Session sessionsItem) { * @return sessions */ @javax.annotation.Nonnull - public List getSessions() { + public List getSessions() { return sessions; } - public void setSessions(@javax.annotation.Nonnull List sessions) { + public void setSessions(@javax.annotation.Nonnull List sessions) { this.sessions = sessions; } - public SessionList paging(@javax.annotation.Nonnull Paging paging) { + public SessionList paging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; return this; } @@ -104,11 +106,11 @@ public SessionList paging(@javax.annotation.Nonnull Paging paging) { * @return paging */ @javax.annotation.Nonnull - public Paging getPaging() { + public UserListPaging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull Paging paging) { + public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; } @@ -159,14 +161,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("sessions"); - openapiFields.add("paging"); + openapiFields = new HashSet(Arrays.asList("sessions", "paging")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("sessions"); - openapiRequiredFields.add("paging"); + openapiRequiredFields = new HashSet(Arrays.asList("sessions", "paging")); } /** @@ -178,7 +176,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SessionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SessionList is not found in the empty JSON string", SessionList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SessionList is not found in the empty JSON string", SessionList.openapiRequiredFields.toString())); } } @@ -186,29 +184,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!SessionList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SessionList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SessionList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SessionList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("sessions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sessions` to be an array in the JSON string but got `%s`", jsonObj.get("sessions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sessions` to be an array in the JSON string but got `%s`", jsonObj.get("sessions").toString())); } JsonArray jsonArraysessions = jsonObj.getAsJsonArray("sessions"); // validate the required field `sessions` (array) for (int i = 0; i < jsonArraysessions.size(); i++) { - Session.validateJsonElement(jsonArraysessions.get(i)); + SessionListSessionsInner.validateJsonElement(jsonArraysessions.get(i)); }; // validate the required field `paging` - Paging.validateJsonElement(jsonObj.get("paging")); + UserListPaging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/Session.java b/src/main/java/com/corbado/generated/model/SessionListSessionsInner.java similarity index 54% rename from src/main/java/com/corbado/generated/model/Session.java rename to src/main/java/com/corbado/generated/model/SessionListSessionsInner.java index afa9321..93d13c2 100644 --- a/src/main/java/com/corbado/generated/model/Session.java +++ b/src/main/java/com/corbado/generated/model/SessionListSessionsInner.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,7 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.SessionStatus; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,14 +43,15 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * Session + * SessionListSessionsInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") -public class Session { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class SessionListSessionsInner { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) @javax.annotation.Nonnull @@ -81,21 +82,79 @@ public class Session { @javax.annotation.Nonnull private Long expiresMs; + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + ACTIVE("active"), + + LOGGED_OUT("logged_out"), + + EXPIRED("expired"), + + INACTIVITY_REACHED("inactivity_reached"), + + REVOKED("revoked"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + StatusEnum.fromValue(value); + } + } + public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nonnull - private SessionStatus status; + private StatusEnum status; - public Session() { + public SessionListSessionsInner() { } - public Session sessionID(@javax.annotation.Nonnull String sessionID) { + public SessionListSessionsInner sessionID(@javax.annotation.Nonnull String sessionID) { this.sessionID = sessionID; return this; } /** - * Get sessionID + * Unique identifier of the session. * @return sessionID */ @javax.annotation.Nonnull @@ -108,13 +167,13 @@ public void setSessionID(@javax.annotation.Nonnull String sessionID) { } - public Session userID(@javax.annotation.Nonnull String userID) { + public SessionListSessionsInner userID(@javax.annotation.Nonnull String userID) { this.userID = userID; return this; } /** - * Get userID + * Unique identifier of the user. * @return userID */ @javax.annotation.Nonnull @@ -127,13 +186,13 @@ public void setUserID(@javax.annotation.Nonnull String userID) { } - public Session identifierValue(@javax.annotation.Nonnull String identifierValue) { + public SessionListSessionsInner identifierValue(@javax.annotation.Nonnull String identifierValue) { this.identifierValue = identifierValue; return this; } /** - * Get identifierValue + * Login identifier of the user (here email address). * @return identifierValue */ @javax.annotation.Nonnull @@ -146,13 +205,13 @@ public void setIdentifierValue(@javax.annotation.Nonnull String identifierValue) } - public Session createdMs(@javax.annotation.Nonnull Long createdMs) { + public SessionListSessionsInner createdMs(@javax.annotation.Nonnull Long createdMs) { this.createdMs = createdMs; return this; } /** - * Get createdMs + * Unix time of when the session was created (in milliseconds elapsed since January 1, 1970, 00:00:00 UTC). * @return createdMs */ @javax.annotation.Nonnull @@ -165,13 +224,13 @@ public void setCreatedMs(@javax.annotation.Nonnull Long createdMs) { } - public Session lastActionMs(@javax.annotation.Nonnull Long lastActionMs) { + public SessionListSessionsInner lastActionMs(@javax.annotation.Nonnull Long lastActionMs) { this.lastActionMs = lastActionMs; return this; } /** - * Get lastActionMs + * Unix time of when last action (e.g., refresh) on session occurred (in milliseconds elapsed since January 1, 1970, 00:00:00 UTC). * @return lastActionMs */ @javax.annotation.Nonnull @@ -184,13 +243,13 @@ public void setLastActionMs(@javax.annotation.Nonnull Long lastActionMs) { } - public Session expiresMs(@javax.annotation.Nonnull Long expiresMs) { + public SessionListSessionsInner expiresMs(@javax.annotation.Nonnull Long expiresMs) { this.expiresMs = expiresMs; return this; } /** - * Get expiresMs + * Unix time of when the session expires (in milliseconds elapsed since January 1, 1970, 00:00:00 UTC). * @return expiresMs */ @javax.annotation.Nonnull @@ -203,7 +262,7 @@ public void setExpiresMs(@javax.annotation.Nonnull Long expiresMs) { } - public Session status(@javax.annotation.Nonnull SessionStatus status) { + public SessionListSessionsInner status(@javax.annotation.Nonnull StatusEnum status) { this.status = status; return this; } @@ -213,11 +272,11 @@ public Session status(@javax.annotation.Nonnull SessionStatus status) { * @return status */ @javax.annotation.Nonnull - public SessionStatus getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(@javax.annotation.Nonnull SessionStatus status) { + public void setStatus(@javax.annotation.Nonnull StatusEnum status) { this.status = status; } @@ -231,14 +290,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Session session = (Session) o; - return Objects.equals(this.sessionID, session.sessionID) && - Objects.equals(this.userID, session.userID) && - Objects.equals(this.identifierValue, session.identifierValue) && - Objects.equals(this.createdMs, session.createdMs) && - Objects.equals(this.lastActionMs, session.lastActionMs) && - Objects.equals(this.expiresMs, session.expiresMs) && - Objects.equals(this.status, session.status); + SessionListSessionsInner sessionListSessionsInner = (SessionListSessionsInner) o; + return Objects.equals(this.sessionID, sessionListSessionsInner.sessionID) && + Objects.equals(this.userID, sessionListSessionsInner.userID) && + Objects.equals(this.identifierValue, sessionListSessionsInner.identifierValue) && + Objects.equals(this.createdMs, sessionListSessionsInner.createdMs) && + Objects.equals(this.lastActionMs, sessionListSessionsInner.lastActionMs) && + Objects.equals(this.expiresMs, sessionListSessionsInner.expiresMs) && + Objects.equals(this.status, sessionListSessionsInner.status); } @Override @@ -249,7 +308,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Session {\n"); + sb.append("class SessionListSessionsInner {\n"); sb.append(" sessionID: ").append(toIndentedString(sessionID)).append("\n"); sb.append(" userID: ").append(toIndentedString(userID)).append("\n"); sb.append(" identifierValue: ").append(toIndentedString(identifierValue)).append("\n"); @@ -278,87 +337,76 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("sessionID"); - openapiFields.add("userID"); - openapiFields.add("identifierValue"); - openapiFields.add("createdMs"); - openapiFields.add("lastActionMs"); - openapiFields.add("expiresMs"); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("sessionID", "userID", "identifierValue", "createdMs", "lastActionMs", "expiresMs", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("sessionID"); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("identifierValue"); - openapiRequiredFields.add("createdMs"); - openapiRequiredFields.add("lastActionMs"); - openapiRequiredFields.add("expiresMs"); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("sessionID", "userID", "identifierValue", "createdMs", "lastActionMs", "expiresMs", "status")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Session + * @throws IOException if the JSON Element is invalid with respect to SessionListSessionsInner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!Session.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Session is not found in the empty JSON string", Session.openapiRequiredFields.toString())); + if (!SessionListSessionsInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SessionListSessionsInner is not found in the empty JSON string", SessionListSessionsInner.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!Session.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Session` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!SessionListSessionsInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SessionListSessionsInner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Session.openapiRequiredFields) { + for (String requiredField : SessionListSessionsInner.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("sessionID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sessionID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sessionID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sessionID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sessionID").toString())); } if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("identifierValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } // validate the required field `status` - SessionStatus.validateJsonElement(jsonObj.get("status")); + StatusEnum.validateJsonElement(jsonObj.get("status")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Session.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Session' and its subtypes + if (!SessionListSessionsInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SessionListSessionsInner' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Session.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SessionListSessionsInner.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, Session value) throws IOException { + public void write(JsonWriter out, SessionListSessionsInner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public Session read(JsonReader in) throws IOException { + public SessionListSessionsInner read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -369,18 +417,18 @@ public Session read(JsonReader in) throws IOException { } /** - * Create an instance of Session given an JSON string + * Create an instance of SessionListSessionsInner given an JSON string * * @param jsonString JSON string - * @return An instance of Session - * @throws IOException if the JSON string is invalid with respect to Session + * @return An instance of SessionListSessionsInner + * @throws IOException if the JSON string is invalid with respect to SessionListSessionsInner */ - public static Session fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Session.class); + public static SessionListSessionsInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SessionListSessionsInner.class); } /** - * Convert an instance of Session to an JSON string + * Convert an instance of SessionListSessionsInner to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/SessionStatus.java b/src/main/java/com/corbado/generated/model/SessionStatus.java deleted file mode 100644 index c93ffd2..0000000 --- a/src/main/java/com/corbado/generated/model/SessionStatus.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: support@corbado.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.corbado.generated.model; - -import java.util.Objects; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Gets or Sets sessionStatus - */ -@JsonAdapter(SessionStatus.Adapter.class) -public enum SessionStatus { - - ACTIVE("active"), - - LOGGED_OUT("logged_out"), - - EXPIRED("expired"), - - INACTIVITY_REACHED("inactivity_reached"), - - REVOKED("revoked"); - - private String value; - - SessionStatus(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static SessionStatus fromValue(String value) { - for (SessionStatus b : SessionStatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final SessionStatus enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public SessionStatus read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return SessionStatus.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - SessionStatus.fromValue(value); - } -} - diff --git a/src/main/java/com/corbado/generated/model/SocialAccount.java b/src/main/java/com/corbado/generated/model/SocialAccount.java index 7f867e8..b1dc6fe 100644 --- a/src/main/java/com/corbado/generated/model/SocialAccount.java +++ b/src/main/java/com/corbado/generated/model/SocialAccount.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +43,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * SocialAccount */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SocialAccount { public static final String SERIALIZED_NAME_SOCIAL_ACCOUNT_I_D = "socialAccountID"; @SerializedName(SERIALIZED_NAME_SOCIAL_ACCOUNT_I_D) @@ -94,7 +96,7 @@ public SocialAccount socialAccountID(@javax.annotation.Nonnull String socialAcco } /** - * Get socialAccountID + * Unique identifier of the social account. * @return socialAccountID */ @javax.annotation.Nonnull @@ -113,7 +115,7 @@ public SocialAccount providerType(@javax.annotation.Nonnull String providerType) } /** - * Get providerType + * Type of the social provider. * @return providerType */ @javax.annotation.Nonnull @@ -132,7 +134,7 @@ public SocialAccount identifierValue(@javax.annotation.Nonnull String identifier } /** - * Get identifierValue + * Login identifier of the user (here email address). * @return identifierValue */ @javax.annotation.Nonnull @@ -151,7 +153,7 @@ public SocialAccount userID(@javax.annotation.Nonnull String userID) { } /** - * Get userID + * Unique identifier of the user. * @return userID */ @javax.annotation.Nonnull @@ -170,7 +172,7 @@ public SocialAccount foreignID(@javax.annotation.Nonnull String foreignID) { } /** - * Get foreignID + * Unique identifier of the user in the social provider. * @return foreignID */ @javax.annotation.Nonnull @@ -189,7 +191,7 @@ public SocialAccount avatarURL(@javax.annotation.Nonnull String avatarURL) { } /** - * Get avatarURL + * URL of the avatar of the user in the social provider. * @return avatarURL */ @javax.annotation.Nonnull @@ -208,7 +210,7 @@ public SocialAccount fullName(@javax.annotation.Nonnull String fullName) { } /** - * Get fullName + * Full name of the user in the social provider. * @return fullName */ @javax.annotation.Nonnull @@ -277,24 +279,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("socialAccountID"); - openapiFields.add("providerType"); - openapiFields.add("identifierValue"); - openapiFields.add("userID"); - openapiFields.add("foreignID"); - openapiFields.add("avatarURL"); - openapiFields.add("fullName"); + openapiFields = new HashSet(Arrays.asList("socialAccountID", "providerType", "identifierValue", "userID", "foreignID", "avatarURL", "fullName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("socialAccountID"); - openapiRequiredFields.add("providerType"); - openapiRequiredFields.add("identifierValue"); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("foreignID"); - openapiRequiredFields.add("avatarURL"); - openapiRequiredFields.add("fullName"); + openapiRequiredFields = new HashSet(Arrays.asList("socialAccountID", "providerType", "identifierValue", "userID", "foreignID", "avatarURL", "fullName")); } /** @@ -306,7 +294,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SocialAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SocialAccount is not found in the empty JSON string", SocialAccount.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SocialAccount is not found in the empty JSON string", SocialAccount.openapiRequiredFields.toString())); } } @@ -314,37 +302,37 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!SocialAccount.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SocialAccount` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SocialAccount` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SocialAccount.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("socialAccountID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `socialAccountID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("socialAccountID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `socialAccountID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("socialAccountID").toString())); } if (!jsonObj.get("providerType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `providerType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `providerType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerType").toString())); } if (!jsonObj.get("identifierValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); } if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if (!jsonObj.get("foreignID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `foreignID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `foreignID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignID").toString())); } if (!jsonObj.get("avatarURL").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `avatarURL` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarURL").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `avatarURL` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarURL").toString())); } if (!jsonObj.get("fullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java b/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java index 6c266df..b95cf1d 100644 --- a/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java +++ b/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,7 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.SocialProviderType; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,18 +43,73 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * SocialAccountCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SocialAccountCreateReq { + /** + * Type of the social provider. + */ + @JsonAdapter(ProviderTypeEnum.Adapter.class) + public enum ProviderTypeEnum { + GOOGLE("google"), + + MICROSOFT("microsoft"), + + GITHUB("github"); + + private String value; + + ProviderTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProviderTypeEnum fromValue(String value) { + for (ProviderTypeEnum b : ProviderTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProviderTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProviderTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProviderTypeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ProviderTypeEnum.fromValue(value); + } + } + public static final String SERIALIZED_NAME_PROVIDER_TYPE = "providerType"; @SerializedName(SERIALIZED_NAME_PROVIDER_TYPE) @javax.annotation.Nonnull - private SocialProviderType providerType; + private ProviderTypeEnum providerType; public static final String SERIALIZED_NAME_IDENTIFIER_VALUE = "identifierValue"; @SerializedName(SERIALIZED_NAME_IDENTIFIER_VALUE) @@ -79,21 +134,21 @@ public class SocialAccountCreateReq { public SocialAccountCreateReq() { } - public SocialAccountCreateReq providerType(@javax.annotation.Nonnull SocialProviderType providerType) { + public SocialAccountCreateReq providerType(@javax.annotation.Nonnull ProviderTypeEnum providerType) { this.providerType = providerType; return this; } /** - * Get providerType + * Type of the social provider. * @return providerType */ @javax.annotation.Nonnull - public SocialProviderType getProviderType() { + public ProviderTypeEnum getProviderType() { return providerType; } - public void setProviderType(@javax.annotation.Nonnull SocialProviderType providerType) { + public void setProviderType(@javax.annotation.Nonnull ProviderTypeEnum providerType) { this.providerType = providerType; } @@ -104,7 +159,7 @@ public SocialAccountCreateReq identifierValue(@javax.annotation.Nonnull String i } /** - * Get identifierValue + * Login identifier of the user (here email address). * @return identifierValue */ @javax.annotation.Nonnull @@ -123,7 +178,7 @@ public SocialAccountCreateReq foreignID(@javax.annotation.Nonnull String foreign } /** - * Get foreignID + * Unique identifier of the user in the social provider. * @return foreignID */ @javax.annotation.Nonnull @@ -142,7 +197,7 @@ public SocialAccountCreateReq avatarURL(@javax.annotation.Nonnull String avatarU } /** - * Get avatarURL + * URL of the avatar of the user in the social provider. * @return avatarURL */ @javax.annotation.Nonnull @@ -161,7 +216,7 @@ public SocialAccountCreateReq fullName(@javax.annotation.Nonnull String fullName } /** - * Get fullName + * Full name of the user in the social provider. * @return fullName */ @javax.annotation.Nonnull @@ -226,20 +281,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("providerType"); - openapiFields.add("identifierValue"); - openapiFields.add("foreignID"); - openapiFields.add("avatarURL"); - openapiFields.add("fullName"); + openapiFields = new HashSet(Arrays.asList("providerType", "identifierValue", "foreignID", "avatarURL", "fullName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("providerType"); - openapiRequiredFields.add("identifierValue"); - openapiRequiredFields.add("foreignID"); - openapiRequiredFields.add("avatarURL"); - openapiRequiredFields.add("fullName"); + openapiRequiredFields = new HashSet(Arrays.asList("providerType", "identifierValue", "foreignID", "avatarURL", "fullName")); } /** @@ -251,7 +296,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SocialAccountCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SocialAccountCreateReq is not found in the empty JSON string", SocialAccountCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SocialAccountCreateReq is not found in the empty JSON string", SocialAccountCreateReq.openapiRequiredFields.toString())); } } @@ -259,30 +304,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!SocialAccountCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SocialAccountCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SocialAccountCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SocialAccountCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("providerType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `providerType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerType").toString())); + } // validate the required field `providerType` - SocialProviderType.validateJsonElement(jsonObj.get("providerType")); + ProviderTypeEnum.validateJsonElement(jsonObj.get("providerType")); if (!jsonObj.get("identifierValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); } if (!jsonObj.get("foreignID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `foreignID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `foreignID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignID").toString())); } if (!jsonObj.get("avatarURL").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `avatarURL` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarURL").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `avatarURL` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarURL").toString())); } if (!jsonObj.get("fullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/SocialAccountList.java b/src/main/java/com/corbado/generated/model/SocialAccountList.java index 87acc84..9569042 100644 --- a/src/main/java/com/corbado/generated/model/SocialAccountList.java +++ b/src/main/java/com/corbado/generated/model/SocialAccountList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.Paging; +import java.util.Locale; import com.corbado.generated.model.SocialAccount; +import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,13 +47,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * SocialAccountList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SocialAccountList { public static final String SERIALIZED_NAME_SOCIAL_ACCOUNTS = "socialAccounts"; @SerializedName(SERIALIZED_NAME_SOCIAL_ACCOUNTS) @@ -62,7 +64,7 @@ public class SocialAccountList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private Paging paging; + private UserListPaging paging; public SocialAccountList() { } @@ -94,7 +96,7 @@ public void setSocialAccounts(@javax.annotation.Nonnull List soci } - public SocialAccountList paging(@javax.annotation.Nonnull Paging paging) { + public SocialAccountList paging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; return this; } @@ -104,11 +106,11 @@ public SocialAccountList paging(@javax.annotation.Nonnull Paging paging) { * @return paging */ @javax.annotation.Nonnull - public Paging getPaging() { + public UserListPaging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull Paging paging) { + public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { this.paging = paging; } @@ -159,14 +161,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("socialAccounts"); - openapiFields.add("paging"); + openapiFields = new HashSet(Arrays.asList("socialAccounts", "paging")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("socialAccounts"); - openapiRequiredFields.add("paging"); + openapiRequiredFields = new HashSet(Arrays.asList("socialAccounts", "paging")); } /** @@ -178,7 +176,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!SocialAccountList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SocialAccountList is not found in the empty JSON string", SocialAccountList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SocialAccountList is not found in the empty JSON string", SocialAccountList.openapiRequiredFields.toString())); } } @@ -186,20 +184,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!SocialAccountList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SocialAccountList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SocialAccountList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SocialAccountList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("socialAccounts").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `socialAccounts` to be an array in the JSON string but got `%s`", jsonObj.get("socialAccounts").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `socialAccounts` to be an array in the JSON string but got `%s`", jsonObj.get("socialAccounts").toString())); } JsonArray jsonArraysocialAccounts = jsonObj.getAsJsonArray("socialAccounts"); @@ -208,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SocialAccount.validateJsonElement(jsonArraysocialAccounts.get(i)); }; // validate the required field `paging` - Paging.validateJsonElement(jsonObj.get("paging")); + UserListPaging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/SocialProviderType.java b/src/main/java/com/corbado/generated/model/SocialProviderType.java deleted file mode 100644 index b9c6451..0000000 --- a/src/main/java/com/corbado/generated/model/SocialProviderType.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: support@corbado.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.corbado.generated.model; - -import java.util.Objects; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Gets or Sets socialProviderType - */ -@JsonAdapter(SocialProviderType.Adapter.class) -public enum SocialProviderType { - - GOOGLE("google"), - - MICROSOFT("microsoft"), - - GITHUB("github"); - - private String value; - - SocialProviderType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static SocialProviderType fromValue(String value) { - for (SocialProviderType b : SocialProviderType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final SocialProviderType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public SocialProviderType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return SocialProviderType.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - SocialProviderType.fromValue(value); - } -} - diff --git a/src/main/java/com/corbado/generated/model/User.java b/src/main/java/com/corbado/generated/model/User.java index e3f6651..ef0b862 100644 --- a/src/main/java/com/corbado/generated/model/User.java +++ b/src/main/java/com/corbado/generated/model/User.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.UserStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class User { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) @@ -71,6 +73,16 @@ public class User { @javax.annotation.Nullable private String explicitWebauthnID; + public static final String SERIALIZED_NAME_UPDATED = "updated"; + @SerializedName(SERIALIZED_NAME_UPDATED) + @javax.annotation.Nonnull + private String updated; + + public static final String SERIALIZED_NAME_UPDATED_MS = "updatedMs"; + @SerializedName(SERIALIZED_NAME_UPDATED_MS) + @javax.annotation.Nonnull + private Long updatedMs; + public User() { } @@ -150,6 +162,44 @@ public void setExplicitWebauthnID(@javax.annotation.Nullable String explicitWeba } + public User updated(@javax.annotation.Nonnull String updated) { + this.updated = updated; + return this; + } + + /** + * Get updated + * @return updated + */ + @javax.annotation.Nonnull + public String getUpdated() { + return updated; + } + + public void setUpdated(@javax.annotation.Nonnull String updated) { + this.updated = updated; + } + + + public User updatedMs(@javax.annotation.Nonnull Long updatedMs) { + this.updatedMs = updatedMs; + return this; + } + + /** + * Get updatedMs + * @return updatedMs + */ + @javax.annotation.Nonnull + public Long getUpdatedMs() { + return updatedMs; + } + + public void setUpdatedMs(@javax.annotation.Nonnull Long updatedMs) { + this.updatedMs = updatedMs; + } + + @Override public boolean equals(Object o) { @@ -163,12 +213,14 @@ public boolean equals(Object o) { return Objects.equals(this.userID, user.userID) && Objects.equals(this.fullName, user.fullName) && Objects.equals(this.status, user.status) && - Objects.equals(this.explicitWebauthnID, user.explicitWebauthnID); + Objects.equals(this.explicitWebauthnID, user.explicitWebauthnID) && + Objects.equals(this.updated, user.updated) && + Objects.equals(this.updatedMs, user.updatedMs); } @Override public int hashCode() { - return Objects.hash(userID, fullName, status, explicitWebauthnID); + return Objects.hash(userID, fullName, status, explicitWebauthnID, updated, updatedMs); } @Override @@ -179,6 +231,8 @@ public String toString() { sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" explicitWebauthnID: ").append(toIndentedString(explicitWebauthnID)).append("\n"); + sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); + sb.append(" updatedMs: ").append(toIndentedString(updatedMs)).append("\n"); sb.append("}"); return sb.toString(); } @@ -200,16 +254,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userID"); - openapiFields.add("fullName"); - openapiFields.add("status"); - openapiFields.add("explicitWebauthnID"); + openapiFields = new HashSet(Arrays.asList("userID", "fullName", "status", "explicitWebauthnID", "updated", "updatedMs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userID"); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("userID", "status", "updated", "updatedMs")); } /** @@ -221,7 +269,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); } } @@ -229,27 +277,30 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!User.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : User.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("userID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); } if ((jsonObj.get("fullName") != null && !jsonObj.get("fullName").isJsonNull()) && !jsonObj.get("fullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); } // validate the required field `status` UserStatus.validateJsonElement(jsonObj.get("status")); if ((jsonObj.get("explicitWebauthnID") != null && !jsonObj.get("explicitWebauthnID").isJsonNull()) && !jsonObj.get("explicitWebauthnID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `explicitWebauthnID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("explicitWebauthnID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `explicitWebauthnID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("explicitWebauthnID").toString())); + } + if (!jsonObj.get("updated").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updated` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updated").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/UserAggregate.java b/src/main/java/com/corbado/generated/model/UserAggregate.java new file mode 100644 index 0000000..d1566ba --- /dev/null +++ b/src/main/java/com/corbado/generated/model/UserAggregate.java @@ -0,0 +1,591 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.corbado.generated.model.Identifier; +import com.corbado.generated.model.SocialAccount; +import com.corbado.generated.model.UserStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * UserAggregate + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserAggregate { + public static final String SERIALIZED_NAME_USER_I_D = "userID"; + @SerializedName(SERIALIZED_NAME_USER_I_D) + @javax.annotation.Nonnull + private String userID; + + public static final String SERIALIZED_NAME_FULL_NAME = "fullName"; + @SerializedName(SERIALIZED_NAME_FULL_NAME) + @javax.annotation.Nullable + private String fullName; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private UserStatus status; + + public static final String SERIALIZED_NAME_EXPLICIT_WEBAUTHN_I_D = "explicitWebauthnID"; + @SerializedName(SERIALIZED_NAME_EXPLICIT_WEBAUTHN_I_D) + @javax.annotation.Nullable + private String explicitWebauthnID; + + public static final String SERIALIZED_NAME_EMAIL_IDENTIFIERS = "emailIdentifiers"; + @SerializedName(SERIALIZED_NAME_EMAIL_IDENTIFIERS) + @javax.annotation.Nonnull + private List emailIdentifiers = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PHONE_NUMBER_IDENTIFIERS = "phoneNumberIdentifiers"; + @SerializedName(SERIALIZED_NAME_PHONE_NUMBER_IDENTIFIERS) + @javax.annotation.Nonnull + private List phoneNumberIdentifiers = new ArrayList<>(); + + public static final String SERIALIZED_NAME_USERNAME_IDENTIFIERS = "usernameIdentifiers"; + @SerializedName(SERIALIZED_NAME_USERNAME_IDENTIFIERS) + @javax.annotation.Nonnull + private List usernameIdentifiers = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SOCIAL_ACCOUNTS = "socialAccounts"; + @SerializedName(SERIALIZED_NAME_SOCIAL_ACCOUNTS) + @javax.annotation.Nonnull + private List socialAccounts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CREATED = "created"; + @SerializedName(SERIALIZED_NAME_CREATED) + @javax.annotation.Nonnull + private String created; + + public static final String SERIALIZED_NAME_CREATED_M_S = "createdMS"; + @SerializedName(SERIALIZED_NAME_CREATED_M_S) + @javax.annotation.Nonnull + private Long createdMS; + + public static final String SERIALIZED_NAME_UPDATED = "updated"; + @SerializedName(SERIALIZED_NAME_UPDATED) + @javax.annotation.Nonnull + private String updated; + + public static final String SERIALIZED_NAME_UPDATED_MS = "updatedMs"; + @SerializedName(SERIALIZED_NAME_UPDATED_MS) + @javax.annotation.Nonnull + private Long updatedMs; + + public UserAggregate() { + } + + public UserAggregate userID(@javax.annotation.Nonnull String userID) { + this.userID = userID; + return this; + } + + /** + * Get userID + * @return userID + */ + @javax.annotation.Nonnull + public String getUserID() { + return userID; + } + + public void setUserID(@javax.annotation.Nonnull String userID) { + this.userID = userID; + } + + + public UserAggregate fullName(@javax.annotation.Nullable String fullName) { + this.fullName = fullName; + return this; + } + + /** + * Get fullName + * @return fullName + */ + @javax.annotation.Nullable + public String getFullName() { + return fullName; + } + + public void setFullName(@javax.annotation.Nullable String fullName) { + this.fullName = fullName; + } + + + public UserAggregate status(@javax.annotation.Nonnull UserStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public UserStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull UserStatus status) { + this.status = status; + } + + + public UserAggregate explicitWebauthnID(@javax.annotation.Nullable String explicitWebauthnID) { + this.explicitWebauthnID = explicitWebauthnID; + return this; + } + + /** + * Get explicitWebauthnID + * @return explicitWebauthnID + */ + @javax.annotation.Nullable + public String getExplicitWebauthnID() { + return explicitWebauthnID; + } + + public void setExplicitWebauthnID(@javax.annotation.Nullable String explicitWebauthnID) { + this.explicitWebauthnID = explicitWebauthnID; + } + + + public UserAggregate emailIdentifiers(@javax.annotation.Nonnull List emailIdentifiers) { + this.emailIdentifiers = emailIdentifiers; + return this; + } + + public UserAggregate addEmailIdentifiersItem(Identifier emailIdentifiersItem) { + if (this.emailIdentifiers == null) { + this.emailIdentifiers = new ArrayList<>(); + } + this.emailIdentifiers.add(emailIdentifiersItem); + return this; + } + + /** + * Get emailIdentifiers + * @return emailIdentifiers + */ + @javax.annotation.Nonnull + public List getEmailIdentifiers() { + return emailIdentifiers; + } + + public void setEmailIdentifiers(@javax.annotation.Nonnull List emailIdentifiers) { + this.emailIdentifiers = emailIdentifiers; + } + + + public UserAggregate phoneNumberIdentifiers(@javax.annotation.Nonnull List phoneNumberIdentifiers) { + this.phoneNumberIdentifiers = phoneNumberIdentifiers; + return this; + } + + public UserAggregate addPhoneNumberIdentifiersItem(Identifier phoneNumberIdentifiersItem) { + if (this.phoneNumberIdentifiers == null) { + this.phoneNumberIdentifiers = new ArrayList<>(); + } + this.phoneNumberIdentifiers.add(phoneNumberIdentifiersItem); + return this; + } + + /** + * Get phoneNumberIdentifiers + * @return phoneNumberIdentifiers + */ + @javax.annotation.Nonnull + public List getPhoneNumberIdentifiers() { + return phoneNumberIdentifiers; + } + + public void setPhoneNumberIdentifiers(@javax.annotation.Nonnull List phoneNumberIdentifiers) { + this.phoneNumberIdentifiers = phoneNumberIdentifiers; + } + + + public UserAggregate usernameIdentifiers(@javax.annotation.Nonnull List usernameIdentifiers) { + this.usernameIdentifiers = usernameIdentifiers; + return this; + } + + public UserAggregate addUsernameIdentifiersItem(Identifier usernameIdentifiersItem) { + if (this.usernameIdentifiers == null) { + this.usernameIdentifiers = new ArrayList<>(); + } + this.usernameIdentifiers.add(usernameIdentifiersItem); + return this; + } + + /** + * Get usernameIdentifiers + * @return usernameIdentifiers + */ + @javax.annotation.Nonnull + public List getUsernameIdentifiers() { + return usernameIdentifiers; + } + + public void setUsernameIdentifiers(@javax.annotation.Nonnull List usernameIdentifiers) { + this.usernameIdentifiers = usernameIdentifiers; + } + + + public UserAggregate socialAccounts(@javax.annotation.Nonnull List socialAccounts) { + this.socialAccounts = socialAccounts; + return this; + } + + public UserAggregate addSocialAccountsItem(SocialAccount socialAccountsItem) { + if (this.socialAccounts == null) { + this.socialAccounts = new ArrayList<>(); + } + this.socialAccounts.add(socialAccountsItem); + return this; + } + + /** + * Get socialAccounts + * @return socialAccounts + */ + @javax.annotation.Nonnull + public List getSocialAccounts() { + return socialAccounts; + } + + public void setSocialAccounts(@javax.annotation.Nonnull List socialAccounts) { + this.socialAccounts = socialAccounts; + } + + + public UserAggregate created(@javax.annotation.Nonnull String created) { + this.created = created; + return this; + } + + /** + * Get created + * @return created + */ + @javax.annotation.Nonnull + public String getCreated() { + return created; + } + + public void setCreated(@javax.annotation.Nonnull String created) { + this.created = created; + } + + + public UserAggregate createdMS(@javax.annotation.Nonnull Long createdMS) { + this.createdMS = createdMS; + return this; + } + + /** + * Get createdMS + * @return createdMS + */ + @javax.annotation.Nonnull + public Long getCreatedMS() { + return createdMS; + } + + public void setCreatedMS(@javax.annotation.Nonnull Long createdMS) { + this.createdMS = createdMS; + } + + + public UserAggregate updated(@javax.annotation.Nonnull String updated) { + this.updated = updated; + return this; + } + + /** + * Get updated + * @return updated + */ + @javax.annotation.Nonnull + public String getUpdated() { + return updated; + } + + public void setUpdated(@javax.annotation.Nonnull String updated) { + this.updated = updated; + } + + + public UserAggregate updatedMs(@javax.annotation.Nonnull Long updatedMs) { + this.updatedMs = updatedMs; + return this; + } + + /** + * Get updatedMs + * @return updatedMs + */ + @javax.annotation.Nonnull + public Long getUpdatedMs() { + return updatedMs; + } + + public void setUpdatedMs(@javax.annotation.Nonnull Long updatedMs) { + this.updatedMs = updatedMs; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserAggregate userAggregate = (UserAggregate) o; + return Objects.equals(this.userID, userAggregate.userID) && + Objects.equals(this.fullName, userAggregate.fullName) && + Objects.equals(this.status, userAggregate.status) && + Objects.equals(this.explicitWebauthnID, userAggregate.explicitWebauthnID) && + Objects.equals(this.emailIdentifiers, userAggregate.emailIdentifiers) && + Objects.equals(this.phoneNumberIdentifiers, userAggregate.phoneNumberIdentifiers) && + Objects.equals(this.usernameIdentifiers, userAggregate.usernameIdentifiers) && + Objects.equals(this.socialAccounts, userAggregate.socialAccounts) && + Objects.equals(this.created, userAggregate.created) && + Objects.equals(this.createdMS, userAggregate.createdMS) && + Objects.equals(this.updated, userAggregate.updated) && + Objects.equals(this.updatedMs, userAggregate.updatedMs); + } + + @Override + public int hashCode() { + return Objects.hash(userID, fullName, status, explicitWebauthnID, emailIdentifiers, phoneNumberIdentifiers, usernameIdentifiers, socialAccounts, created, createdMS, updated, updatedMs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserAggregate {\n"); + sb.append(" userID: ").append(toIndentedString(userID)).append("\n"); + sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" explicitWebauthnID: ").append(toIndentedString(explicitWebauthnID)).append("\n"); + sb.append(" emailIdentifiers: ").append(toIndentedString(emailIdentifiers)).append("\n"); + sb.append(" phoneNumberIdentifiers: ").append(toIndentedString(phoneNumberIdentifiers)).append("\n"); + sb.append(" usernameIdentifiers: ").append(toIndentedString(usernameIdentifiers)).append("\n"); + sb.append(" socialAccounts: ").append(toIndentedString(socialAccounts)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" createdMS: ").append(toIndentedString(createdMS)).append("\n"); + sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); + sb.append(" updatedMs: ").append(toIndentedString(updatedMs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("userID", "fullName", "status", "explicitWebauthnID", "emailIdentifiers", "phoneNumberIdentifiers", "usernameIdentifiers", "socialAccounts", "created", "createdMS", "updated", "updatedMs")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("userID", "status", "emailIdentifiers", "phoneNumberIdentifiers", "usernameIdentifiers", "socialAccounts", "created", "createdMS", "updated", "updatedMs")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UserAggregate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UserAggregate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserAggregate is not found in the empty JSON string", UserAggregate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserAggregate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserAggregate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UserAggregate.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("userID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userID").toString())); + } + if ((jsonObj.get("fullName") != null && !jsonObj.get("fullName").isJsonNull()) && !jsonObj.get("fullName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); + } + // validate the required field `status` + UserStatus.validateJsonElement(jsonObj.get("status")); + if ((jsonObj.get("explicitWebauthnID") != null && !jsonObj.get("explicitWebauthnID").isJsonNull()) && !jsonObj.get("explicitWebauthnID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `explicitWebauthnID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("explicitWebauthnID").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("emailIdentifiers").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emailIdentifiers` to be an array in the JSON string but got `%s`", jsonObj.get("emailIdentifiers").toString())); + } + + JsonArray jsonArrayemailIdentifiers = jsonObj.getAsJsonArray("emailIdentifiers"); + // validate the required field `emailIdentifiers` (array) + for (int i = 0; i < jsonArrayemailIdentifiers.size(); i++) { + Identifier.validateJsonElement(jsonArrayemailIdentifiers.get(i)); + }; + // ensure the json data is an array + if (!jsonObj.get("phoneNumberIdentifiers").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `phoneNumberIdentifiers` to be an array in the JSON string but got `%s`", jsonObj.get("phoneNumberIdentifiers").toString())); + } + + JsonArray jsonArrayphoneNumberIdentifiers = jsonObj.getAsJsonArray("phoneNumberIdentifiers"); + // validate the required field `phoneNumberIdentifiers` (array) + for (int i = 0; i < jsonArrayphoneNumberIdentifiers.size(); i++) { + Identifier.validateJsonElement(jsonArrayphoneNumberIdentifiers.get(i)); + }; + // ensure the json data is an array + if (!jsonObj.get("usernameIdentifiers").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `usernameIdentifiers` to be an array in the JSON string but got `%s`", jsonObj.get("usernameIdentifiers").toString())); + } + + JsonArray jsonArrayusernameIdentifiers = jsonObj.getAsJsonArray("usernameIdentifiers"); + // validate the required field `usernameIdentifiers` (array) + for (int i = 0; i < jsonArrayusernameIdentifiers.size(); i++) { + Identifier.validateJsonElement(jsonArrayusernameIdentifiers.get(i)); + }; + // ensure the json data is an array + if (!jsonObj.get("socialAccounts").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `socialAccounts` to be an array in the JSON string but got `%s`", jsonObj.get("socialAccounts").toString())); + } + + JsonArray jsonArraysocialAccounts = jsonObj.getAsJsonArray("socialAccounts"); + // validate the required field `socialAccounts` (array) + for (int i = 0; i < jsonArraysocialAccounts.size(); i++) { + SocialAccount.validateJsonElement(jsonArraysocialAccounts.get(i)); + }; + if (!jsonObj.get("created").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); + } + if (!jsonObj.get("updated").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updated` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updated").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UserAggregate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserAggregate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserAggregate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserAggregate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserAggregate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UserAggregate given an JSON string + * + * @param jsonString JSON string + * @return An instance of UserAggregate + * @throws IOException if the JSON string is invalid with respect to UserAggregate + */ + public static UserAggregate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserAggregate.class); + } + + /** + * Convert an instance of UserAggregate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/UserCreateReq.java b/src/main/java/com/corbado/generated/model/UserCreateReq.java index 3d8d580..6a60d7f 100644 --- a/src/main/java/com/corbado/generated/model/UserCreateReq.java +++ b/src/main/java/com/corbado/generated/model/UserCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.UserStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * UserCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class UserCreateReq { public static final String SERIALIZED_NAME_FULL_NAME = "fullName"; @SerializedName(SERIALIZED_NAME_FULL_NAME) @@ -113,7 +115,7 @@ public UserCreateReq explicitWebauthnID(@javax.annotation.Nullable String explic } /** - * For connect projects, the webauthnID can be explicitly set for a user + * For [Corbado Connect](https://docs.corbado.com/corbado-connect) projects, the webauthnID can be explicitly set for a user * @return explicitWebauthnID */ @javax.annotation.Nullable @@ -174,14 +176,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fullName"); - openapiFields.add("status"); - openapiFields.add("explicitWebauthnID"); + openapiFields = new HashSet(Arrays.asList("fullName", "status", "explicitWebauthnID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("status")); } /** @@ -193,7 +191,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UserCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in UserCreateReq is not found in the empty JSON string", UserCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserCreateReq is not found in the empty JSON string", UserCreateReq.openapiRequiredFields.toString())); } } @@ -201,24 +199,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!UserCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UserCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : UserCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("fullName") != null && !jsonObj.get("fullName").isJsonNull()) && !jsonObj.get("fullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); } // validate the required field `status` UserStatus.validateJsonElement(jsonObj.get("status")); if ((jsonObj.get("explicitWebauthnID") != null && !jsonObj.get("explicitWebauthnID").isJsonNull()) && !jsonObj.get("explicitWebauthnID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `explicitWebauthnID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("explicitWebauthnID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `explicitWebauthnID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("explicitWebauthnID").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/GenericRsp.java b/src/main/java/com/corbado/generated/model/UserDelete200Response.java similarity index 62% rename from src/main/java/com/corbado/generated/model/GenericRsp.java rename to src/main/java/com/corbado/generated/model/UserDelete200Response.java index 3f52d39..e0a35e0 100644 --- a/src/main/java/com/corbado/generated/model/GenericRsp.java +++ b/src/main/java/com/corbado/generated/model/UserDelete200Response.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,7 +14,8 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.RequestData; +import java.util.Locale; +import com.corbado.generated.model.UserListDefaultResponseAllOfRequestData; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,14 +44,15 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * GenericRsp + * UserDelete200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") -public class GenericRsp { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserDelete200Response { public static final String SERIALIZED_NAME_HTTP_STATUS_CODE = "httpStatusCode"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS_CODE) @javax.annotation.Nonnull @@ -64,17 +66,17 @@ public class GenericRsp { public static final String SERIALIZED_NAME_REQUEST_DATA = "requestData"; @SerializedName(SERIALIZED_NAME_REQUEST_DATA) @javax.annotation.Nonnull - private RequestData requestData; + private UserListDefaultResponseAllOfRequestData requestData; public static final String SERIALIZED_NAME_RUNTIME = "runtime"; @SerializedName(SERIALIZED_NAME_RUNTIME) @javax.annotation.Nonnull private Float runtime; - public GenericRsp() { + public UserDelete200Response() { } - public GenericRsp httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { + public UserDelete200Response httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } @@ -93,7 +95,7 @@ public void setHttpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) } - public GenericRsp message(@javax.annotation.Nonnull String message) { + public UserDelete200Response message(@javax.annotation.Nonnull String message) { this.message = message; return this; } @@ -112,7 +114,7 @@ public void setMessage(@javax.annotation.Nonnull String message) { } - public GenericRsp requestData(@javax.annotation.Nonnull RequestData requestData) { + public UserDelete200Response requestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { this.requestData = requestData; return this; } @@ -122,16 +124,16 @@ public GenericRsp requestData(@javax.annotation.Nonnull RequestData requestData) * @return requestData */ @javax.annotation.Nonnull - public RequestData getRequestData() { + public UserListDefaultResponseAllOfRequestData getRequestData() { return requestData; } - public void setRequestData(@javax.annotation.Nonnull RequestData requestData) { + public void setRequestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { this.requestData = requestData; } - public GenericRsp runtime(@javax.annotation.Nonnull Float runtime) { + public UserDelete200Response runtime(@javax.annotation.Nonnull Float runtime) { this.runtime = runtime; return this; } @@ -159,11 +161,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GenericRsp genericRsp = (GenericRsp) o; - return Objects.equals(this.httpStatusCode, genericRsp.httpStatusCode) && - Objects.equals(this.message, genericRsp.message) && - Objects.equals(this.requestData, genericRsp.requestData) && - Objects.equals(this.runtime, genericRsp.runtime); + UserDelete200Response userDelete200Response = (UserDelete200Response) o; + return Objects.equals(this.httpStatusCode, userDelete200Response.httpStatusCode) && + Objects.equals(this.message, userDelete200Response.message) && + Objects.equals(this.requestData, userDelete200Response.requestData) && + Objects.equals(this.runtime, userDelete200Response.runtime); } @Override @@ -174,7 +176,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class GenericRsp {\n"); + sb.append("class UserDelete200Response {\n"); sb.append(" httpStatusCode: ").append(toIndentedString(httpStatusCode)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" requestData: ").append(toIndentedString(requestData)).append("\n"); @@ -200,75 +202,67 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("httpStatusCode"); - openapiFields.add("message"); - openapiFields.add("requestData"); - openapiFields.add("runtime"); + openapiFields = new HashSet(Arrays.asList("httpStatusCode", "message", "requestData", "runtime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("httpStatusCode"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("requestData"); - openapiRequiredFields.add("runtime"); + openapiRequiredFields = new HashSet(Arrays.asList("httpStatusCode", "message", "requestData", "runtime")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GenericRsp + * @throws IOException if the JSON Element is invalid with respect to UserDelete200Response */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!GenericRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GenericRsp is not found in the empty JSON string", GenericRsp.openapiRequiredFields.toString())); + if (!UserDelete200Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserDelete200Response is not found in the empty JSON string", UserDelete200Response.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!GenericRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GenericRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!UserDelete200Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserDelete200Response` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GenericRsp.openapiRequiredFields) { + for (String requiredField : UserDelete200Response.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } // validate the required field `requestData` - RequestData.validateJsonElement(jsonObj.get("requestData")); + UserListDefaultResponseAllOfRequestData.validateJsonElement(jsonObj.get("requestData")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GenericRsp.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GenericRsp' and its subtypes + if (!UserDelete200Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserDelete200Response' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GenericRsp.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserDelete200Response.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GenericRsp value) throws IOException { + public void write(JsonWriter out, UserDelete200Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public GenericRsp read(JsonReader in) throws IOException { + public UserDelete200Response read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -279,18 +273,18 @@ public GenericRsp read(JsonReader in) throws IOException { } /** - * Create an instance of GenericRsp given an JSON string + * Create an instance of UserDelete200Response given an JSON string * * @param jsonString JSON string - * @return An instance of GenericRsp - * @throws IOException if the JSON string is invalid with respect to GenericRsp + * @return An instance of UserDelete200Response + * @throws IOException if the JSON string is invalid with respect to UserDelete200Response */ - public static GenericRsp fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GenericRsp.class); + public static UserDelete200Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserDelete200Response.class); } /** - * Convert an instance of GenericRsp to an JSON string + * Convert an instance of UserDelete200Response to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/UserList.java b/src/main/java/com/corbado/generated/model/UserList.java new file mode 100644 index 0000000..e37766b --- /dev/null +++ b/src/main/java/com/corbado/generated/model/UserList.java @@ -0,0 +1,261 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.corbado.generated.model.UserAggregate; +import com.corbado.generated.model.UserListPaging; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.corbado.generated.invoker.JSON; + +/** + * UserList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserList { + public static final String SERIALIZED_NAME_USERS = "users"; + @SerializedName(SERIALIZED_NAME_USERS) + @javax.annotation.Nonnull + private List users = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PAGING = "paging"; + @SerializedName(SERIALIZED_NAME_PAGING) + @javax.annotation.Nonnull + private UserListPaging paging; + + public UserList() { + } + + public UserList users(@javax.annotation.Nonnull List users) { + this.users = users; + return this; + } + + public UserList addUsersItem(UserAggregate usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + return this; + } + + /** + * Get users + * @return users + */ + @javax.annotation.Nonnull + public List getUsers() { + return users; + } + + public void setUsers(@javax.annotation.Nonnull List users) { + this.users = users; + } + + + public UserList paging(@javax.annotation.Nonnull UserListPaging paging) { + this.paging = paging; + return this; + } + + /** + * Get paging + * @return paging + */ + @javax.annotation.Nonnull + public UserListPaging getPaging() { + return paging; + } + + public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + this.paging = paging; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserList userList = (UserList) o; + return Objects.equals(this.users, userList.users) && + Objects.equals(this.paging, userList.paging); + } + + @Override + public int hashCode() { + return Objects.hash(users, paging); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserList {\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" paging: ").append(toIndentedString(paging)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("users", "paging")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("users", "paging")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UserList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UserList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserList is not found in the empty JSON string", UserList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UserList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + UserAggregate.validateJsonElement(jsonArrayusers.get(i)); + }; + // validate the required field `paging` + UserListPaging.validateJsonElement(jsonObj.get("paging")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UserList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UserList given an JSON string + * + * @param jsonString JSON string + * @return An instance of UserList + * @throws IOException if the JSON string is invalid with respect to UserList + */ + public static UserList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserList.class); + } + + /** + * Convert an instance of UserList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/corbado/generated/model/ErrorRsp.java b/src/main/java/com/corbado/generated/model/UserListDefaultResponse.java similarity index 61% rename from src/main/java/com/corbado/generated/model/ErrorRsp.java rename to src/main/java/com/corbado/generated/model/UserListDefaultResponse.java index 17cffd5..c1a1ab6 100644 --- a/src/main/java/com/corbado/generated/model/ErrorRsp.java +++ b/src/main/java/com/corbado/generated/model/UserListDefaultResponse.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,8 +14,9 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.ErrorRspAllOfError; -import com.corbado.generated.model.RequestData; +import java.util.Locale; +import com.corbado.generated.model.UserListDefaultResponseAllOfError; +import com.corbado.generated.model.UserListDefaultResponseAllOfRequestData; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,14 +45,15 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * ErrorRsp + * UserListDefaultResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") -public class ErrorRsp { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserListDefaultResponse { public static final String SERIALIZED_NAME_HTTP_STATUS_CODE = "httpStatusCode"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS_CODE) @javax.annotation.Nonnull @@ -65,7 +67,7 @@ public class ErrorRsp { public static final String SERIALIZED_NAME_REQUEST_DATA = "requestData"; @SerializedName(SERIALIZED_NAME_REQUEST_DATA) @javax.annotation.Nonnull - private RequestData requestData; + private UserListDefaultResponseAllOfRequestData requestData; public static final String SERIALIZED_NAME_RUNTIME = "runtime"; @SerializedName(SERIALIZED_NAME_RUNTIME) @@ -80,12 +82,12 @@ public class ErrorRsp { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @javax.annotation.Nonnull - private ErrorRspAllOfError error; + private UserListDefaultResponseAllOfError error; - public ErrorRsp() { + public UserListDefaultResponse() { } - public ErrorRsp httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { + public UserListDefaultResponse httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } @@ -104,7 +106,7 @@ public void setHttpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) } - public ErrorRsp message(@javax.annotation.Nonnull String message) { + public UserListDefaultResponse message(@javax.annotation.Nonnull String message) { this.message = message; return this; } @@ -123,7 +125,7 @@ public void setMessage(@javax.annotation.Nonnull String message) { } - public ErrorRsp requestData(@javax.annotation.Nonnull RequestData requestData) { + public UserListDefaultResponse requestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { this.requestData = requestData; return this; } @@ -133,16 +135,16 @@ public ErrorRsp requestData(@javax.annotation.Nonnull RequestData requestData) { * @return requestData */ @javax.annotation.Nonnull - public RequestData getRequestData() { + public UserListDefaultResponseAllOfRequestData getRequestData() { return requestData; } - public void setRequestData(@javax.annotation.Nonnull RequestData requestData) { + public void setRequestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { this.requestData = requestData; } - public ErrorRsp runtime(@javax.annotation.Nonnull Float runtime) { + public UserListDefaultResponse runtime(@javax.annotation.Nonnull Float runtime) { this.runtime = runtime; return this; } @@ -161,7 +163,7 @@ public void setRuntime(@javax.annotation.Nonnull Float runtime) { } - public ErrorRsp data(@javax.annotation.Nullable Object data) { + public UserListDefaultResponse data(@javax.annotation.Nullable Object data) { this.data = data; return this; } @@ -180,7 +182,7 @@ public void setData(@javax.annotation.Nullable Object data) { } - public ErrorRsp error(@javax.annotation.Nonnull ErrorRspAllOfError error) { + public UserListDefaultResponse error(@javax.annotation.Nonnull UserListDefaultResponseAllOfError error) { this.error = error; return this; } @@ -190,11 +192,11 @@ public ErrorRsp error(@javax.annotation.Nonnull ErrorRspAllOfError error) { * @return error */ @javax.annotation.Nonnull - public ErrorRspAllOfError getError() { + public UserListDefaultResponseAllOfError getError() { return error; } - public void setError(@javax.annotation.Nonnull ErrorRspAllOfError error) { + public void setError(@javax.annotation.Nonnull UserListDefaultResponseAllOfError error) { this.error = error; } @@ -208,13 +210,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ErrorRsp errorRsp = (ErrorRsp) o; - return Objects.equals(this.httpStatusCode, errorRsp.httpStatusCode) && - Objects.equals(this.message, errorRsp.message) && - Objects.equals(this.requestData, errorRsp.requestData) && - Objects.equals(this.runtime, errorRsp.runtime) && - Objects.equals(this.data, errorRsp.data) && - Objects.equals(this.error, errorRsp.error); + UserListDefaultResponse userListDefaultResponse = (UserListDefaultResponse) o; + return Objects.equals(this.httpStatusCode, userListDefaultResponse.httpStatusCode) && + Objects.equals(this.message, userListDefaultResponse.message) && + Objects.equals(this.requestData, userListDefaultResponse.requestData) && + Objects.equals(this.runtime, userListDefaultResponse.runtime) && + Objects.equals(this.data, userListDefaultResponse.data) && + Objects.equals(this.error, userListDefaultResponse.error); } @Override @@ -225,7 +227,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ErrorRsp {\n"); + sb.append("class UserListDefaultResponse {\n"); sb.append(" httpStatusCode: ").append(toIndentedString(httpStatusCode)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" requestData: ").append(toIndentedString(requestData)).append("\n"); @@ -253,80 +255,69 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("httpStatusCode"); - openapiFields.add("message"); - openapiFields.add("requestData"); - openapiFields.add("runtime"); - openapiFields.add("data"); - openapiFields.add("error"); + openapiFields = new HashSet(Arrays.asList("httpStatusCode", "message", "requestData", "runtime", "data", "error")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("httpStatusCode"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("requestData"); - openapiRequiredFields.add("runtime"); - openapiRequiredFields.add("error"); + openapiRequiredFields = new HashSet(Arrays.asList("httpStatusCode", "message", "requestData", "runtime", "error")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ErrorRsp + * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!ErrorRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ErrorRsp is not found in the empty JSON string", ErrorRsp.openapiRequiredFields.toString())); + if (!UserListDefaultResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponse is not found in the empty JSON string", UserListDefaultResponse.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!ErrorRsp.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ErrorRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!UserListDefaultResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ErrorRsp.openapiRequiredFields) { + for (String requiredField : UserListDefaultResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } // validate the required field `requestData` - RequestData.validateJsonElement(jsonObj.get("requestData")); + UserListDefaultResponseAllOfRequestData.validateJsonElement(jsonObj.get("requestData")); // validate the required field `error` - ErrorRspAllOfError.validateJsonElement(jsonObj.get("error")); + UserListDefaultResponseAllOfError.validateJsonElement(jsonObj.get("error")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ErrorRsp.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ErrorRsp' and its subtypes + if (!UserListDefaultResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserListDefaultResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ErrorRsp.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ErrorRsp value) throws IOException { + public void write(JsonWriter out, UserListDefaultResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public ErrorRsp read(JsonReader in) throws IOException { + public UserListDefaultResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -337,18 +328,18 @@ public ErrorRsp read(JsonReader in) throws IOException { } /** - * Create an instance of ErrorRsp given an JSON string + * Create an instance of UserListDefaultResponse given an JSON string * * @param jsonString JSON string - * @return An instance of ErrorRsp - * @throws IOException if the JSON string is invalid with respect to ErrorRsp + * @return An instance of UserListDefaultResponse + * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponse */ - public static ErrorRsp fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ErrorRsp.class); + public static UserListDefaultResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserListDefaultResponse.class); } /** - * Convert an instance of ErrorRsp to an JSON string + * Convert an instance of UserListDefaultResponse to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/ErrorRspAllOfError.java b/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfError.java similarity index 59% rename from src/main/java/com/corbado/generated/model/ErrorRspAllOfError.java rename to src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfError.java index d300479..97f92b9 100644 --- a/src/main/java/com/corbado/generated/model/ErrorRspAllOfError.java +++ b/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfError.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,7 +14,8 @@ package com.corbado.generated.model; import java.util.Objects; -import com.corbado.generated.model.ErrorRspAllOfErrorValidation; +import java.util.Locale; +import com.corbado.generated.model.UserListDefaultResponseAllOfErrorValidationInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,14 +46,15 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * ErrorRspAllOfError + * UserListDefaultResponseAllOfError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") -public class ErrorRspAllOfError { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserListDefaultResponseAllOfError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -66,17 +68,17 @@ public class ErrorRspAllOfError { public static final String SERIALIZED_NAME_VALIDATION = "validation"; @SerializedName(SERIALIZED_NAME_VALIDATION) @javax.annotation.Nullable - private List validation = new ArrayList<>(); + private List validation = new ArrayList<>(); public static final String SERIALIZED_NAME_LINKS = "links"; @SerializedName(SERIALIZED_NAME_LINKS) @javax.annotation.Nullable private List links = new ArrayList<>(); - public ErrorRspAllOfError() { + public UserListDefaultResponseAllOfError() { } - public ErrorRspAllOfError type(@javax.annotation.Nonnull String type) { + public UserListDefaultResponseAllOfError type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -95,7 +97,7 @@ public void setType(@javax.annotation.Nonnull String type) { } - public ErrorRspAllOfError details(@javax.annotation.Nullable String details) { + public UserListDefaultResponseAllOfError details(@javax.annotation.Nullable String details) { this.details = details; return this; } @@ -114,12 +116,12 @@ public void setDetails(@javax.annotation.Nullable String details) { } - public ErrorRspAllOfError validation(@javax.annotation.Nullable List validation) { + public UserListDefaultResponseAllOfError validation(@javax.annotation.Nullable List validation) { this.validation = validation; return this; } - public ErrorRspAllOfError addValidationItem(ErrorRspAllOfErrorValidation validationItem) { + public UserListDefaultResponseAllOfError addValidationItem(UserListDefaultResponseAllOfErrorValidationInner validationItem) { if (this.validation == null) { this.validation = new ArrayList<>(); } @@ -132,21 +134,21 @@ public ErrorRspAllOfError addValidationItem(ErrorRspAllOfErrorValidation validat * @return validation */ @javax.annotation.Nullable - public List getValidation() { + public List getValidation() { return validation; } - public void setValidation(@javax.annotation.Nullable List validation) { + public void setValidation(@javax.annotation.Nullable List validation) { this.validation = validation; } - public ErrorRspAllOfError links(@javax.annotation.Nullable List links) { + public UserListDefaultResponseAllOfError links(@javax.annotation.Nullable List links) { this.links = links; return this; } - public ErrorRspAllOfError addLinksItem(String linksItem) { + public UserListDefaultResponseAllOfError addLinksItem(String linksItem) { if (this.links == null) { this.links = new ArrayList<>(); } @@ -177,11 +179,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ErrorRspAllOfError errorRspAllOfError = (ErrorRspAllOfError) o; - return Objects.equals(this.type, errorRspAllOfError.type) && - Objects.equals(this.details, errorRspAllOfError.details) && - Objects.equals(this.validation, errorRspAllOfError.validation) && - Objects.equals(this.links, errorRspAllOfError.links); + UserListDefaultResponseAllOfError userListDefaultResponseAllOfError = (UserListDefaultResponseAllOfError) o; + return Objects.equals(this.type, userListDefaultResponseAllOfError.type) && + Objects.equals(this.details, userListDefaultResponseAllOfError.details) && + Objects.equals(this.validation, userListDefaultResponseAllOfError.validation) && + Objects.equals(this.links, userListDefaultResponseAllOfError.links); } @Override @@ -192,7 +194,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ErrorRspAllOfError {\n"); + sb.append("class UserListDefaultResponseAllOfError {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" validation: ").append(toIndentedString(validation)).append("\n"); @@ -218,68 +220,63 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("details"); - openapiFields.add("validation"); - openapiFields.add("links"); + openapiFields = new HashSet(Arrays.asList("type", "details", "validation", "links")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ErrorRspAllOfError + * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponseAllOfError */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!ErrorRspAllOfError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ErrorRspAllOfError is not found in the empty JSON string", ErrorRspAllOfError.openapiRequiredFields.toString())); + if (!UserListDefaultResponseAllOfError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponseAllOfError is not found in the empty JSON string", UserListDefaultResponseAllOfError.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!ErrorRspAllOfError.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ErrorRspAllOfError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!UserListDefaultResponseAllOfError.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponseAllOfError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ErrorRspAllOfError.openapiRequiredFields) { + for (String requiredField : UserListDefaultResponseAllOfError.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } if ((jsonObj.get("details") != null && !jsonObj.get("details").isJsonNull()) && !jsonObj.get("details").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `details` to be a primitive type in the JSON string but got `%s`", jsonObj.get("details").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `details` to be a primitive type in the JSON string but got `%s`", jsonObj.get("details").toString())); } if (jsonObj.get("validation") != null && !jsonObj.get("validation").isJsonNull()) { JsonArray jsonArrayvalidation = jsonObj.getAsJsonArray("validation"); if (jsonArrayvalidation != null) { // ensure the json data is an array if (!jsonObj.get("validation").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `validation` to be an array in the JSON string but got `%s`", jsonObj.get("validation").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `validation` to be an array in the JSON string but got `%s`", jsonObj.get("validation").toString())); } // validate the optional field `validation` (array) for (int i = 0; i < jsonArrayvalidation.size(); i++) { - ErrorRspAllOfErrorValidation.validateJsonElement(jsonArrayvalidation.get(i)); + UserListDefaultResponseAllOfErrorValidationInner.validateJsonElement(jsonArrayvalidation.get(i)); }; } } // ensure the optional json data is an array if present if (jsonObj.get("links") != null && !jsonObj.get("links").isJsonNull() && !jsonObj.get("links").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `links` to be an array in the JSON string but got `%s`", jsonObj.get("links").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `links` to be an array in the JSON string but got `%s`", jsonObj.get("links").toString())); } } @@ -287,22 +284,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ErrorRspAllOfError.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ErrorRspAllOfError' and its subtypes + if (!UserListDefaultResponseAllOfError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserListDefaultResponseAllOfError' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ErrorRspAllOfError.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponseAllOfError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ErrorRspAllOfError value) throws IOException { + public void write(JsonWriter out, UserListDefaultResponseAllOfError value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public ErrorRspAllOfError read(JsonReader in) throws IOException { + public UserListDefaultResponseAllOfError read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -313,18 +310,18 @@ public ErrorRspAllOfError read(JsonReader in) throws IOException { } /** - * Create an instance of ErrorRspAllOfError given an JSON string + * Create an instance of UserListDefaultResponseAllOfError given an JSON string * * @param jsonString JSON string - * @return An instance of ErrorRspAllOfError - * @throws IOException if the JSON string is invalid with respect to ErrorRspAllOfError + * @return An instance of UserListDefaultResponseAllOfError + * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponseAllOfError */ - public static ErrorRspAllOfError fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ErrorRspAllOfError.class); + public static UserListDefaultResponseAllOfError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserListDefaultResponseAllOfError.class); } /** - * Convert an instance of ErrorRspAllOfError to an JSON string + * Convert an instance of UserListDefaultResponseAllOfError to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/ErrorRspAllOfErrorValidation.java b/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfErrorValidationInner.java similarity index 56% rename from src/main/java/com/corbado/generated/model/ErrorRspAllOfErrorValidation.java rename to src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfErrorValidationInner.java index 9b61326..303422a 100644 --- a/src/main/java/com/corbado/generated/model/ErrorRspAllOfErrorValidation.java +++ b/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfErrorValidationInner.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,14 +43,15 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * ErrorRspAllOfErrorValidation + * UserListDefaultResponseAllOfErrorValidationInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") -public class ErrorRspAllOfErrorValidation { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserListDefaultResponseAllOfErrorValidationInner { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) @javax.annotation.Nonnull @@ -60,10 +62,10 @@ public class ErrorRspAllOfErrorValidation { @javax.annotation.Nonnull private String message; - public ErrorRspAllOfErrorValidation() { + public UserListDefaultResponseAllOfErrorValidationInner() { } - public ErrorRspAllOfErrorValidation field(@javax.annotation.Nonnull String field) { + public UserListDefaultResponseAllOfErrorValidationInner field(@javax.annotation.Nonnull String field) { this.field = field; return this; } @@ -82,7 +84,7 @@ public void setField(@javax.annotation.Nonnull String field) { } - public ErrorRspAllOfErrorValidation message(@javax.annotation.Nonnull String message) { + public UserListDefaultResponseAllOfErrorValidationInner message(@javax.annotation.Nonnull String message) { this.message = message; return this; } @@ -110,9 +112,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ErrorRspAllOfErrorValidation errorRspAllOfErrorValidation = (ErrorRspAllOfErrorValidation) o; - return Objects.equals(this.field, errorRspAllOfErrorValidation.field) && - Objects.equals(this.message, errorRspAllOfErrorValidation.message); + UserListDefaultResponseAllOfErrorValidationInner userListDefaultResponseAllOfErrorValidationInner = (UserListDefaultResponseAllOfErrorValidationInner) o; + return Objects.equals(this.field, userListDefaultResponseAllOfErrorValidationInner.field) && + Objects.equals(this.message, userListDefaultResponseAllOfErrorValidationInner.message); } @Override @@ -123,7 +125,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ErrorRspAllOfErrorValidation {\n"); + sb.append("class UserListDefaultResponseAllOfErrorValidationInner {\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); @@ -147,49 +149,45 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("field"); - openapiFields.add("message"); + openapiFields = new HashSet(Arrays.asList("field", "message")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("field"); - openapiRequiredFields.add("message"); + openapiRequiredFields = new HashSet(Arrays.asList("field", "message")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ErrorRspAllOfErrorValidation + * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponseAllOfErrorValidationInner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!ErrorRspAllOfErrorValidation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ErrorRspAllOfErrorValidation is not found in the empty JSON string", ErrorRspAllOfErrorValidation.openapiRequiredFields.toString())); + if (!UserListDefaultResponseAllOfErrorValidationInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponseAllOfErrorValidationInner is not found in the empty JSON string", UserListDefaultResponseAllOfErrorValidationInner.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!ErrorRspAllOfErrorValidation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ErrorRspAllOfErrorValidation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!UserListDefaultResponseAllOfErrorValidationInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponseAllOfErrorValidationInner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ErrorRspAllOfErrorValidation.openapiRequiredFields) { + for (String requiredField : UserListDefaultResponseAllOfErrorValidationInner.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("field").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `field` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `field` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field").toString())); } if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } } @@ -197,22 +195,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ErrorRspAllOfErrorValidation.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ErrorRspAllOfErrorValidation' and its subtypes + if (!UserListDefaultResponseAllOfErrorValidationInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserListDefaultResponseAllOfErrorValidationInner' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ErrorRspAllOfErrorValidation.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponseAllOfErrorValidationInner.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ErrorRspAllOfErrorValidation value) throws IOException { + public void write(JsonWriter out, UserListDefaultResponseAllOfErrorValidationInner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public ErrorRspAllOfErrorValidation read(JsonReader in) throws IOException { + public UserListDefaultResponseAllOfErrorValidationInner read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -223,18 +221,18 @@ public ErrorRspAllOfErrorValidation read(JsonReader in) throws IOException { } /** - * Create an instance of ErrorRspAllOfErrorValidation given an JSON string + * Create an instance of UserListDefaultResponseAllOfErrorValidationInner given an JSON string * * @param jsonString JSON string - * @return An instance of ErrorRspAllOfErrorValidation - * @throws IOException if the JSON string is invalid with respect to ErrorRspAllOfErrorValidation + * @return An instance of UserListDefaultResponseAllOfErrorValidationInner + * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponseAllOfErrorValidationInner */ - public static ErrorRspAllOfErrorValidation fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ErrorRspAllOfErrorValidation.class); + public static UserListDefaultResponseAllOfErrorValidationInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserListDefaultResponseAllOfErrorValidationInner.class); } /** - * Convert an instance of ErrorRspAllOfErrorValidation to an JSON string + * Convert an instance of UserListDefaultResponseAllOfErrorValidationInner to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/RequestData.java b/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfRequestData.java similarity index 59% rename from src/main/java/com/corbado/generated/model/RequestData.java rename to src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfRequestData.java index 727a983..c7724d1 100644 --- a/src/main/java/com/corbado/generated/model/RequestData.java +++ b/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfRequestData.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,14 +43,15 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * Data about the request itself, can be used for debugging */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") -public class RequestData { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserListDefaultResponseAllOfRequestData { public static final String SERIALIZED_NAME_REQUEST_I_D = "requestID"; @SerializedName(SERIALIZED_NAME_REQUEST_I_D) @javax.annotation.Nonnull @@ -60,10 +62,10 @@ public class RequestData { @javax.annotation.Nullable private String link; - public RequestData() { + public UserListDefaultResponseAllOfRequestData() { } - public RequestData requestID(@javax.annotation.Nonnull String requestID) { + public UserListDefaultResponseAllOfRequestData requestID(@javax.annotation.Nonnull String requestID) { this.requestID = requestID; return this; } @@ -82,7 +84,7 @@ public void setRequestID(@javax.annotation.Nonnull String requestID) { } - public RequestData link(@javax.annotation.Nullable String link) { + public UserListDefaultResponseAllOfRequestData link(@javax.annotation.Nullable String link) { this.link = link; return this; } @@ -110,9 +112,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RequestData requestData = (RequestData) o; - return Objects.equals(this.requestID, requestData.requestID) && - Objects.equals(this.link, requestData.link); + UserListDefaultResponseAllOfRequestData userListDefaultResponseAllOfRequestData = (UserListDefaultResponseAllOfRequestData) o; + return Objects.equals(this.requestID, userListDefaultResponseAllOfRequestData.requestID) && + Objects.equals(this.link, userListDefaultResponseAllOfRequestData.link); } @Override @@ -123,7 +125,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RequestData {\n"); + sb.append("class UserListDefaultResponseAllOfRequestData {\n"); sb.append(" requestID: ").append(toIndentedString(requestID)).append("\n"); sb.append(" link: ").append(toIndentedString(link)).append("\n"); sb.append("}"); @@ -147,48 +149,45 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requestID"); - openapiFields.add("link"); + openapiFields = new HashSet(Arrays.asList("requestID", "link")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("requestID"); + openapiRequiredFields = new HashSet(Arrays.asList("requestID")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RequestData + * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponseAllOfRequestData */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!RequestData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RequestData is not found in the empty JSON string", RequestData.openapiRequiredFields.toString())); + if (!UserListDefaultResponseAllOfRequestData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponseAllOfRequestData is not found in the empty JSON string", UserListDefaultResponseAllOfRequestData.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!RequestData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RequestData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!UserListDefaultResponseAllOfRequestData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponseAllOfRequestData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RequestData.openapiRequiredFields) { + for (String requiredField : UserListDefaultResponseAllOfRequestData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("requestID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `requestID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requestID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestID").toString())); } if ((jsonObj.get("link") != null && !jsonObj.get("link").isJsonNull()) && !jsonObj.get("link").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `link` to be a primitive type in the JSON string but got `%s`", jsonObj.get("link").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `link` to be a primitive type in the JSON string but got `%s`", jsonObj.get("link").toString())); } } @@ -196,22 +195,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RequestData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RequestData' and its subtypes + if (!UserListDefaultResponseAllOfRequestData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserListDefaultResponseAllOfRequestData' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RequestData.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponseAllOfRequestData.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RequestData value) throws IOException { + public void write(JsonWriter out, UserListDefaultResponseAllOfRequestData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public RequestData read(JsonReader in) throws IOException { + public UserListDefaultResponseAllOfRequestData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -222,18 +221,18 @@ public RequestData read(JsonReader in) throws IOException { } /** - * Create an instance of RequestData given an JSON string + * Create an instance of UserListDefaultResponseAllOfRequestData given an JSON string * * @param jsonString JSON string - * @return An instance of RequestData - * @throws IOException if the JSON string is invalid with respect to RequestData + * @return An instance of UserListDefaultResponseAllOfRequestData + * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponseAllOfRequestData */ - public static RequestData fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RequestData.class); + public static UserListDefaultResponseAllOfRequestData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserListDefaultResponseAllOfRequestData.class); } /** - * Convert an instance of RequestData to an JSON string + * Convert an instance of UserListDefaultResponseAllOfRequestData to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/Paging.java b/src/main/java/com/corbado/generated/model/UserListPaging.java similarity index 67% rename from src/main/java/com/corbado/generated/model/Paging.java rename to src/main/java/com/corbado/generated/model/UserListPaging.java index c6365e4..fe7b698 100644 --- a/src/main/java/com/corbado/generated/model/Paging.java +++ b/src/main/java/com/corbado/generated/model/UserListPaging.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,14 +43,15 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** - * Paging + * UserListPaging */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") -public class Paging { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class UserListPaging { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @javax.annotation.Nonnull @@ -65,10 +67,10 @@ public class Paging { @javax.annotation.Nonnull private Integer totalItems; - public Paging() { + public UserListPaging() { } - public Paging page(@javax.annotation.Nonnull Integer page) { + public UserListPaging page(@javax.annotation.Nonnull Integer page) { this.page = page; return this; } @@ -87,7 +89,7 @@ public void setPage(@javax.annotation.Nonnull Integer page) { } - public Paging totalPages(@javax.annotation.Nonnull Integer totalPages) { + public UserListPaging totalPages(@javax.annotation.Nonnull Integer totalPages) { this.totalPages = totalPages; return this; } @@ -106,7 +108,7 @@ public void setTotalPages(@javax.annotation.Nonnull Integer totalPages) { } - public Paging totalItems(@javax.annotation.Nonnull Integer totalItems) { + public UserListPaging totalItems(@javax.annotation.Nonnull Integer totalItems) { this.totalItems = totalItems; return this; } @@ -134,10 +136,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Paging paging = (Paging) o; - return Objects.equals(this.page, paging.page) && - Objects.equals(this.totalPages, paging.totalPages) && - Objects.equals(this.totalItems, paging.totalItems); + UserListPaging userListPaging = (UserListPaging) o; + return Objects.equals(this.page, userListPaging.page) && + Objects.equals(this.totalPages, userListPaging.totalPages) && + Objects.equals(this.totalItems, userListPaging.totalItems); } @Override @@ -148,7 +150,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Paging {\n"); + sb.append("class UserListPaging {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n"); sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); @@ -173,43 +175,37 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("page"); - openapiFields.add("totalPages"); - openapiFields.add("totalItems"); + openapiFields = new HashSet(Arrays.asList("page", "totalPages", "totalItems")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("page"); - openapiRequiredFields.add("totalPages"); - openapiRequiredFields.add("totalItems"); + openapiRequiredFields = new HashSet(Arrays.asList("page", "totalPages", "totalItems")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Paging + * @throws IOException if the JSON Element is invalid with respect to UserListPaging */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!Paging.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Paging is not found in the empty JSON string", Paging.openapiRequiredFields.toString())); + if (!UserListPaging.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListPaging is not found in the empty JSON string", UserListPaging.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!Paging.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Paging` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!UserListPaging.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListPaging` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Paging.openapiRequiredFields) { + for (String requiredField : UserListPaging.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -219,22 +215,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Paging.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Paging' and its subtypes + if (!UserListPaging.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserListPaging' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Paging.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserListPaging.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, Paging value) throws IOException { + public void write(JsonWriter out, UserListPaging value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public Paging read(JsonReader in) throws IOException { + public UserListPaging read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -245,18 +241,18 @@ public Paging read(JsonReader in) throws IOException { } /** - * Create an instance of Paging given an JSON string + * Create an instance of UserListPaging given an JSON string * * @param jsonString JSON string - * @return An instance of Paging - * @throws IOException if the JSON string is invalid with respect to Paging + * @return An instance of UserListPaging + * @throws IOException if the JSON string is invalid with respect to UserListPaging */ - public static Paging fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Paging.class); + public static UserListPaging fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UserListPaging.class); } /** - * Convert an instance of Paging to an JSON string + * Convert an instance of UserListPaging to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/UserStatus.java b/src/main/java/com/corbado/generated/model/UserStatus.java index b4bc2c4..f7e0b9f 100644 --- a/src/main/java/com/corbado/generated/model/UserStatus.java +++ b/src/main/java/com/corbado/generated/model/UserStatus.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/corbado/generated/model/UserUpdateReq.java b/src/main/java/com/corbado/generated/model/UserUpdateReq.java index a8ff601..6a06cfe 100644 --- a/src/main/java/com/corbado/generated/model/UserUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/UserUpdateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.UserStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,13 +44,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * UserUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class UserUpdateReq { public static final String SERIALIZED_NAME_FULL_NAME = "fullName"; @SerializedName(SERIALIZED_NAME_FULL_NAME) @@ -148,12 +150,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fullName"); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("fullName", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -165,7 +165,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UserUpdateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in UserUpdateReq is not found in the empty JSON string", UserUpdateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserUpdateReq is not found in the empty JSON string", UserUpdateReq.openapiRequiredFields.toString())); } } @@ -173,12 +173,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!UserUpdateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UserUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("fullName") != null && !jsonObj.get("fullName").isJsonNull()) && !jsonObj.get("fullName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fullName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fullName").toString())); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpoint.java b/src/main/java/com/corbado/generated/model/WebhookEndpoint.java index ae2c3f4..b29a6d6 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpoint.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpoint.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.WebhookEventType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * WebhookEndpoint */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpoint { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -366,30 +368,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("url"); - openapiFields.add("basicAuthUsername"); - openapiFields.add("basicAuthPassword"); - openapiFields.add("customHeaders"); - openapiFields.add("subscribedEvents"); - openapiFields.add("created"); - openapiFields.add("createdMs"); - openapiFields.add("updated"); - openapiFields.add("updatedMs"); + openapiFields = new HashSet(Arrays.asList("id", "url", "basicAuthUsername", "basicAuthPassword", "customHeaders", "subscribedEvents", "created", "createdMs", "updated", "updatedMs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("url"); - openapiRequiredFields.add("basicAuthUsername"); - openapiRequiredFields.add("basicAuthPassword"); - openapiRequiredFields.add("customHeaders"); - openapiRequiredFields.add("subscribedEvents"); - openapiRequiredFields.add("created"); - openapiRequiredFields.add("createdMs"); - openapiRequiredFields.add("updated"); - openapiRequiredFields.add("updatedMs"); + openapiRequiredFields = new HashSet(Arrays.asList("id", "url", "basicAuthUsername", "basicAuthPassword", "customHeaders", "subscribedEvents", "created", "createdMs", "updated", "updatedMs")); } /** @@ -401,7 +383,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!WebhookEndpoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in WebhookEndpoint is not found in the empty JSON string", WebhookEndpoint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WebhookEndpoint is not found in the empty JSON string", WebhookEndpoint.openapiRequiredFields.toString())); } } @@ -409,40 +391,40 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!WebhookEndpoint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `WebhookEndpoint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WebhookEndpoint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : WebhookEndpoint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if (!jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); } if (!jsonObj.get("basicAuthUsername").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `basicAuthUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthUsername").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `basicAuthUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthUsername").toString())); } if (!jsonObj.get("basicAuthPassword").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `basicAuthPassword` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthPassword").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `basicAuthPassword` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthPassword").toString())); } // ensure the required json array is present if (jsonObj.get("subscribedEvents") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("subscribedEvents").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `subscribedEvents` to be an array in the JSON string but got `%s`", jsonObj.get("subscribedEvents").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subscribedEvents` to be an array in the JSON string but got `%s`", jsonObj.get("subscribedEvents").toString())); } if (!jsonObj.get("created").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created").toString())); } if (!jsonObj.get("updated").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updated` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updated").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updated` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updated").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java b/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java index 75cde97..f66ee8a 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.WebhookEventType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * WebhookEndpointCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpointCreateReq { public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) @@ -236,18 +238,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("url"); - openapiFields.add("basicAuthUsername"); - openapiFields.add("basicAuthPassword"); - openapiFields.add("subscribedEvents"); - openapiFields.add("customHeaders"); + openapiFields = new HashSet(Arrays.asList("url", "basicAuthUsername", "basicAuthPassword", "subscribedEvents", "customHeaders")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("url"); - openapiRequiredFields.add("subscribedEvents"); - openapiRequiredFields.add("customHeaders"); + openapiRequiredFields = new HashSet(Arrays.asList("url", "subscribedEvents", "customHeaders")); } /** @@ -259,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!WebhookEndpointCreateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in WebhookEndpointCreateReq is not found in the empty JSON string", WebhookEndpointCreateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WebhookEndpointCreateReq is not found in the empty JSON string", WebhookEndpointCreateReq.openapiRequiredFields.toString())); } } @@ -267,31 +261,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!WebhookEndpointCreateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `WebhookEndpointCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WebhookEndpointCreateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : WebhookEndpointCreateReq.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); } if ((jsonObj.get("basicAuthUsername") != null && !jsonObj.get("basicAuthUsername").isJsonNull()) && !jsonObj.get("basicAuthUsername").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `basicAuthUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthUsername").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `basicAuthUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthUsername").toString())); } if ((jsonObj.get("basicAuthPassword") != null && !jsonObj.get("basicAuthPassword").isJsonNull()) && !jsonObj.get("basicAuthPassword").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `basicAuthPassword` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthPassword").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `basicAuthPassword` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthPassword").toString())); } // ensure the required json array is present if (jsonObj.get("subscribedEvents") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("subscribedEvents").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `subscribedEvents` to be an array in the JSON string but got `%s`", jsonObj.get("subscribedEvents").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subscribedEvents` to be an array in the JSON string but got `%s`", jsonObj.get("subscribedEvents").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpointList.java b/src/main/java/com/corbado/generated/model/WebhookEndpointList.java index d2d3606..cbdd72c 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpointList.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpointList.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.WebhookEndpoint; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * WebhookEndpointList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpointList { public static final String SERIALIZED_NAME_WEBHOOK_ENDPOINTS = "webhookEndpoints"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ENDPOINTS) @@ -132,12 +134,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("webhookEndpoints"); + openapiFields = new HashSet(Arrays.asList("webhookEndpoints")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("webhookEndpoints"); + openapiRequiredFields = new HashSet(Arrays.asList("webhookEndpoints")); } /** @@ -149,7 +149,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!WebhookEndpointList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in WebhookEndpointList is not found in the empty JSON string", WebhookEndpointList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WebhookEndpointList is not found in the empty JSON string", WebhookEndpointList.openapiRequiredFields.toString())); } } @@ -157,20 +157,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!WebhookEndpointList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `WebhookEndpointList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WebhookEndpointList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : WebhookEndpointList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("webhookEndpoints").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `webhookEndpoints` to be an array in the JSON string but got `%s`", jsonObj.get("webhookEndpoints").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhookEndpoints` to be an array in the JSON string but got `%s`", jsonObj.get("webhookEndpoints").toString())); } JsonArray jsonArraywebhookEndpoints = jsonObj.getAsJsonArray("webhookEndpoints"); diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java b/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java index 6266e09..cd211c1 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,6 +14,7 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.corbado.generated.model.WebhookEventType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -45,13 +46,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import com.corbado.generated.invoker.JSON; /** * WebhookEndpointUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-03-14T05:38:33.191503012Z[Etc/UTC]", comments = "Generator version: 7.13.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpointUpdateReq { public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) @@ -236,15 +238,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("url"); - openapiFields.add("basicAuthUsername"); - openapiFields.add("basicAuthPassword"); - openapiFields.add("subscribedEvents"); - openapiFields.add("customHeaders"); + openapiFields = new HashSet(Arrays.asList("url", "basicAuthUsername", "basicAuthPassword", "subscribedEvents", "customHeaders")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!WebhookEndpointUpdateReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in WebhookEndpointUpdateReq is not found in the empty JSON string", WebhookEndpointUpdateReq.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WebhookEndpointUpdateReq is not found in the empty JSON string", WebhookEndpointUpdateReq.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!WebhookEndpointUpdateReq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `WebhookEndpointUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WebhookEndpointUpdateReq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); } if ((jsonObj.get("basicAuthUsername") != null && !jsonObj.get("basicAuthUsername").isJsonNull()) && !jsonObj.get("basicAuthUsername").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `basicAuthUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthUsername").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `basicAuthUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthUsername").toString())); } if ((jsonObj.get("basicAuthPassword") != null && !jsonObj.get("basicAuthPassword").isJsonNull()) && !jsonObj.get("basicAuthPassword").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `basicAuthPassword` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthPassword").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `basicAuthPassword` to be a primitive type in the JSON string but got `%s`", jsonObj.get("basicAuthPassword").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("subscribedEvents") != null && !jsonObj.get("subscribedEvents").isJsonNull() && !jsonObj.get("subscribedEvents").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `subscribedEvents` to be an array in the JSON string but got `%s`", jsonObj.get("subscribedEvents").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subscribedEvents` to be an array in the JSON string but got `%s`", jsonObj.get("subscribedEvents").toString())); } } diff --git a/src/main/java/com/corbado/generated/model/WebhookEventType.java b/src/main/java/com/corbado/generated/model/WebhookEventType.java index ca2a6dc..4815462 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEventType.java +++ b/src/main/java/com/corbado/generated/model/WebhookEventType.java @@ -1,6 +1,6 @@ /* * Corbado Backend API - * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. * * The version of the OpenAPI document: 2.0.0 * Contact: support@corbado.com @@ -14,9 +14,11 @@ package com.corbado.generated.model; import java.util.Objects; +import java.util.Locale; import com.google.gson.annotations.SerializedName; import java.io.IOException; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; From 37de26dc526957b25d1ba18de5242d17298717cb Mon Sep 17 00:00:00 2001 From: Dopeamin Date: Wed, 10 Sep 2025 15:06:38 +0200 Subject: [PATCH 2/3] Add new OpenAPI configuration files and models; introduced backend_api.yml and common.yml, and added error response models. Updated OpenAPI generation script to include new configurations. --- scripts/backend_api.yml | 2758 +++++++++++++++++ scripts/common.yml | 610 ++++ scripts/generate-openapi.sh | 4 +- .../corbado/generated/api/AuthEventsApi.java | 2 +- .../corbado/generated/api/ChallengesApi.java | 2 +- .../corbado/generated/api/ClientEnvsApi.java | 2 +- .../generated/api/ConnectTokensApi.java | 36 +- .../corbado/generated/api/IdentifiersApi.java | 20 +- .../generated/api/PasskeyChallengesApi.java | 2 +- .../generated/api/PasskeyEventsApi.java | 20 +- .../corbado/generated/api/PasskeysApi.java | 2 +- .../generated/api/PasswordManagersApi.java | 2 +- .../generated/api/ProjectConfigApi.java | 20 +- .../corbado/generated/api/SessionsApi.java | 20 +- .../com/corbado/generated/api/UsersApi.java | 36 +- .../generated/api/WebhookEndpointsApi.java | 20 +- .../generated/invoker/ApiException.java | 2 +- .../generated/invoker/Configuration.java | 2 +- .../com/corbado/generated/invoker/JSON.java | 14 +- .../com/corbado/generated/invoker/Pair.java | 2 +- .../invoker/ServerConfiguration.java | 2 +- .../generated/invoker/ServerVariable.java | 2 +- .../corbado/generated/invoker/StringUtil.java | 2 +- .../generated/invoker/auth/ApiKeyAuth.java | 2 +- .../invoker/auth/Authentication.java | 2 +- .../invoker/auth/HttpBearerAuth.java | 2 +- .../generated/model/AaguidDetails.java | 2 +- .../model/AbstractOpenApiSchema.java | 2 +- .../generated/model/AppendHistoryData.java | 2 +- .../corbado/generated/model/AuthEvent.java | 2 +- .../generated/model/AuthEventCreateReq.java | 2 +- .../corbado/generated/model/Challenge.java | 2 +- .../generated/model/ChallengeCreateReq.java | 2 +- .../generated/model/ChallengeUpdateReq.java | 2 +- .../corbado/generated/model/ClientEnv.java | 2 +- .../generated/model/ClientEnvList.java | 2 +- .../generated/model/ClientInformation.java | 2 +- .../corbado/generated/model/ConnectToken.java | 2 +- .../model/ConnectTokenCreateReq.java | 2 +- .../generated/model/ConnectTokenData.java | 2 +- .../model/ConnectTokenDataPasskeyAppend.java | 2 +- .../model/ConnectTokenDataPasskeyDelete.java | 2 +- .../model/ConnectTokenDataPasskeyList.java | 2 +- .../model/ConnectTokenDataPasskeyLogin.java | 2 +- .../generated/model/ConnectTokenList.java | 14 +- .../model/ConnectTokenUpdateReq.java | 2 +- .../corbado/generated/model/Credential.java | 2 +- .../generated/model/CredentialList.java | 14 +- .../generated/model/DecisionInsights.java | 2 +- .../model/DecisionInsightsAppend.java | 2 +- .../generated/model/DetectionInsights.java | 2 +- .../corbado/generated/model/DetectionTag.java | 2 +- ...ListDefaultResponse.java => ErrorRsp.java} | 94 +- ...llOfError.java => ErrorRspAllOfError.java} | 80 +- ...java => ErrorRspAllOfErrorValidation.java} | 58 +- ...Delete200Response.java => GenericRsp.java} | 76 +- .../corbado/generated/model/Identifier.java | 2 +- .../generated/model/IdentifierCreateReq.java | 2 +- .../generated/model/IdentifierList.java | 14 +- .../generated/model/IdentifierUpdateReq.java | 2 +- .../model/JavaScriptHighEntropy.java | 2 +- .../corbado/generated/model/NativeMeta.java | 2 +- .../{UserListPaging.java => Paging.java} | 62 +- .../generated/model/ParsedDeviceInfo.java | 2 +- .../model/PasskeyAppendFinishReq.java | 2 +- .../model/PasskeyAppendFinishRsp.java | 2 +- .../model/PasskeyAppendStartReq.java | 2 +- .../model/PasskeyAppendStartRsp.java | 2 +- .../generated/model/PasskeyChallenge.java | 2 +- .../generated/model/PasskeyChallengeList.java | 14 +- .../model/PasskeyChallengeUpdateReq.java | 2 +- .../corbado/generated/model/PasskeyData.java | 2 +- .../corbado/generated/model/PasskeyEvent.java | 2 +- .../model/PasskeyEventCreateReq.java | 2 +- .../generated/model/PasskeyEventList.java | 14 +- .../generated/model/PasskeyIntelFlags.java | 2 +- .../model/PasskeyLoginFinishReq.java | 2 +- .../model/PasskeyLoginFinishRsp.java | 2 +- .../generated/model/PasskeyLoginStartReq.java | 2 +- .../generated/model/PasskeyLoginStartRsp.java | 2 +- ...ediationFinishErrorAlternativeProject.java | 2 +- ...MediationFinishErrorCredentialDeleted.java | 2 +- .../model/PasskeyMediationFinishReq.java | 2 +- .../model/PasskeyMediationFinishRsp.java | 2 +- .../model/PasskeyMediationFinishRspError.java | 2 +- .../model/PasskeyMediationStartReq.java | 2 +- .../model/PasskeyMediationStartRsp.java | 2 +- .../generated/model/PasskeyPostLoginReq.java | 2 +- .../generated/model/PasskeyPostLoginRsp.java | 2 +- .../model/PasskeyVerifySignedDataReq.java | 2 +- .../model/PasskeyVerifySignedDataRsp.java | 2 +- .../generated/model/PasswordManager.java | 2 +- .../generated/model/PasswordManagerList.java | 2 +- .../model/ProjectConfigUpdateCnameReq.java | 2 +- ...AllOfRequestData.java => RequestData.java} | 56 +- ...ionListSessionsInner.java => Session.java} | 148 +- .../corbado/generated/model/SessionList.java | 28 +- .../generated/model/SessionStatus.java | 86 + .../generated/model/SocialAccount.java | 2 +- .../model/SocialAccountCreateReq.java | 72 +- .../generated/model/SocialAccountList.java | 14 +- .../generated/model/SocialProviderType.java | 82 + .../com/corbado/generated/model/User.java | 2 +- .../generated/model/UserAggregate.java | 2 +- .../generated/model/UserCreateReq.java | 2 +- .../com/corbado/generated/model/UserList.java | 14 +- .../generated/model/UserUpdateReq.java | 2 +- .../generated/model/WebhookEndpoint.java | 2 +- .../model/WebhookEndpointCreateReq.java | 2 +- .../generated/model/WebhookEndpointList.java | 2 +- .../model/WebhookEndpointUpdateReq.java | 2 +- .../corbado/services/IdentifierService.java | 115 +- 112 files changed, 4104 insertions(+), 673 deletions(-) create mode 100644 scripts/backend_api.yml create mode 100644 scripts/common.yml rename src/main/java/com/corbado/generated/model/{UserListDefaultResponse.java => ErrorRsp.java} (69%) rename src/main/java/com/corbado/generated/model/{UserListDefaultResponseAllOfError.java => ErrorRspAllOfError.java} (71%) rename src/main/java/com/corbado/generated/model/{UserListDefaultResponseAllOfErrorValidationInner.java => ErrorRspAllOfErrorValidation.java} (68%) rename src/main/java/com/corbado/generated/model/{UserDelete200Response.java => GenericRsp.java} (71%) rename src/main/java/com/corbado/generated/model/{UserListPaging.java => Paging.java} (76%) rename src/main/java/com/corbado/generated/model/{UserListDefaultResponseAllOfRequestData.java => RequestData.java} (71%) rename src/main/java/com/corbado/generated/model/{SessionListSessionsInner.java => Session.java} (67%) create mode 100644 src/main/java/com/corbado/generated/model/SessionStatus.java create mode 100644 src/main/java/com/corbado/generated/model/SocialProviderType.java diff --git a/scripts/backend_api.yml b/scripts/backend_api.yml new file mode 100644 index 0000000..f3b8da8 --- /dev/null +++ b/scripts/backend_api.yml @@ -0,0 +1,2758 @@ +openapi: 3.0.3 + +################################################################### +# General # +################################################################### +info: + version: 2.0.0 + title: Corbado Backend API + description: | + # Introduction + This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + contact: + name: Corbado team + email: support@corbado.com + url: https://www.corbado.com + +servers: + - url: https://backendapi.corbado.io/v2 + +tags: + - name: Users + description: All API calls to manage users + - name: Sessions + description: All API calls to manage sessions + - name: Challenges + description: All API calls to manage challenges + - name: Identifiers + description: All API calls to manage login identifiers + - name: Passkeys + description: All API calls for passkey flows + - name: AuthEvents + description: All API calls to manage authentication events + - name: PasskeyEvents + description: All API calls to manage passkey events + - name: ProjectConfig + description: All API calls to manage project configurations + - name: ConnectTokens + description: All API calls to manage connectTokens + - name: PasskeyChallenges + description: All API calls to manage passkey challenges + - name: WebhookEndpoints + description: All API calls to manage webhook endpoints + - name: PasswordManagers + description: All API calls to manage password managers + - name: ClientEnvs + description: All API calls to manage client environments + +paths: + /users: + post: + summary: Create a new user + description: | + Creates a new user with the given status. Use [login identifiers](/api-reference/backend-api/identifiers/create-a-login-identifier-for-a-user) to add an email address or phone number to the user. + + You can also manage users in the [Developer Panel](https://app.corbado.com/users). + operationId: UserCreate + tags: + - Users + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/userCreateReq" + responses: + "200": + description: User has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/user" + default: + $ref: "#/components/responses/error" + get: + summary: List users + description: | + Returns a list of project users. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `id`, `name`, `fullName`, `created`, `updated` and `status`. + - The `filter` parameter supports the following fields: `id`, `searchValue`, `name`, `fullName`, `created`, `updated` and `status`. + + Searches in `searchValue` are performed across the `name`, `fullName` fields and identifiers values (emails, usernames and phone numbers). + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: UserList + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + responses: + "200": + description: List of users. + content: + application/json: + schema: + $ref: "#/components/schemas/userList" + default: + $ref: "#/components/responses/error" + + /users/{userID}: + get: + summary: Retrieve a user + description: | + Retrieves a user by given `userID`. This does not return login identifiers like email addresses or phone numbers. + + You can also manage users in the [Developer Panel](https://app.corbado.com/users). + operationId: UserGet + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + responses: + "200": + description: User has been returned. + content: + application/json: + schema: + $ref: "#/components/schemas/user" + default: + $ref: "#/components/responses/error" + patch: + summary: Update a user + description: | + Updates a user by given `userID`. For example, this can be used to modify the user's status. + + You can also manage users in the [Developer Panel](https://app.corbado.com/users). + operationId: UserUpdate + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/userUpdateReq" + responses: + "200": + description: User has been updated. + content: + application/json: + schema: + $ref: "#/components/schemas/user" + default: + $ref: "#/components/responses/error" + delete: + summary: Delete a user + description: | + Deletes a user by given `userID`. + + You can also manage users in the [Developer Panel](https://app.corbado.com/users). + operationId: UserDelete + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + + /users/{userID}/challenges: + post: + summary: Create a challenge for a user + description: | + Creates a new challenge to verify a login identifier for a user by given `userID`. Challenges come in three flavors: **Email OTP**, **SMS OTP**, and **Email Magiclink**. + + **OTP** stands for One-Time Password. It is a unique code sent to the user via email or SMS, which they must enter to complete the verification process. + operationId: ChallengeCreate + tags: + - Challenges + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/challengeCreateReq" + responses: + "200": + description: Challenge has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/challenge" + default: + $ref: "#/components/responses/error" + + /users/{userID}/challenges/{challengeID}: + patch: + summary: Update a challenge for a user + description: | + Updates a challenge for a user by given `userID` and `challengeID`. For example, this can be used to change the challenge status from `pending` to `completed`. + operationId: ChallengeUpdate + tags: + - Challenges + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "#/components/parameters/challengeID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/challengeUpdateReq" + responses: + "200": + description: Challenge has been updated. + content: + application/json: + schema: + $ref: "#/components/schemas/challenge" + default: + $ref: "#/components/responses/error" + + /users/{userID}/identifiers: + post: + summary: Create a login identifier for a user + description: | + Creates a new login identifier for a user with the given ID. Login identifiers can be of the type `email`, `phone`, or `username`. Separating login identifiers from users allows Corbado to manage multiple login identifiers of different types for each user. + + You can set up login identifiers in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Overview) or consult the [Documentation](/corbado-complete/overview/configuration/user-flow-configuration#2-login-identifiers-and-fallbacks) for more details. + operationId: IdentifierCreate + tags: + - Identifiers + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/identifierCreateReq" + responses: + "200": + description: Identifier has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/identifier" + default: + $ref: "#/components/responses/error" + + /users/{userID}/identifiers/{identifierID}: + delete: + summary: Delete a login identifier for a user + description: | + Delete an existing login identifier for a user by given `userID` and `identifierID`. + operationId: IdentifierDelete + tags: + - Identifiers + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "#/components/parameters/identifierID" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + patch: + summary: Update a login identifier for a user + description: | + Updates a login identifier (e.g. from `pending` to `verified`) for a user by given `userID` and `identifierID`. + operationId: IdentifierUpdate + tags: + - Identifiers + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "#/components/parameters/identifierID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/identifierUpdateReq" + responses: + "200": + description: Identifier has been updated. + content: + application/json: + schema: + $ref: "#/components/schemas/identifier" + default: + $ref: "#/components/responses/error" + + /users/{userID}/socialAccounts: + get: + summary: List all social logins for a user + description: | + Returns a list of social logins for a user by given `userID`. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `providerType` and `foreignID`. + - The `filter` parameter supports the following fields: `providerType` and `foreignID`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: UserSocialAccountList + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + responses: + "200": + description: List of social logins. + content: + application/json: + schema: + type: array + items: + $ref: "#/components/schemas/socialAccount" + default: + $ref: "#/components/responses/error" + post: + summary: Create a social login for a user + description: | + Creates a new social login for a user by given `userID`. Social logins are used to authenticate users with third-party providers like Google, Microsoft, or GitHub. + + You can set up social logins in the [Developer Panel](https://app.corbado.com/settings/userinterface?tab=Social) or consult the [Documentation](/corbado-complete/overview/configuration/social-logins/overview) for more details. + operationId: SocialAccountCreate + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/socialAccountCreateReq" + responses: + "200": + description: Social login has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/socialAccount" + default: + $ref: "#/components/responses/error" + + /users/{userID}/credentials: + get: + summary: List passkeys for a user + description: | + Returns a list of passkeys for a user by given `userID`. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. + - The `filter` parameter supports the following fields: `userID`, `created`, `status`, `backupState`, `browserName` and `osName`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: CredentialList + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + responses: + "200": + description: List of passkeys. + content: + application/json: + schema: + $ref: "#/components/schemas/credentialList" + default: + $ref: "#/components/responses/error" + + /users/{userID}/credentials/{credentialID}: + delete: + summary: Delete a passkey for a user + description: | + Deletes an existing passkey for a user by given `userID` and `credentialID`. + operationId: CredentialDelete + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "#/components/parameters/credentialID" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + + /users/{userID}/authEvents: + post: + description: Create a new authentication event for a user + operationId: AuthEventCreate + x-excluded: true + tags: + - AuthEvents + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/authEventCreateReq" + responses: + "200": + description: Auth event has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/authEvent" + default: + $ref: "#/components/responses/error" + + /users/{userID}/passkeyEvents: + post: + summary: Create a passkey event for a user + description: Creates a new passkey event for a user by given `userID`. + operationId: PasskeyEventCreate + tags: + - PasskeyEvents + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyEventCreateReq" + responses: + "200": + description: Passkey event has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyEvent" + default: + $ref: "#/components/responses/error" + get: + summary: List all passkey events for a user + description: | + Returns a list of passkey events for a user by given `userID`. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `created` and `eventType`. + - The `filter` parameter supports the following fields: `eventType`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: PasskeyEventList + tags: + - PasskeyEvents + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + - $ref: "#/components/parameters/userID" + responses: + "200": + description: List of all matching passkey events. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyEventList" + default: + $ref: "#/components/responses/error" + + /users/{userID}/passkeyEvents/{passkeyEventID}: + delete: + summary: Delete a passkey event for a user + description: Deletes an existing passkey event for a user by given `userID` and `passkeyEventID`. + operationId: PasskeyEventDelete + tags: + - PasskeyEvents + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "#/components/parameters/passkeyEventID" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + + /users/{userID}/passkeyChallenges: + get: + summary: List all passkey challenges for a user + description: | + Returns a list of passkey challenges for a user by given `userID`. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. + - The `filter` parameter supports the following fields: `userID`, `projectID`, `status`, and `type`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: PasskeyChallengeList + tags: + - PasskeyChallenges + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + - $ref: "#/components/parameters/userID" + responses: + "200": + description: List of all matching passkey challenges. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyChallengeList" + default: + $ref: "#/components/responses/error" + + /users/{userID}/passkeyChallenges/{passkeyChallengeID}: + patch: + summary: Update a passkey challenge for a user + description: Updates a passkey challenge for a user by given `userID` and `passkeyChallengeID`. + operationId: PasskeyChallengeUpdate + tags: + - PasskeyChallenges + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + - $ref: "#/components/parameters/passkeyChallengeID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyChallengeUpdateReq" + responses: + "200": + description: Passkey challenge has been updated. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyChallenge" + default: + $ref: "#/components/responses/error" + + /users/{userID}/passwordManagers: + get: + summary: List password managers for a user + description: Returns a list of password managers + operationId: PasswordManagerList + x-excluded: true + tags: + - PasswordManagers + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + responses: + "200": + description: List of all matching password managers. + content: + application/json: + schema: + $ref: "#/components/schemas/passwordManagerList" + default: + $ref: "#/components/responses/error" + + /users/{userID}/clientEnvs: + get: + summary: List client environments for a user + description: Returns a list of clientEnvs + operationId: ClientEnvList + x-excluded: true + tags: + - ClientEnvs + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/userID" + responses: + "200": + description: List of all matching clientEnvs. + content: + application/json: + schema: + $ref: "#/components/schemas/clientEnvList" + default: + $ref: "#/components/responses/error" + + /identifiers: + get: + summary: List all login identifiers + description: | + Returns a list of login identifiers. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. + - The `filter` parameter supports the following fields: `userID`, `identifierType` and `identifierValue`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: IdentifierList + tags: + - Identifiers + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + responses: + "200": + description: List of all matching login identifiers. + content: + application/json: + schema: + $ref: "#/components/schemas/identifierList" + default: + $ref: "#/components/responses/error" + + /socialAccounts: + get: + summary: List all social logins + description: | + Returns a list of social logins. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `providerType` and `foreignID`. + - The `filter` parameter supports the following fields: `providerType` and `foreignID`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: SocialAccountList + tags: + - Users + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + responses: + "200": + description: List of social logins. + content: + application/json: + schema: + $ref: "#/components/schemas/socialAccountList" + default: + $ref: "#/components/responses/error" + + /projectConfig/cname: + put: + summary: Update project CNAME and generate SSL certificate + description: Update project config CNAME and generates new SSL certificate + operationId: ProjectConfigUpdateCNAME + x-excluded: true + tags: + - ProjectConfig + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/projectConfigUpdateCnameReq" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + + /connectTokens: + post: + summary: Create a connectToken + description: | + Creates a new ConnectToken, which is essential for [Corbado Connect](/corbado-connect). ConnectTokens authorize actions that modify user data. + + Consult the [Documentation](/corbado-connect/concepts/connect-token) for more details. + operationId: ConnectTokenCreate + tags: + - ConnectTokens + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/connectTokenCreateReq" + responses: + "200": + description: ConnectToken has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/connectToken" + default: + $ref: "#/components/responses/error" + get: + summary: List all ConnectTokens + description: | + Returns a list of ConnectTokens. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. + - The `filter` parameter supports the following fields: `token`, `tokenType`, `status` and `expires`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + operationId: ConnectTokenList + tags: + - ConnectTokens + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + responses: + "200": + description: List of all matching append tokens. + content: + application/json: + schema: + $ref: "#/components/schemas/connectTokenList" + default: + $ref: "#/components/responses/error" + + /connectTokens/{connectTokenID}: + patch: + summary: Update a ConnectToken + description: | + Updates an existing ConnectToken. + operationId: ConnectTokenUpdate + tags: + - ConnectTokens + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/connectTokenID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/connectTokenUpdateReq" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + delete: + summary: Delete a ConnectToken + description: | + Deletes an existing ConnectToken. + operationId: ConnectTokenDelete + tags: + - ConnectTokens + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/connectTokenID" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + + /webhookEndpoints: + get: + description: Returns a list of webhook endpoints + operationId: WebhookEndpointList + x-excluded: true + tags: + - WebhookEndpoints + security: + - basicAuth: [] + responses: + "200": + description: List of webhook endpoints. + content: + application/json: + schema: + $ref: "#/components/schemas/webhookEndpointList" + default: + $ref: "#/components/responses/error" + post: + description: Creates a new webhook endpoint + operationId: WebhookEndpointCreate + x-excluded: true + tags: + - WebhookEndpoints + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/webhookEndpointCreateReq" + responses: + "200": + description: Webhook endpoint has been created. + content: + application/json: + schema: + $ref: "#/components/schemas/webhookEndpoint" + default: + $ref: "#/components/responses/error" + + /webhookEndpoints/{webhookEndpointID}: + put: + description: Updates an existing webhook endpoint + operationId: WebhookEndpointUpdate + x-excluded: true + tags: + - WebhookEndpoints + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/webhookEndpointID" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/webhookEndpointUpdateReq" + responses: + "200": + description: Webhook endpoint has been updated. + content: + application/json: + schema: + $ref: "#/components/schemas/webhookEndpoint" + default: + $ref: "#/components/responses/error" + delete: + description: Deletes an existing webhook endpoint + operationId: WebhookEndpointDelete + x-excluded: true + tags: + - WebhookEndpoints + security: + - basicAuth: [] + parameters: + - $ref: "#/components/parameters/webhookEndpointID" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + + /sessions: + get: + summary: List all sessions + description: | + Returns a list of sessions. + + The list can be sorted and filtered: + - The `sort` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. + - The `filter` parameter supports the following fields: `ID`, `userID`, `expires`, `lastAction`, `created`, `updated`, and `status`. + + Refer to the parameter description for more details on sorting in different directions and using the filter with different operators. + + You can view and manage sessions in the [Developer Panel](https://app.corbado.com/users/sessions) or consult the [Documentation](https://docs.corbado.com/corbado-complete/sessions/overview) for more details. + operationId: SessionList + tags: + - Sessions + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sort" + - $ref: "common.yml#/components/parameters/filter" + - $ref: "common.yml#/components/parameters/page" + - $ref: "common.yml#/components/parameters/pageSize" + responses: + "200": + description: List of all matching sessions. + content: + application/json: + schema: + $ref: "#/components/schemas/sessionList" + default: + $ref: "#/components/responses/error" + + /sessions/{sessionID}/revoke: + post: + summary: Revoke a session + description: Revokes an existing session by given `sessionID`. + operationId: SessionRevoke + tags: + - Sessions + security: + - basicAuth: [] + parameters: + - $ref: "common.yml#/components/parameters/sessionID" + responses: + "200": + $ref: "#/components/responses/200" + default: + $ref: "#/components/responses/error" + + ################################################################### + # Outliers (non-rest calls) # + ################################################################### + + /passkey/append/start: + post: + summary: Start creating a new passkey + description: | + Starts creating a new passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-creating-a-new-passkey). + operationId: PasskeyAppendStart + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyAppendStartReq" + responses: + "200": + description: Passkey creation process has been started. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyAppendStartRsp" + default: + $ref: "#/components/responses/error" + + /passkey/append/finish: + post: + summary: Finish creating a new passkey + description: | + Finishes creating a new passkey by completing the WebAuthn ceremony. + operationId: PasskeyAppendFinish + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyAppendFinishReq" + responses: + "200": + description: Passkey append succeeded. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyAppendFinishRsp" + default: + $ref: "#/components/responses/error" + + /passkey/login/start: + post: + summary: Start login with an existing passkey + description: | + Starts login with an existing passkey by initiating the WebAuthn ceremony. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey). + operationId: PasskeyLoginStart + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyLoginStartReq" + responses: + "200": + description: Passkey authentication process has been started. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyLoginStartRsp" + default: + $ref: "#/components/responses/error" + + /passkey/login/finish: + post: + summary: Finish login with an existing passkey + description: | + Finishes login with an existing passkey by completing the WebAuthn ceremony. + operationId: PasskeyLoginFinish + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyLoginFinishReq" + responses: + "200": + description: Passkey login succeeded. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyLoginFinishRsp" + default: + $ref: "#/components/responses/error" + + /passkey/postLogin: + post: + summary: Run the post-login action for passkey + description: Explicitly runs the post-login action + operationId: PasskeyPostLogin + x-excluded: true + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyPostLoginReq" + responses: + "200": + description: Post Passkey Login succeeded. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyPostLoginRsp" + default: + $ref: "#/components/responses/error" + + /passkey/verifySignedData: + post: + summary: Verify signedPasskeyData from a passkey login + description: | + Verifies the `signedPasskeyData` from a passkey login. The `signedPasskeyData` is returned by the [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey) call and is essential for transferring the authentication state to your backend. + + It is required only for [Corbado Connect](/corbado-connect) and is thoroughly explained in our [Documentation](/corbado-connect/concepts/signed-passkey-data). Our [generic integration guide](/corbado-connect/integration/generic) explains how to use `signedPasskeyData` in your backend. + operationId: PasskeyVerifySignedData + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyVerifySignedDataReq" + responses: + "200": + description: | + `signedPasskeyData` has been verified. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyVerifySignedDataRsp" + default: + $ref: "#/components/responses/error" + + /passkey/mediation/start: + post: + summary: Start login with an existing passkey (Conditional UI) + description: | + Starts login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. To complete the ceremony you need to call [finish](/api-reference/backend-api/passkeys/finish-login-with-an-existing-passkey-conditional-ui). + operationId: PasskeyMediationStart + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyMediationStartReq" + responses: + "200": + description: Passkey login process has been started. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyMediationStartRsp" + default: + $ref: "#/components/responses/error" + + /passkey/mediation/finish: + post: + summary: Finish login with an existing passkey (Conditional UI) + description: | + Finishes login with an existing passkey in [Conditional UI](https://www.corbado.com/glossary/conditional-ui) scenario. + operationId: PasskeyMediationFinish + tags: + - Passkeys + security: + - basicAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyMediationFinishReq" + responses: + "200": + description: Passkey login process has been completed. + content: + application/json: + schema: + $ref: "#/components/schemas/passkeyMediationFinishRsp" + default: + $ref: "#/components/responses/error" + +components: + securitySchemes: + basicAuth: + type: http + scheme: basic + description: | + Basic authentication is used to authenticate requests to the Backend API. The username is the project ID and the password is the API secret. + + The project ID and API secret can be found in the [Developer Panel](https://app.corbado.com/settings/api-secrets). + + parameters: + userID: + name: userID + in: path + description: | + Unique identifier of the user. Format: `usr-`. + required: true + schema: + type: string + example: usr-4693224802260150919 + + challengeID: + name: challengeID + in: path + description: ID of challenge + required: true + schema: + type: string + + identifierID: + name: identifierID + in: path + description: | + Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-`. + required: true + schema: + type: string + example: "ide-4693224802260150919" + + credentialID: + name: credentialID + in: path + description: | + Unique identifier of the passkey. Format: `cre-`. + required: true + schema: + type: string + example: "cre-4693224802260150919" + + connectTokenID: + name: connectTokenID + in: path + description: | + Unique identifier of the connectToken. Format: `ctk-`. + required: true + schema: + type: string + example: "ctk-4693224802260150919" + + passkeyChallengeID: + name: passkeyChallengeID + in: path + description: ID of a passkey challenge + required: true + schema: + type: string + + passkeyEventID: + name: passkeyEventID + in: path + description: ID of a passkey event + required: true + schema: + type: string + + webhookEndpointID: + name: webhookEndpointID + in: path + description: ID of a webhook endpoint + required: true + schema: + type: string + + schemas: + ################################################################### + # Request/Response bodies # + ################################################################### + userCreateReq: + type: object + required: + - status + properties: + fullName: + type: string + example: "Jane Doe" + status: + $ref: "#/components/schemas/userStatus" + explicitWebauthnID: + type: string + description: For [Corbado Connect](https://docs.corbado.com/corbado-connect) projects, the webauthnID can be explicitly set for a user + + userUpdateReq: + type: object + properties: + fullName: + type: string + example: "Jane Doe" + status: + $ref: "#/components/schemas/userStatus" + + challengeCreateReq: + type: object + required: + - challengeType + - identifierValue + - clientInformation + properties: + challengeType: + $ref: "#/components/schemas/challengeType" + identifierValue: + type: string + example: "jane@doe.com" + challengeMetadata: + type: object + example: { "city": "Munich" } + lifetimeSeconds: + type: integer + example: 300 + clientInformation: + $ref: "#/components/schemas/clientInformation" + + challengeUpdateReq: + type: object + required: + - value + properties: + value: + type: string + + identifierCreateReq: + type: object + required: + - identifierType + - identifierValue + - status + properties: + identifierType: + $ref: "#/components/schemas/identifierType" + identifierValue: + type: string + status: + $ref: "#/components/schemas/identifierStatus" + + identifierUpdateReq: + type: object + required: + - status + properties: + status: + $ref: "#/components/schemas/identifierStatus" + + passkeyAppendStartReq: + type: object + required: + - userID + - processID + - username + - clientInformation + - passkeyIntelFlags + properties: + userID: + $ref: "common.yml#/components/schemas/userID" + processID: + type: string + username: + type: string + clientInformation: + $ref: "#/components/schemas/clientInformation" + passkeyIntelFlags: + $ref: "#/components/schemas/passkeyIntelFlags" + + passkeyAppendStartRsp: + type: object + required: + - appendAllow + - attestationOptions + - detectionInsights + - decisionInsights + properties: + appendAllow: + type: boolean + attestationOptions: + type: string + example: '{"publicKey":{"challenge":"2m6...0w9/MgW...KE=","rp":{"name":"demo","id":"localhost"},"user":{"name":"example@mail.com","id":"dXN...zk5"},"pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":false,"userVerification":"required"},"timeout":60000,"attestation":"none"}}' + detectionInsights: + $ref: "#/components/schemas/detectionInsights" + decisionInsights: + $ref: "#/components/schemas/decisionInsightsAppend" + + passkeyAppendFinishReq: + type: object + required: + - userID + - processID + - attestationResponse + - clientInformation + - trackingID + properties: + userID: + $ref: "common.yml#/components/schemas/userID" + processID: + type: string + attestationResponse: + type: string + example: '{"type":"public-key","id":"JM6...J_Q","rawId":"JM6...J_Q","authenticatorAttachment":null,"response":{"clientDataJSON":"eyJ...ZX0","authenticatorData":"SZY...AAQ","signature":"Ni7...YAg","userHandle":"dXN...zk5"},"clientExtensionResults":{}}' + clientInformation: + $ref: "#/components/schemas/clientInformation" + sendNotification: + type: boolean + trackingID: + type: string + + passkeyAppendFinishRsp: + type: object + required: + - passkeyData + properties: + passkeyData: + $ref: "#/components/schemas/passkeyData" + + passkeyLoginStartReq: + type: object + required: + - userID + - clientInformation + - crossDeviceAuthenticationStrategy + - processID + properties: + userID: + $ref: "common.yml#/components/schemas/userID" + clientInformation: + $ref: "#/components/schemas/clientInformation" + crossDeviceAuthenticationStrategy: + $ref: "#/components/schemas/crossDeviceAuthenticationStrategy" + processID: + type: string + + passkeyLoginStartRsp: + type: object + required: + - loginAllow + - assertionOptions + - detectionInsights + - decisionInsights + properties: + loginAllow: + type: boolean + assertionOptions: + type: string + detectionInsights: + $ref: "#/components/schemas/detectionInsights" + decisionInsights: + $ref: "#/components/schemas/decisionInsights" + + passkeyLoginFinishReq: + type: object + required: + - userID + - assertionResponse + - clientInformation + - processID + - trackingID + properties: + userID: + $ref: "common.yml#/components/schemas/userID" + assertionResponse: + type: string + clientInformation: + $ref: "#/components/schemas/clientInformation" + processID: + type: string + signPasskeyData: + type: boolean + trackingID: + type: string + + passkeyLoginFinishRsp: + type: object + required: + - passkeyData + properties: + passkeyData: + $ref: "#/components/schemas/passkeyData" + signedPasskeyData: + type: string + + passkeyPostLoginReq: + type: object + required: + - signedPasskeyData + properties: + signedPasskeyData: + type: string + + passkeyPostLoginRsp: + type: object + required: + - session + properties: + session: + type: string + + passkeyVerifySignedDataReq: + type: object + required: + - signedPasskeyData + - username + properties: + signedPasskeyData: + type: string + username: + type: string + + passkeyVerifySignedDataRsp: + type: object + required: + - verificationResult + properties: + verificationResult: + type: string + enum: + [ + "success", + "invalid_signature", + "invalid_challenge", + "user_mismatch", + "generic_error", + ] + + passkeyMediationStartReq: + type: object + required: + - clientInformation + properties: + clientInformation: + $ref: "#/components/schemas/clientInformation" + + passkeyMediationStartRsp: + type: object + required: + - loginAllow + - assertionOptions + properties: + loginAllow: + type: boolean + assertionOptions: + type: string + + passkeyMediationFinishReq: + type: object + required: + - assertionResponse + - clientInformation + - processID + - trackingID + properties: + assertionResponse: + type: string + clientInformation: + $ref: "#/components/schemas/clientInformation" + processID: + type: string + signPasskeyData: + type: boolean + trackingID: + type: string + + passkeyMediationFinishRsp: + type: object + required: + - passkeyData + properties: + passkeyData: + $ref: "#/components/schemas/passkeyData" + signedPasskeyData: + type: string + error: + oneOf: + - $ref: "#/components/schemas/passkeyMediationFinishErrorCredentialDeleted" + - $ref: "#/components/schemas/passkeyMediationFinishErrorAlternativeProject" + discriminator: + propertyName: type + mapping: + credentialDeleted: "#/components/schemas/passkeyMediationFinishErrorCredentialDeleted" + alternativeProjectID: "#/components/schemas/passkeyMediationFinishErrorAlternativeProject" + + passkeyMediationFinishErrorCredentialDeleted: + type: object + required: + - type + properties: + type: + type: string + enum: ["credentialDeleted"] + + passkeyMediationFinishErrorAlternativeProject: + type: object + required: + - type + - alternativeProjectName + properties: + type: + type: string + enum: ["alternativeProjectID"] + alternativeProjectName: + type: string + + connectTokenCreateReq: + type: object + required: + - type + - data + properties: + type: + $ref: "#/components/schemas/connectTokenType" + data: + $ref: "#/components/schemas/connectTokenData" + maxLifetimeInSeconds: + type: integer + description: Maximum lifetime of the connectToken in seconds. + example: 3600 + + connectTokenUpdateReq: + type: object + required: + - status + properties: + status: + $ref: "#/components/schemas/connectTokenStatus" + + webhookEndpointCreateReq: + type: object + required: + - url + - subscribedEvents + - customHeaders + properties: + url: + type: string + basicAuthUsername: + type: string + basicAuthPassword: + type: string + subscribedEvents: + type: array + items: + $ref: "#/components/schemas/webhookEventType" + customHeaders: + type: object + + webhookEndpointUpdateReq: + type: object + properties: + url: + type: string + basicAuthUsername: + type: string + basicAuthPassword: + type: string + subscribedEvents: + type: array + items: + $ref: "#/components/schemas/webhookEventType" + customHeaders: + type: object + + ################################################################### + # Entities # + ################################################################### + + passkeyData: + type: object + required: + - id + - userID + - username + - ceremonyType + - challengeID + - aaguidDetails + properties: + id: + type: string + userID: + type: string + username: + type: string + ceremonyType: + type: string + enum: ["local", "cda", "security-key"] + challengeID: + type: string + aaguidDetails: + $ref: "#/components/schemas/aaguidDetails" + + user: + type: object + required: + - userID + - status + - updated + - updatedMs + properties: + userID: + type: string + example: "usr-4693224802260150919" + fullName: + type: string + example: "Jane Doe" + status: + $ref: "#/components/schemas/userStatus" + explicitWebauthnID: + type: string + updated: + type: string + updatedMs: + type: integer + format: int64 + + userAggregate: + type: object + required: + - userID + - status + - emailIdentifiers + - phoneNumberIdentifiers + - usernameIdentifiers + - socialAccounts + - created + - createdMS + - updated + - updatedMs + properties: + userID: + type: string + example: "usr-4693224802260150919" + fullName: + type: string + example: "Jane Doe" + status: + $ref: "#/components/schemas/userStatus" + explicitWebauthnID: + type: string + emailIdentifiers: + type: array + items: + $ref: "#/components/schemas/identifier" + phoneNumberIdentifiers: + type: array + items: + $ref: "#/components/schemas/identifier" + usernameIdentifiers: + type: array + items: + $ref: "#/components/schemas/identifier" + socialAccounts: + type: array + items: + $ref: "#/components/schemas/socialAccount" + created: + type: string + createdMS: + type: integer + format: int64 + updated: + type: string + updatedMs: + type: integer + format: int64 + + userList: + type: object + required: + - users + - paging + properties: + users: + type: array + items: + $ref: "#/components/schemas/userAggregate" + paging: + $ref: "common.yml#/components/schemas/paging" + + sessionList: + type: object + required: + - sessions + - paging + properties: + sessions: + type: array + items: + $ref: "common.yml#/components/schemas/session" + paging: + $ref: "common.yml#/components/schemas/paging" + + identifier: + type: object + required: + - identifierID + - type + - value + - status + - userID + properties: + identifierID: + type: string + description: Unique identifier of the login identifier. + example: "ide-4693224802260150919" + type: + $ref: "#/components/schemas/identifierType" + value: + type: string + description: Value of the identifier (here email address). + example: "jane@doe.com" + status: + $ref: "#/components/schemas/identifierStatus" + userID: + type: string + description: Unique identifier of the user. + example: "usr-4693224802260150919" + + identifierList: + type: object + required: + - identifiers + - paging + properties: + identifiers: + type: array + items: + $ref: "#/components/schemas/identifier" + paging: + $ref: "common.yml#/components/schemas/paging" + + socialAccountCreateReq: + type: object + required: + - providerType + - identifierValue + - foreignID + - avatarURL + - fullName + properties: + providerType: + $ref: "common.yml#/components/schemas/socialProviderType" + identifierValue: + type: string + description: Login identifier of the user (here email address). + example: "jane@doe.com" + foreignID: + type: string + description: Unique identifier of the user in the social provider. + example: "53150919" + avatarURL: + type: string + description: URL of the avatar of the user in the social provider. + example: "https://avatars.githubusercontent.com/u/53150919?v=4" + fullName: + type: string + description: Full name of the user in the social provider. + example: "Jane Doe" + + socialAccount: + type: object + required: + - socialAccountID + - providerType + - identifierValue + - userID + - foreignID + - avatarURL + - fullName + properties: + socialAccountID: + type: string + description: Unique identifier of the social account. + example: "soc-6060375336139150919" + providerType: + type: string + description: Type of the social provider. + example: "github" + identifierValue: + type: string + description: Login identifier of the user (here email address). + example: "jane@doe.com" + userID: + type: string + description: Unique identifier of the user. + example: "usr-4693224802260150919" + foreignID: + type: string + description: Unique identifier of the user in the social provider. + example: "53150919" + avatarURL: + type: string + description: URL of the avatar of the user in the social provider. + example: "https://avatars.githubusercontent.com/u/53150919?v=4" + fullName: + type: string + description: Full name of the user in the social provider. + example: "Jane Doe" + + socialAccountList: + type: object + required: + - socialAccounts + - paging + properties: + socialAccounts: + type: array + items: + $ref: "#/components/schemas/socialAccount" + paging: + $ref: "common.yml#/components/schemas/paging" + + credential: + type: object + required: + - id + - credentialID + - attestationType + - transport + - backupEligible + - backupState + - authenticatorAAGUID + - aaguidDetails + - sourceOS + - sourceBrowser + - lastUsed + - lastUsedMs + - created + - createdMs + - status + - tags + properties: + id: + type: string + example: "cre-12345" + credentialID: + type: string + attestationType: + type: string + transport: + type: array + items: + type: string + enum: ["usb", "nfc", "ble", "internal", "hybrid", "smart-card"] + backupEligible: + type: boolean + backupState: + type: boolean + authenticatorAAGUID: + type: string + sourceOS: + type: string + sourceBrowser: + type: string + lastUsed: + type: string + description: Timestamp of when the passkey was last used in yyyy-MM-dd'T'HH:mm:ss format + lastUsedMs: + type: integer + format: int64 + created: + $ref: "common.yml#/components/schemas/created" + createdMs: + type: integer + format: int64 + status: + type: string + enum: ["pending", "active"] + description: "Status" + aaguidDetails: + $ref: "#/components/schemas/aaguidDetails" + tags: + type: array + items: + type: string + + aaguidDetails: + type: object + required: + - aaguid + - name + - iconLight + - iconDark + properties: + aaguid: + type: string + name: + type: string + iconLight: + type: string + iconDark: + type: string + + credentialList: + type: object + required: + - credentials + - paging + properties: + credentials: + type: array + items: + $ref: "#/components/schemas/credential" + paging: + $ref: "common.yml#/components/schemas/paging" + + challenge: + type: object + required: + - challengeID + - type + - identifierValue + - value + - expires + - status + properties: + challengeID: + type: string + type: + $ref: "#/components/schemas/challengeType" + identifierValue: + type: string + value: + type: string + expires: + type: integer + format: int64 + status: + $ref: "#/components/schemas/challengeStatus" + + authEventCreateReq: + type: object + required: + - username + - eventType + - method + - status + - clientInformation + properties: + username: + type: string + eventType: + $ref: "#/components/schemas/authEventType" + method: + $ref: "#/components/schemas/authEventMethod" + status: + $ref: "#/components/schemas/authEventStatus" + clientInformation: + $ref: "#/components/schemas/clientInformation" + + authEvent: + type: object + required: + - authEventID + - userID + - username + - eventType + - method + - created + - createdMs + - status + properties: + authEventID: + type: string + userID: + $ref: "common.yml#/components/schemas/userID" + username: + type: string + eventType: + $ref: "#/components/schemas/authEventType" + method: + $ref: "#/components/schemas/authEventMethod" + created: + $ref: "common.yml#/components/schemas/created" + createdMs: + type: integer + format: int64 + status: + $ref: "#/components/schemas/authEventStatus" + + passkeyEventCreateReq: + type: object + required: + - eventType + properties: + eventType: + $ref: "#/components/schemas/passkeyEventType" + expires: + type: integer + processID: + type: string + clientEnvID: + type: string + credentialID: + type: string + challenge: + type: string + + passkeyEvent: + type: object + required: + - passkeyEventID + - userID + - eventType + - created + - createdMs + properties: + passkeyEventID: + type: string + userID: + $ref: "common.yml#/components/schemas/userID" + eventType: + $ref: "#/components/schemas/passkeyEventType" + clientEnvID: + type: string + processID: + type: string + credentialID: + type: string + expires: + type: integer + created: + $ref: "common.yml#/components/schemas/created" + createdMs: + type: integer + format: int64 + + passkeyEventList: + type: object + required: + - passkeyEvents + - paging + properties: + passkeyEvents: + type: array + items: + $ref: "#/components/schemas/passkeyEvent" + paging: + $ref: "common.yml#/components/schemas/paging" + + projectConfigUpdateCnameReq: + type: object + required: + - cname + properties: + cname: + type: string + + detectionTag: + type: object + required: + - category + - name + properties: + category: + type: string + enum: ["support", "clientEnv", "history", "passkey"] + name: + type: string + + decisionTag: + type: string + enum: + - env-no-platform-pk-support + - env-no-pk-support + - user-no-pks + - user-login-blacklisted + - user-security-key + - user-positive-env-history + - user-negative-env-history + - env-blacklisted + - user-platform-pk-high-confidence + - user-cross-platform-pk-high-confidence + - user-env-no-pks + - default-deny + - passkey-list-initiated-process + - user-append-blacklisted + - process-pk-login-sk-completed + - process-pk-login-platform-completed + - process-pk-login-not-offered + - process-pk-login-incomplete + - process-pk-login-cross-platform-completed + - device-local-platform-passkey-experiment + - env-broken + - process-pk-login-aborted + + clientInformation: + type: object + required: + - remoteAddress + - userAgent + - userVerifyingPlatformAuthenticatorAvailable + - conditionalMediationAvailable + - parsedDeviceInfo + properties: + remoteAddress: + description: Client's IP address + type: string + example: "::ffff:172.18.0.1" + userAgent: + description: Client's user agent + type: string + example: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" + clientEnvHandle: + description: Client's environment handle + type: string + javascriptFingerprint: + description: Client's fingerprint + type: string + javaScriptHighEntropy: + $ref: "#/components/schemas/javaScriptHighEntropy" + bluetoothAvailable: + description: Client's Bluetooth availability + type: boolean + passwordManagerAvailable: + description: Client's password manager availability + type: boolean + userVerifyingPlatformAuthenticatorAvailable: + type: boolean + conditionalMediationAvailable: + type: boolean + privateMode: + type: boolean + parsedDeviceInfo: + $ref: "#/components/schemas/parsedDeviceInfo" + nativeMeta: + $ref: "#/components/schemas/nativeMeta" + + parsedDeviceInfo: + type: object + required: + - browserName + - browserVersion + - osName + - osVersion + properties: + browserName: + type: string + browserVersion: + type: string + osName: + type: string + osVersion: + type: string + + nativeMeta: + type: object + required: + - build + properties: + build: + type: string + deviceOwnerAuth: + type: string + isPlatformAuthenticatorAPISupported: + type: boolean + isBluetoothAvailable: + type: boolean + isBluetoothOn: + type: boolean + googlePlayServices: + type: boolean + deviceSecure: + type: boolean + + passkeyIntelFlags: + type: object + required: + - forcePasskeyAppend + properties: + forcePasskeyAppend: + type: boolean + askForAutoAppend: + type: boolean + + javaScriptHighEntropy: + type: object + required: + - platform + - platformVersion + - mobile + properties: + platform: + type: string + platformVersion: + type: string + mobile: + type: boolean + + passkeyChallengeUpdateReq: + type: object + required: + - status + properties: + status: + $ref: "#/components/schemas/passkeyChallengeStatus" + + passkeyChallengeList: + type: object + required: + - passkeyChallenges + - paging + properties: + passkeyChallenges: + type: array + items: + $ref: "#/components/schemas/passkeyChallenge" + paging: + $ref: "common.yml#/components/schemas/paging" + + passkeyChallenge: + type: object + required: + - challengeID + - type + - value + - status + - created + - createdMs + - expires + properties: + challengeID: + type: string + type: + $ref: "#/components/schemas/passkeyChallengeType" + value: + type: string + status: + $ref: "#/components/schemas/passkeyChallengeStatus" + created: + type: integer + format: int64 + createdMs: + type: integer + format: int64 + expires: + type: integer + format: int64 + + passkeyChallengeType: + type: string + enum: ["register", "authenticate"] + + passkeyChallengeStatus: + type: string + enum: ["pending", "completed", "consumed"] + + userStatus: + type: string + enum: ["pending", "active", "disabled"] + + challengeType: + type: string + enum: ["email_otp", "email_link", "sms_otp"] + + challengeStatus: + type: string + enum: ["pending", "completed", "expired"] + + identifierType: + type: string + enum: ["email", "phone", "username"] + + identifierStatus: + type: string + enum: ["pending", "primary", "verified"] + + crossDeviceAuthenticationStrategy: + type: string + enum: ["standard", "minimize", "maximize"] + + connectTokenStatus: + type: string + enum: ["initial", "consumed"] + + connectTokenType: + type: string + enum: + ["passkey-append", "passkey-delete", "passkey-list", "passkey-login"] + + authEventMethod: + type: string + enum: + [ + "password", + "email_otp", + "email_link", + "phone_otp", + "passkey", + "social_github", + "social_google", + "social_microsoft", + ] + + authEventType: + type: string + enum: ["sign_up", "login", "new_passkey_added"] + + authEventStatus: + type: string + enum: ["success", "failure"] + + webhookEventType: + type: string + enum: + [ + "passkey-login.completed", + "passkey.created", + "passkey.deleted", + "user.created", + "user.updated", + "user.deleted", + ] + + passkeyEventType: + type: string + enum: + - user-login-blacklisted + - login-explicit-abort + - login-error + - login-error-untyped + - login-one-tap-switch + - user-append-after-cross-platform-blacklisted + - user-append-after-login-error-blacklisted + - append-credential-exists + - append-explicit-abort + - append-error + - login-no-credentials + + connectToken: + type: object + required: + - id + - tokenType + - data + - connectTokenStatus + - expires + properties: + id: + type: string + description: Unique identifier of the connectToken. + example: "ctk-940364795071150919" + tokenType: + $ref: "#/components/schemas/connectTokenType" + data: + $ref: "#/components/schemas/connectTokenData" + connectTokenStatus: + $ref: "#/components/schemas/connectTokenStatus" + secret: + type: string + description: Secret of the connectToken. + example: "ctk1_sxmexzS7RFBaJSA4V4kBFPs45bkxMK" + expires: + type: integer + description: Unix time of when the connectToken expires (in seconds elapsed since January 1, 1970, 00:00:00 UTC). + example: 1752749184 + + connectTokenDataPasskeyAppend: + type: object + description: Data for `passkey-append`. + required: + - displayName + - identifier + properties: + displayName: + type: string + description: Display name of the user. + example: "Jane Doe" + identifier: + type: string + description: Login identifier of the user (here email address). + example: "jane@doe.com" + + connectTokenDataPasskeyDelete: + type: object + description: Data for `passkey-delete`. + required: + - identifier + properties: + identifier: + type: string + description: Login identifier of the user (here email address). + example: "jane@doe.com" + + connectTokenDataPasskeyList: + type: object + description: Data for `passkey-list`. + required: + - identifier + properties: + identifier: + type: string + description: Login identifier of the user (here email address). + example: "jane@doe.com" + + connectTokenDataPasskeyLogin: + type: object + description: Data for `passkey-login`. + required: + - identifier + properties: + identifier: + type: string + description: Login identifier of the user (here email address). + example: "jane@doe.com" + + connectTokenData: + type: object + oneOf: + - $ref: "#/components/schemas/connectTokenDataPasskeyAppend" + - $ref: "#/components/schemas/connectTokenDataPasskeyDelete" + - $ref: "#/components/schemas/connectTokenDataPasskeyList" + - $ref: "#/components/schemas/connectTokenDataPasskeyLogin" + + connectTokenList: + type: object + required: + - connectTokens + - paging + properties: + connectTokens: + type: array + items: + $ref: "#/components/schemas/connectToken" + paging: + $ref: "common.yml#/components/schemas/paging" + + webhookEndpointList: + type: object + required: + - webhookEndpoints + properties: + webhookEndpoints: + type: array + items: + $ref: "#/components/schemas/webhookEndpoint" + + webhookEndpoint: + type: object + required: + - id + - url + - basicAuthUsername + - basicAuthPassword + - customHeaders + - subscribedEvents + - created + - createdMs + - updated + - updatedMs + properties: + id: + type: string + url: + type: string + basicAuthUsername: + type: string + basicAuthPassword: + type: string + customHeaders: + type: object + subscribedEvents: + type: array + items: + $ref: "#/components/schemas/webhookEventType" + created: + type: string + createdMs: + type: integer + format: int64 + updated: + type: string + updatedMs: + type: integer + format: int64 + + detectionInsights: + type: object + required: + - tags + - credentialIds + - clientEnvIds + - isCDACandidate + - passwordManagerIds + - historyData + properties: + tags: + type: array + items: + $ref: "#/components/schemas/detectionTag" + credentialIds: + type: array + items: + type: string + clientEnvIds: + type: array + items: + type: string + passwordManagerIds: + type: array + items: + type: string + historyData: + $ref: "#/components/schemas/appendHistoryData" + + appendHistoryData: + type: object + required: + - defaultCount + - afterErrorCount + - afterHybridCount + - autoCount + - defaultCooldown + - afterErrorCooldown + - afterHybridCooldown + - autoCooldown + properties: + defaultCount: + type: integer + afterErrorCount: + type: integer + afterHybridCount: + type: integer + autoCount: + type: integer + defaultCooldown: + type: boolean + afterErrorCooldown: + type: boolean + afterHybridCooldown: + type: boolean + autoCooldown: + type: boolean + + decisionInsights: + type: object + required: + - tag + - isCDACandidate + - experiments + properties: + tag: + $ref: "#/components/schemas/decisionTag" + isCDACandidate: + type: boolean + experiments: + type: array + items: + type: string + preferImmediatelyAvailable: + type: boolean + + decisionInsightsAppend: + type: object + required: + - tag + - isRestrictedBrowser + - variant + - auto + properties: + tag: + $ref: "#/components/schemas/decisionTag" + isRestrictedBrowser: + type: boolean + variant: + type: string + enum: + [ + "default", + "after-error", + "after-hybrid", + "passkey-list", + "after-no-credential", + ] + auto: + type: boolean + + passwordManagerList: + type: object + required: + - passwordManagers + properties: + passwordManagers: + type: array + items: + $ref: "#/components/schemas/passwordManager" + + passwordManager: + type: object + required: + - id + - userID + - clientEnvID + - credentialID + - aaguid + - status + - score + - createdMs + properties: + id: + type: string + userID: + type: string + clientEnvID: + type: string + credentialID: + type: string + aaguid: + type: string + status: + type: string + score: + type: integer + createdMs: + type: integer + format: int64 + + clientEnvList: + type: object + required: + - clientEnvs + properties: + clientEnvs: + type: array + items: + $ref: "#/components/schemas/clientEnv" + + clientEnv: + type: object + required: + - id + - handle + - browserName + - browserVersion + - osName + - osVersion + - userAgent + - jsFingerprint + - createdMs + properties: + id: + type: string + handle: + type: string + browserName: + type: string + browserVersion: + type: string + osName: + type: string + osVersion: + type: string + userAgent: + type: string + jsFingerprint: + type: string + createdMs: + type: integer + format: int64 + deviceId: + type: string + + responses: + ################################################################### + # Responses: Error # + ################################################################### + error: + description: Error + content: + application/json: + schema: + $ref: "common.yml#/components/schemas/errorRsp" + "200": + description: Operation succeeded. + content: + application/json: + schema: + $ref: "common.yml#/components/schemas/genericRsp" + +################################################################### +# Security # +################################################################### +security: + - basicAuth: [] diff --git a/scripts/common.yml b/scripts/common.yml new file mode 100644 index 0000000..51362a0 --- /dev/null +++ b/scripts/common.yml @@ -0,0 +1,610 @@ +openapi: 3.0.3 + +info: + version: 1.0.0 + title: Corbado generic API entities + description: Overview of all Corbado generic API entities. + contact: + name: Corbado API Team + email: support@corbado.com + url: https://www.corbado.com + +servers: + - url: https://api.corbado.com + +tags: + - name: Common + description: Common entities + +paths: + # This has to be there with all possible schemas references, so that the generator actually generates types for them + /unused/{sessionID}: + get: + description: unused + operationId: unused + tags: + - Common + security: + - projectID: [] + parameters: + - $ref: "#/components/parameters/remoteAddress" + - $ref: "#/components/parameters/userAgent" + - $ref: "#/components/parameters/sort" + - $ref: "#/components/parameters/filter" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/pageSize" + - $ref: "#/components/parameters/sessionID" + responses: + "200": + description: unused + content: + application/json: + schema: + $ref: "#/components/schemas/allTypes" + +components: + securitySchemes: + projectID: + in: header + name: X-Corbado-ProjectID + type: apiKey + + parameters: + remoteAddress: + name: remoteAddress + in: query + description: Client's remote address + required: false + schema: + type: string + + userAgent: + name: userAgent + in: query + description: | + The User-Agent header of the client’s browser or device. Useful for device fingerprinting or debugging. + Example: `Mozilla/5.0 (Windows NT 10.0; Win64; x64)` + required: false + schema: + type: string + example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) + + sort: + name: sort + in: query + description: | + Field and direction to sort results. Use the format `fieldName:asc` or `fieldName:desc`. + required: false + schema: + type: string + example: createdAt:desc + + filter: + name: filter[] + in: query + description: | + Filter results by specific fields and conditions. Format: `::`. + Supported operators include: + - `eq`: equals (e\.g\. `email:eq:mail@example\.com` matches items where email equals mail@example\.com) + - `gt`: greater than (e\.g\. `created:gt:2021-01-01T00:00:00` matches items created after Jan 1, 2021) + - `lt`: less than (e\.g\. `created:lt:2021-01-01T00:00:00` matches items created before Jan 1, 2021) + required: false + style: form + explode: true + schema: + type: array + items: + type: string + examples: + filterEmail: + summary: Filter by email address + value: + - identifierType:eq:email + - identifierValue:eq:mail@example.com + filterTimepoint: + summary: Filter by date after July 20, 2021 + value: + - timePoint:gt:2021-07-20T00:00:00 + + page: + name: page + in: query + description: | + The page number to retrieve for paginated results. + required: false + schema: + type: integer + default: 1 + example: 1 + + pageSize: + name: pageSize + in: query + description: | + The number of items to return per page. Useful for pagination. + required: false + schema: + type: integer + default: 10 + example: 20 + + sessionID: + name: sessionID + in: path + description: ID of session + required: true + schema: + type: string + minLength: 30 + maxLength: 30 + + schemas: + paging: + type: object + required: + - page + - totalPages + - totalItems + properties: + page: + description: current page returned in response + type: integer + default: 1 + totalPages: + description: total number of pages available + type: integer + totalItems: + description: total number of items available + type: integer + + clientInfo: + type: object + required: + - remoteAddress + - userAgent + properties: + remoteAddress: + description: client's IP address + type: string + example: "::ffff:172.18.0.1" + userAgent: + description: client's User Agent + type: string + example: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" + + status: + type: string + enum: ["active", "pending", "deleted"] + description: Generic status that can describe Corbado entities + + authMethods: + type: array + items: + $ref: "#/components/schemas/authMethod" + + authMethod: + type: string + enum: ["email", "phone_number", "webauthn", "password"] + description: Authentication methods + + fullUser: + type: object + description: User entry with emails and phone numbers + required: + - ID + - name + - fullName + - created + - updated + - status + - emails + - phoneNumbers + - usernames + - socialAccounts + properties: + ID: + $ref: "#/components/schemas/userID" + name: + type: string + fullName: + type: string + created: + $ref: "#/components/schemas/created" + updated: + $ref: "#/components/schemas/updated" + status: + $ref: "#/components/schemas/status" + emails: + type: array + items: + $ref: "#/components/schemas/userEmail" + phoneNumbers: + type: array + items: + $ref: "#/components/schemas/userPhoneNumber" + usernames: + type: array + items: + $ref: "#/components/schemas/userUsername" + socialAccounts: + type: array + items: + $ref: "#/components/schemas/userSocialAccount" + + userEmail: + type: object + description: User's email + required: + - ID + - email + - created + - updated + - status + properties: + ID: + $ref: "#/components/schemas/ID" + email: + type: string + created: + $ref: "#/components/schemas/created" + updated: + $ref: "#/components/schemas/updated" + status: + $ref: "#/components/schemas/status" + + userSocialAccount: + type: object + description: User's social account + required: + - providerType + - identifierValue + - avatarUrl + - fullName + properties: + providerType: + $ref: "#/components/schemas/socialProviderType" + identifierValue: + type: string + avatarUrl: + type: string + fullName: + type: string + + userPhoneNumber: + type: object + description: User's phone number + required: + - ID + - phoneNumber + - created + - updated + - status + properties: + ID: + $ref: "#/components/schemas/ID" + phoneNumber: + type: string + created: + $ref: "#/components/schemas/created" + updated: + $ref: "#/components/schemas/updated" + status: + $ref: "#/components/schemas/status" + + userUsername: + type: object + description: User's username + required: + - ID + - username + - created + - updated + - status + properties: + ID: + $ref: "#/components/schemas/ID" + username: + type: string + created: + $ref: "#/components/schemas/created" + updated: + $ref: "#/components/schemas/updated" + status: + $ref: "#/components/schemas/status" + + highEntropyValues: + description: High entropy values from browser + type: object + required: + - platform + - platformVersion + - mobile + properties: + platform: + description: Platform + type: string + example: "macOS" + platformVersion: + description: Platform version + type: string + example: "14.1.2" + mobile: + description: Mobile + type: boolean + + ID: + description: generic ID + type: string + + userID: + description: ID of the user + type: string + + deviceID: + description: ID of the device + type: string + + emailID: + description: ID of the email + type: string + + phoneNumberID: + description: ID of the phone number + type: string + + projectID: + description: ID of project + type: string + + requestID: + description: Unique ID of request, you can provide your own while making the request, if not the ID will be randomly generated on server side + type: string + example: "req-557...663" + + emailLinkID: + description: ID of the email magic link + type: string + + emailCodeID: + description: ID of the email OTP + type: string + + additionalPayload: + description: Additional payload in JSON format + type: string + example: '{"projectAbbreviation":"CRBD"}' + + created: + description: Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format + type: string + + updated: + description: Timestamp of when the entity was last updated in yyyy-MM-dd'T'HH:mm:ss format + type: string + + deleted: + description: Timestamp of when the entity was deleted in yyyy-MM-dd'T'HH:mm:ss format + type: string + + loginIdentifierType: + description: Login Identifier type (deprecated) + type: string + enum: ["email", "phone_number", "custom"] + + identifierType: + description: Login Identifier type + type: string + enum: ["email", "phone", "username"] + + appType: + description: Application type + type: string + enum: ["empty", "web", "native"] + + sessionManagement: + description: What session management should be used + type: string + enum: ["SessionManagementCorbado", "SessionManagementOwn"] + + requestData: + description: Data about the request itself, can be used for debugging + type: object + required: + - requestID + properties: + requestID: + $ref: "#/components/schemas/requestID" + link: + description: Link to dashboard with details about request + type: string + example: "https://my.corbado.com/requests/req-xxxxxxxxxxxxxxxxxxx" + + loginIdentifierConfig: + type: object + required: + - type + - enforceVerification + - useAsLoginIdentifier + properties: + type: + $ref: "#/components/schemas/identifierType" + enforceVerification: + type: string + enum: [none, signup, at_first_login] + useAsLoginIdentifier: + type: boolean + metadata: + type: object + + socialProviderType: + type: string + description: Type of the social provider. + enum: ["google", "microsoft", "github"] + + session: + type: object + required: + - sessionID + - userID + - identifierValue + - createdMs + - lastActionMs + - expiresMs + - status + properties: + sessionID: + type: string + description: Unique identifier of the session. + example: "V4Gy2mCXekKuvKwbG81ysvegY9dB01" + userID: + type: string + description: Unique identifier of the user. + example: "usr-4693224802260150919" + identifierValue: + type: string + description: Login identifier of the user (here email address). + example: "jane@doe.com" + createdMs: + type: integer + format: int64 + description: Unix time of when the session was created (in milliseconds elapsed since January 1, 1970, 00:00:00 UTC). + example: 1752738240000 + lastActionMs: + type: integer + format: int64 + description: Unix time of when last action (e.g., refresh) on session occurred (in milliseconds elapsed since January 1, 1970, 00:00:00 UTC). + example: 1752738240000 + expiresMs: + type: integer + format: int64 + description: Unix time of when the session expires (in milliseconds elapsed since January 1, 1970, 00:00:00 UTC). + example: 1755330240000 + status: + $ref: "#/components/schemas/sessionStatus" + + sessionStatus: + type: string + enum: ["active", "logged_out", "expired", "inactivity_reached", "revoked"] + + # this is necessary so that code generator doesn't ignore "unused" types + allTypes: + type: object + properties: + p1: + $ref: "#/components/schemas/paging" + p2: + $ref: "#/components/schemas/clientInfo" + p3: + $ref: "#/components/schemas/ID" + p4: + $ref: "#/components/schemas/userID" + p5: + $ref: "#/components/schemas/emailID" + p6: + $ref: "#/components/schemas/emailLinkID" + p7: + $ref: "#/components/schemas/phoneNumberID" + p8: + $ref: "#/components/schemas/created" + p9: + $ref: "#/components/schemas/updated" + p10: + $ref: "#/components/schemas/deleted" + p11: + $ref: "#/components/schemas/deviceID" + p12: + $ref: "#/components/schemas/additionalPayload" + p13: + $ref: "#/components/schemas/status" + p14: + $ref: "#/components/schemas/projectID" + p15: + $ref: "#/components/schemas/requestID" + p16: + $ref: "#/components/schemas/errorRsp" + p17: + $ref: "#/components/schemas/authMethods" + p18: + $ref: "#/components/schemas/fullUser" + p19: + $ref: "#/components/schemas/loginIdentifierType" + p20: + $ref: "#/components/schemas/emailCodeID" + p21: + $ref: "#/components/schemas/appType" + p22: + $ref: "#/components/schemas/sessionManagement" + p23: + $ref: "#/components/schemas/highEntropyValues" + p24: + $ref: "#/components/schemas/loginIdentifierConfig" + p25: + $ref: "#/components/schemas/socialProviderType" + p26: + $ref: "#/components/schemas/identifierType" + p27: + $ref: "#/components/schemas/session" + p28: + $ref: "#/components/schemas/sessionStatus" + + genericRsp: + type: object + required: + - httpStatusCode + - message + - requestData + - runtime + properties: + httpStatusCode: + description: HTTP status code of operation + type: integer + format: int32 + message: + type: string + example: "OK" + requestData: + $ref: "#/components/schemas/requestData" + runtime: + description: Runtime in seconds for this request + type: number + format: float + example: 0.06167686 + + errorRsp: + allOf: + - $ref: "#/components/schemas/genericRsp" + - type: object + required: + - error + properties: + data: + type: object + error: + type: object + required: + - type + properties: + type: + description: Type of error + type: string + details: + description: Details of error + type: string + validation: + description: Validation errors per field + type: array + items: + type: object + required: + - field + - message + properties: + field: + type: string + message: + type: string + links: + description: Additional links to help understand the error + type: array + items: + type: string diff --git a/scripts/generate-openapi.sh b/scripts/generate-openapi.sh index 35ecc49..122b394 100644 --- a/scripts/generate-openapi.sh +++ b/scripts/generate-openapi.sh @@ -13,7 +13,9 @@ cd .gen rm -rf ../../src/main/java/$SDK_PACKAGE_NAME/$GENERATED_PACKAGE_NAME mkdir -p ../../src/main/java/$SDK_PACKAGE_NAME/$GENERATED_PACKAGE_NAME -curl -s https://backendapi.cloud.corbado.io/v2/openapi.yaml -o backend_api.yml +cp ../backend_api.yml backend_api.yml +cp ../common.yml common.yml + docker pull openapitools/openapi-generator-cli docker run -v ${PWD}:/local --user $(id -u):$(id -g) openapitools/openapi-generator-cli generate \ -i /local/backend_api.yml \ diff --git a/src/main/java/com/corbado/generated/api/AuthEventsApi.java b/src/main/java/com/corbado/generated/api/AuthEventsApi.java index b992358..679adb1 100644 --- a/src/main/java/com/corbado/generated/api/AuthEventsApi.java +++ b/src/main/java/com/corbado/generated/api/AuthEventsApi.java @@ -29,7 +29,7 @@ import com.corbado.generated.model.AuthEvent; import com.corbado.generated.model.AuthEventCreateReq; -import com.corbado.generated.model.UserListDefaultResponse; +import com.corbado.generated.model.ErrorRsp; import java.lang.reflect.Type; import java.util.ArrayList; diff --git a/src/main/java/com/corbado/generated/api/ChallengesApi.java b/src/main/java/com/corbado/generated/api/ChallengesApi.java index 2bb92ec..ed269bc 100644 --- a/src/main/java/com/corbado/generated/api/ChallengesApi.java +++ b/src/main/java/com/corbado/generated/api/ChallengesApi.java @@ -30,7 +30,7 @@ import com.corbado.generated.model.Challenge; import com.corbado.generated.model.ChallengeCreateReq; import com.corbado.generated.model.ChallengeUpdateReq; -import com.corbado.generated.model.UserListDefaultResponse; +import com.corbado.generated.model.ErrorRsp; import java.lang.reflect.Type; import java.util.ArrayList; diff --git a/src/main/java/com/corbado/generated/api/ClientEnvsApi.java b/src/main/java/com/corbado/generated/api/ClientEnvsApi.java index c484e03..f7c4dbe 100644 --- a/src/main/java/com/corbado/generated/api/ClientEnvsApi.java +++ b/src/main/java/com/corbado/generated/api/ClientEnvsApi.java @@ -28,7 +28,7 @@ import com.corbado.generated.model.ClientEnvList; -import com.corbado.generated.model.UserListDefaultResponse; +import com.corbado.generated.model.ErrorRsp; import java.lang.reflect.Type; import java.util.ArrayList; diff --git a/src/main/java/com/corbado/generated/api/ConnectTokensApi.java b/src/main/java/com/corbado/generated/api/ConnectTokensApi.java index 9c52b23..a4d577b 100644 --- a/src/main/java/com/corbado/generated/api/ConnectTokensApi.java +++ b/src/main/java/com/corbado/generated/api/ConnectTokensApi.java @@ -31,8 +31,8 @@ import com.corbado.generated.model.ConnectTokenCreateReq; import com.corbado.generated.model.ConnectTokenList; import com.corbado.generated.model.ConnectTokenUpdateReq; -import com.corbado.generated.model.UserDelete200Response; -import com.corbado.generated.model.UserListDefaultResponse; +import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.GenericRsp; import java.lang.reflect.Type; import java.util.ArrayList; @@ -282,7 +282,7 @@ private okhttp3.Call connectTokenDeleteValidateBeforeCall(@javax.annotation.Nonn * Delete a ConnectToken * Deletes an existing ConnectToken. * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -292,8 +292,8 @@ private okhttp3.Call connectTokenDeleteValidateBeforeCall(@javax.annotation.Nonn
0 Error -
*/ - public UserDelete200Response connectTokenDelete(@javax.annotation.Nonnull String connectTokenID) throws ApiException { - ApiResponse localVarResp = connectTokenDeleteWithHttpInfo(connectTokenID); + public GenericRsp connectTokenDelete(@javax.annotation.Nonnull String connectTokenID) throws ApiException { + ApiResponse localVarResp = connectTokenDeleteWithHttpInfo(connectTokenID); return localVarResp.getData(); } @@ -301,7 +301,7 @@ public UserDelete200Response connectTokenDelete(@javax.annotation.Nonnull String * Delete a ConnectToken * Deletes an existing ConnectToken. * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -311,9 +311,9 @@ public UserDelete200Response connectTokenDelete(@javax.annotation.Nonnull String
0 Error -
*/ - public ApiResponse connectTokenDeleteWithHttpInfo(@javax.annotation.Nonnull String connectTokenID) throws ApiException { + public ApiResponse connectTokenDeleteWithHttpInfo(@javax.annotation.Nonnull String connectTokenID) throws ApiException { okhttp3.Call localVarCall = connectTokenDeleteValidateBeforeCall(connectTokenID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -332,10 +332,10 @@ public ApiResponse connectTokenDeleteWithHttpInfo(@javax. 0 Error - */ - public okhttp3.Call connectTokenDeleteAsync(@javax.annotation.Nonnull String connectTokenID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenDeleteAsync(@javax.annotation.Nonnull String connectTokenID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectTokenDeleteValidateBeforeCall(connectTokenID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -574,7 +574,7 @@ private okhttp3.Call connectTokenUpdateValidateBeforeCall(@javax.annotation.Nonn * Updates an existing ConnectToken. * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param connectTokenUpdateReq (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -584,8 +584,8 @@ private okhttp3.Call connectTokenUpdateValidateBeforeCall(@javax.annotation.Nonn
0 Error -
*/ - public UserDelete200Response connectTokenUpdate(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { - ApiResponse localVarResp = connectTokenUpdateWithHttpInfo(connectTokenID, connectTokenUpdateReq); + public GenericRsp connectTokenUpdate(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { + ApiResponse localVarResp = connectTokenUpdateWithHttpInfo(connectTokenID, connectTokenUpdateReq); return localVarResp.getData(); } @@ -594,7 +594,7 @@ public UserDelete200Response connectTokenUpdate(@javax.annotation.Nonnull String * Updates an existing ConnectToken. * @param connectTokenID Unique identifier of the connectToken. Format: `ctk-<number>`. (required) * @param connectTokenUpdateReq (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -604,9 +604,9 @@ public UserDelete200Response connectTokenUpdate(@javax.annotation.Nonnull String
0 Error -
*/ - public ApiResponse connectTokenUpdateWithHttpInfo(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { + public ApiResponse connectTokenUpdateWithHttpInfo(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq) throws ApiException { okhttp3.Call localVarCall = connectTokenUpdateValidateBeforeCall(connectTokenID, connectTokenUpdateReq, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -626,10 +626,10 @@ public ApiResponse connectTokenUpdateWithHttpInfo(@javax. 0 Error - */ - public okhttp3.Call connectTokenUpdateAsync(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call connectTokenUpdateAsync(@javax.annotation.Nonnull String connectTokenID, @javax.annotation.Nonnull ConnectTokenUpdateReq connectTokenUpdateReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectTokenUpdateValidateBeforeCall(connectTokenID, connectTokenUpdateReq, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/IdentifiersApi.java b/src/main/java/com/corbado/generated/api/IdentifiersApi.java index 899b277..6651ac3 100644 --- a/src/main/java/com/corbado/generated/api/IdentifiersApi.java +++ b/src/main/java/com/corbado/generated/api/IdentifiersApi.java @@ -27,12 +27,12 @@ import java.io.IOException; +import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.Identifier; import com.corbado.generated.model.IdentifierCreateReq; import com.corbado.generated.model.IdentifierList; import com.corbado.generated.model.IdentifierUpdateReq; -import com.corbado.generated.model.UserDelete200Response; -import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -300,7 +300,7 @@ private okhttp3.Call identifierDeleteValidateBeforeCall(@javax.annotation.Nonnul * Delete an existing login identifier for a user by given `userID` and `identifierID`. * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -310,8 +310,8 @@ private okhttp3.Call identifierDeleteValidateBeforeCall(@javax.annotation.Nonnul
0 Error -
*/ - public UserDelete200Response identifierDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID) throws ApiException { - ApiResponse localVarResp = identifierDeleteWithHttpInfo(userID, identifierID); + public GenericRsp identifierDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID) throws ApiException { + ApiResponse localVarResp = identifierDeleteWithHttpInfo(userID, identifierID); return localVarResp.getData(); } @@ -320,7 +320,7 @@ public UserDelete200Response identifierDelete(@javax.annotation.Nonnull String u * Delete an existing login identifier for a user by given `userID` and `identifierID`. * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param identifierID Unique identifier of the login identifier (e.g., email address or phone number). Format: `ide-<number>`. (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -330,9 +330,9 @@ public UserDelete200Response identifierDelete(@javax.annotation.Nonnull String u
0 Error -
*/ - public ApiResponse identifierDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID) throws ApiException { + public ApiResponse identifierDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID) throws ApiException { okhttp3.Call localVarCall = identifierDeleteValidateBeforeCall(userID, identifierID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -352,10 +352,10 @@ public ApiResponse identifierDeleteWithHttpInfo(@javax.an 0 Error - */ - public okhttp3.Call identifierDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call identifierDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String identifierID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = identifierDeleteValidateBeforeCall(userID, identifierID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java b/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java index 6717206..5e0e25d 100644 --- a/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java +++ b/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java @@ -27,10 +27,10 @@ import java.io.IOException; +import com.corbado.generated.model.ErrorRsp; import com.corbado.generated.model.PasskeyChallenge; import com.corbado.generated.model.PasskeyChallengeList; import com.corbado.generated.model.PasskeyChallengeUpdateReq; -import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; diff --git a/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java b/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java index b2bbcad..427fb57 100644 --- a/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java +++ b/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java @@ -27,11 +27,11 @@ import java.io.IOException; +import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.PasskeyEvent; import com.corbado.generated.model.PasskeyEventCreateReq; import com.corbado.generated.model.PasskeyEventList; -import com.corbado.generated.model.UserDelete200Response; -import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -299,7 +299,7 @@ private okhttp3.Call passkeyEventDeleteValidateBeforeCall(@javax.annotation.Nonn * Deletes an existing passkey event for a user by given `userID` and `passkeyEventID`. * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventID ID of a passkey event (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -309,8 +309,8 @@ private okhttp3.Call passkeyEventDeleteValidateBeforeCall(@javax.annotation.Nonn
0 Error -
*/ - public UserDelete200Response passkeyEventDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID) throws ApiException { - ApiResponse localVarResp = passkeyEventDeleteWithHttpInfo(userID, passkeyEventID); + public GenericRsp passkeyEventDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID) throws ApiException { + ApiResponse localVarResp = passkeyEventDeleteWithHttpInfo(userID, passkeyEventID); return localVarResp.getData(); } @@ -319,7 +319,7 @@ public UserDelete200Response passkeyEventDelete(@javax.annotation.Nonnull String * Deletes an existing passkey event for a user by given `userID` and `passkeyEventID`. * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param passkeyEventID ID of a passkey event (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -329,9 +329,9 @@ public UserDelete200Response passkeyEventDelete(@javax.annotation.Nonnull String
0 Error -
*/ - public ApiResponse passkeyEventDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID) throws ApiException { + public ApiResponse passkeyEventDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID) throws ApiException { okhttp3.Call localVarCall = passkeyEventDeleteValidateBeforeCall(userID, passkeyEventID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -351,10 +351,10 @@ public ApiResponse passkeyEventDeleteWithHttpInfo(@javax. 0 Error - */ - public okhttp3.Call passkeyEventDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call passkeyEventDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String passkeyEventID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = passkeyEventDeleteValidateBeforeCall(userID, passkeyEventID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/PasskeysApi.java b/src/main/java/com/corbado/generated/api/PasskeysApi.java index cb632f5..84f35dd 100644 --- a/src/main/java/com/corbado/generated/api/PasskeysApi.java +++ b/src/main/java/com/corbado/generated/api/PasskeysApi.java @@ -27,6 +27,7 @@ import java.io.IOException; +import com.corbado.generated.model.ErrorRsp; import com.corbado.generated.model.PasskeyAppendFinishReq; import com.corbado.generated.model.PasskeyAppendFinishRsp; import com.corbado.generated.model.PasskeyAppendStartReq; @@ -43,7 +44,6 @@ import com.corbado.generated.model.PasskeyPostLoginRsp; import com.corbado.generated.model.PasskeyVerifySignedDataReq; import com.corbado.generated.model.PasskeyVerifySignedDataRsp; -import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; diff --git a/src/main/java/com/corbado/generated/api/PasswordManagersApi.java b/src/main/java/com/corbado/generated/api/PasswordManagersApi.java index 79ceba5..4fbc576 100644 --- a/src/main/java/com/corbado/generated/api/PasswordManagersApi.java +++ b/src/main/java/com/corbado/generated/api/PasswordManagersApi.java @@ -27,8 +27,8 @@ import java.io.IOException; +import com.corbado.generated.model.ErrorRsp; import com.corbado.generated.model.PasswordManagerList; -import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; diff --git a/src/main/java/com/corbado/generated/api/ProjectConfigApi.java b/src/main/java/com/corbado/generated/api/ProjectConfigApi.java index 5d6dafc..8b3e94f 100644 --- a/src/main/java/com/corbado/generated/api/ProjectConfigApi.java +++ b/src/main/java/com/corbado/generated/api/ProjectConfigApi.java @@ -27,9 +27,9 @@ import java.io.IOException; +import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.ProjectConfigUpdateCnameReq; -import com.corbado.generated.model.UserDelete200Response; -import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -148,7 +148,7 @@ private okhttp3.Call projectConfigUpdateCNAMEValidateBeforeCall(@javax.annotatio * Update project CNAME and generate SSL certificate * Update project config CNAME and generates new SSL certificate * @param projectConfigUpdateCnameReq (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -158,8 +158,8 @@ private okhttp3.Call projectConfigUpdateCNAMEValidateBeforeCall(@javax.annotatio
0 Error -
*/ - public UserDelete200Response projectConfigUpdateCNAME(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { - ApiResponse localVarResp = projectConfigUpdateCNAMEWithHttpInfo(projectConfigUpdateCnameReq); + public GenericRsp projectConfigUpdateCNAME(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { + ApiResponse localVarResp = projectConfigUpdateCNAMEWithHttpInfo(projectConfigUpdateCnameReq); return localVarResp.getData(); } @@ -167,7 +167,7 @@ public UserDelete200Response projectConfigUpdateCNAME(@javax.annotation.Nonnull * Update project CNAME and generate SSL certificate * Update project config CNAME and generates new SSL certificate * @param projectConfigUpdateCnameReq (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -177,9 +177,9 @@ public UserDelete200Response projectConfigUpdateCNAME(@javax.annotation.Nonnull
0 Error -
*/ - public ApiResponse projectConfigUpdateCNAMEWithHttpInfo(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { + public ApiResponse projectConfigUpdateCNAMEWithHttpInfo(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq) throws ApiException { okhttp3.Call localVarCall = projectConfigUpdateCNAMEValidateBeforeCall(projectConfigUpdateCnameReq, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -198,10 +198,10 @@ public ApiResponse projectConfigUpdateCNAMEWithHttpInfo(@ 0 Error - */ - public okhttp3.Call projectConfigUpdateCNAMEAsync(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { + public okhttp3.Call projectConfigUpdateCNAMEAsync(@javax.annotation.Nonnull ProjectConfigUpdateCnameReq projectConfigUpdateCnameReq, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = projectConfigUpdateCNAMEValidateBeforeCall(projectConfigUpdateCnameReq, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/SessionsApi.java b/src/main/java/com/corbado/generated/api/SessionsApi.java index 9034b96..5e84d71 100644 --- a/src/main/java/com/corbado/generated/api/SessionsApi.java +++ b/src/main/java/com/corbado/generated/api/SessionsApi.java @@ -27,9 +27,9 @@ import java.io.IOException; +import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.SessionList; -import com.corbado.generated.model.UserDelete200Response; -import com.corbado.generated.model.UserListDefaultResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -301,7 +301,7 @@ private okhttp3.Call sessionRevokeValidateBeforeCall(@javax.annotation.Nonnull S * Revoke a session * Revokes an existing session by given `sessionID`. * @param sessionID ID of session (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -311,8 +311,8 @@ private okhttp3.Call sessionRevokeValidateBeforeCall(@javax.annotation.Nonnull S
0 Error -
*/ - public UserDelete200Response sessionRevoke(@javax.annotation.Nonnull String sessionID) throws ApiException { - ApiResponse localVarResp = sessionRevokeWithHttpInfo(sessionID); + public GenericRsp sessionRevoke(@javax.annotation.Nonnull String sessionID) throws ApiException { + ApiResponse localVarResp = sessionRevokeWithHttpInfo(sessionID); return localVarResp.getData(); } @@ -320,7 +320,7 @@ public UserDelete200Response sessionRevoke(@javax.annotation.Nonnull String sess * Revoke a session * Revokes an existing session by given `sessionID`. * @param sessionID ID of session (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -330,9 +330,9 @@ public UserDelete200Response sessionRevoke(@javax.annotation.Nonnull String sess
0 Error -
*/ - public ApiResponse sessionRevokeWithHttpInfo(@javax.annotation.Nonnull String sessionID) throws ApiException { + public ApiResponse sessionRevokeWithHttpInfo(@javax.annotation.Nonnull String sessionID) throws ApiException { okhttp3.Call localVarCall = sessionRevokeValidateBeforeCall(sessionID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -351,10 +351,10 @@ public ApiResponse sessionRevokeWithHttpInfo(@javax.annot 0 Error - */ - public okhttp3.Call sessionRevokeAsync(@javax.annotation.Nonnull String sessionID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sessionRevokeAsync(@javax.annotation.Nonnull String sessionID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sessionRevokeValidateBeforeCall(sessionID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/UsersApi.java b/src/main/java/com/corbado/generated/api/UsersApi.java index 41a30ad..13c0627 100644 --- a/src/main/java/com/corbado/generated/api/UsersApi.java +++ b/src/main/java/com/corbado/generated/api/UsersApi.java @@ -28,14 +28,14 @@ import com.corbado.generated.model.CredentialList; +import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.SocialAccount; import com.corbado.generated.model.SocialAccountCreateReq; import com.corbado.generated.model.SocialAccountList; import com.corbado.generated.model.User; import com.corbado.generated.model.UserCreateReq; -import com.corbado.generated.model.UserDelete200Response; import com.corbado.generated.model.UserList; -import com.corbado.generated.model.UserListDefaultResponse; import com.corbado.generated.model.UserUpdateReq; import java.lang.reflect.Type; @@ -163,7 +163,7 @@ private okhttp3.Call credentialDeleteValidateBeforeCall(@javax.annotation.Nonnul * Deletes an existing passkey for a user by given `userID` and `credentialID`. * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param credentialID Unique identifier of the passkey. Format: `cre-<number>`. (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -173,8 +173,8 @@ private okhttp3.Call credentialDeleteValidateBeforeCall(@javax.annotation.Nonnul
0 Error -
*/ - public UserDelete200Response credentialDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID) throws ApiException { - ApiResponse localVarResp = credentialDeleteWithHttpInfo(userID, credentialID); + public GenericRsp credentialDelete(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID) throws ApiException { + ApiResponse localVarResp = credentialDeleteWithHttpInfo(userID, credentialID); return localVarResp.getData(); } @@ -183,7 +183,7 @@ public UserDelete200Response credentialDelete(@javax.annotation.Nonnull String u * Deletes an existing passkey for a user by given `userID` and `credentialID`. * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) * @param credentialID Unique identifier of the passkey. Format: `cre-<number>`. (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -193,9 +193,9 @@ public UserDelete200Response credentialDelete(@javax.annotation.Nonnull String u
0 Error -
*/ - public ApiResponse credentialDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID) throws ApiException { + public ApiResponse credentialDeleteWithHttpInfo(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID) throws ApiException { okhttp3.Call localVarCall = credentialDeleteValidateBeforeCall(userID, credentialID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -215,10 +215,10 @@ public ApiResponse credentialDeleteWithHttpInfo(@javax.an 0 Error - */ - public okhttp3.Call credentialDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call credentialDeleteAsync(@javax.annotation.Nonnull String userID, @javax.annotation.Nonnull String credentialID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = credentialDeleteValidateBeforeCall(userID, credentialID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -884,7 +884,7 @@ private okhttp3.Call userDeleteValidateBeforeCall(@javax.annotation.Nonnull Stri * Delete a user * Deletes a user by given `userID`. You can also manage users in the [Developer Panel](https://app.corbado.com/users). * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -894,8 +894,8 @@ private okhttp3.Call userDeleteValidateBeforeCall(@javax.annotation.Nonnull Stri
0 Error -
*/ - public UserDelete200Response userDelete(@javax.annotation.Nonnull String userID) throws ApiException { - ApiResponse localVarResp = userDeleteWithHttpInfo(userID); + public GenericRsp userDelete(@javax.annotation.Nonnull String userID) throws ApiException { + ApiResponse localVarResp = userDeleteWithHttpInfo(userID); return localVarResp.getData(); } @@ -903,7 +903,7 @@ public UserDelete200Response userDelete(@javax.annotation.Nonnull String userID) * Delete a user * Deletes a user by given `userID`. You can also manage users in the [Developer Panel](https://app.corbado.com/users). * @param userID Unique identifier of the user. Format: `usr-<number>`. (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -913,9 +913,9 @@ public UserDelete200Response userDelete(@javax.annotation.Nonnull String userID)
0 Error -
*/ - public ApiResponse userDeleteWithHttpInfo(@javax.annotation.Nonnull String userID) throws ApiException { + public ApiResponse userDeleteWithHttpInfo(@javax.annotation.Nonnull String userID) throws ApiException { okhttp3.Call localVarCall = userDeleteValidateBeforeCall(userID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -934,10 +934,10 @@ public ApiResponse userDeleteWithHttpInfo(@javax.annotati 0 Error - */ - public okhttp3.Call userDeleteAsync(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call userDeleteAsync(@javax.annotation.Nonnull String userID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = userDeleteValidateBeforeCall(userID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java b/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java index 25d02f6..d0e66cf 100644 --- a/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java +++ b/src/main/java/com/corbado/generated/api/WebhookEndpointsApi.java @@ -27,8 +27,8 @@ import java.io.IOException; -import com.corbado.generated.model.UserDelete200Response; -import com.corbado.generated.model.UserListDefaultResponse; +import com.corbado.generated.model.ErrorRsp; +import com.corbado.generated.model.GenericRsp; import com.corbado.generated.model.WebhookEndpoint; import com.corbado.generated.model.WebhookEndpointCreateReq; import com.corbado.generated.model.WebhookEndpointList; @@ -282,7 +282,7 @@ private okhttp3.Call webhookEndpointDeleteValidateBeforeCall(@javax.annotation.N * * Deletes an existing webhook endpoint * @param webhookEndpointID ID of a webhook endpoint (required) - * @return UserDelete200Response + * @return GenericRsp * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -292,8 +292,8 @@ private okhttp3.Call webhookEndpointDeleteValidateBeforeCall(@javax.annotation.N
0 Error -
*/ - public UserDelete200Response webhookEndpointDelete(@javax.annotation.Nonnull String webhookEndpointID) throws ApiException { - ApiResponse localVarResp = webhookEndpointDeleteWithHttpInfo(webhookEndpointID); + public GenericRsp webhookEndpointDelete(@javax.annotation.Nonnull String webhookEndpointID) throws ApiException { + ApiResponse localVarResp = webhookEndpointDeleteWithHttpInfo(webhookEndpointID); return localVarResp.getData(); } @@ -301,7 +301,7 @@ public UserDelete200Response webhookEndpointDelete(@javax.annotation.Nonnull Str * * Deletes an existing webhook endpoint * @param webhookEndpointID ID of a webhook endpoint (required) - * @return ApiResponse<UserDelete200Response> + * @return ApiResponse<GenericRsp> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -311,9 +311,9 @@ public UserDelete200Response webhookEndpointDelete(@javax.annotation.Nonnull Str
0 Error -
*/ - public ApiResponse webhookEndpointDeleteWithHttpInfo(@javax.annotation.Nonnull String webhookEndpointID) throws ApiException { + public ApiResponse webhookEndpointDeleteWithHttpInfo(@javax.annotation.Nonnull String webhookEndpointID) throws ApiException { okhttp3.Call localVarCall = webhookEndpointDeleteValidateBeforeCall(webhookEndpointID, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -332,10 +332,10 @@ public ApiResponse webhookEndpointDeleteWithHttpInfo(@jav 0 Error - */ - public okhttp3.Call webhookEndpointDeleteAsync(@javax.annotation.Nonnull String webhookEndpointID, final ApiCallback _callback) throws ApiException { + public okhttp3.Call webhookEndpointDeleteAsync(@javax.annotation.Nonnull String webhookEndpointID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = webhookEndpointDeleteValidateBeforeCall(webhookEndpointID, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/com/corbado/generated/invoker/ApiException.java b/src/main/java/com/corbado/generated/invoker/ApiException.java index 7d3e242..b3476a2 100644 --- a/src/main/java/com/corbado/generated/invoker/ApiException.java +++ b/src/main/java/com/corbado/generated/invoker/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/corbado/generated/invoker/Configuration.java b/src/main/java/com/corbado/generated/invoker/Configuration.java index 4329b9b..98f4403 100644 --- a/src/main/java/com/corbado/generated/invoker/Configuration.java +++ b/src/main/java/com/corbado/generated/invoker/Configuration.java @@ -17,7 +17,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Configuration { public static final String VERSION = "1.0.0"; diff --git a/src/main/java/com/corbado/generated/invoker/JSON.java b/src/main/java/com/corbado/generated/invoker/JSON.java index 1a2f5b3..194325a 100644 --- a/src/main/java/com/corbado/generated/invoker/JSON.java +++ b/src/main/java/com/corbado/generated/invoker/JSON.java @@ -132,12 +132,17 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.DecisionInsightsAppend.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.DetectionInsights.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.DetectionTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ErrorRsp.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ErrorRspAllOfError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ErrorRspAllOfErrorValidation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.GenericRsp.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Identifier.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.IdentifierCreateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.IdentifierList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.IdentifierUpdateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.JavaScriptHighEntropy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.NativeMeta.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Paging.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ParsedDeviceInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyAppendFinishReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasskeyAppendFinishRsp.CustomTypeAdapterFactory()); @@ -169,21 +174,16 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasswordManager.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.PasswordManagerList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.ProjectConfigUpdateCnameReq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.RequestData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.Session.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SessionList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SessionListSessionsInner.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SocialAccount.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SocialAccountCreateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.SocialAccountList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.User.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserAggregate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserCreateReq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserDelete200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponseAllOfError.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponseAllOfErrorValidationInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListDefaultResponseAllOfRequestData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserListPaging.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.UserUpdateReq.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.WebhookEndpoint.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.corbado.generated.model.WebhookEndpointCreateReq.CustomTypeAdapterFactory()); diff --git a/src/main/java/com/corbado/generated/invoker/Pair.java b/src/main/java/com/corbado/generated/invoker/Pair.java index adf6cea..757e566 100644 --- a/src/main/java/com/corbado/generated/invoker/Pair.java +++ b/src/main/java/com/corbado/generated/invoker/Pair.java @@ -13,7 +13,7 @@ package com.corbado.generated.invoker; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Pair { private final String name; private final String value; diff --git a/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java b/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java index 1f5d124..5ee11e8 100644 --- a/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java +++ b/src/main/java/com/corbado/generated/invoker/ServerConfiguration.java @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/corbado/generated/invoker/ServerVariable.java b/src/main/java/com/corbado/generated/invoker/ServerVariable.java index c0fe73c..39ffcd8 100644 --- a/src/main/java/com/corbado/generated/invoker/ServerVariable.java +++ b/src/main/java/com/corbado/generated/invoker/ServerVariable.java @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/corbado/generated/invoker/StringUtil.java b/src/main/java/com/corbado/generated/invoker/StringUtil.java index 31eb9be..7bc65cc 100644 --- a/src/main/java/com/corbado/generated/invoker/StringUtil.java +++ b/src/main/java/com/corbado/generated/invoker/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java b/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java index bcd2284..99db113 100644 --- a/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java +++ b/src/main/java/com/corbado/generated/invoker/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/corbado/generated/invoker/auth/Authentication.java b/src/main/java/com/corbado/generated/invoker/auth/Authentication.java index 5414274..4111c7f 100644 --- a/src/main/java/com/corbado/generated/invoker/auth/Authentication.java +++ b/src/main/java/com/corbado/generated/invoker/auth/Authentication.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java b/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java index 60d8a2b..8d65880 100644 --- a/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java +++ b/src/main/java/com/corbado/generated/invoker/auth/HttpBearerAuth.java @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/src/main/java/com/corbado/generated/model/AaguidDetails.java b/src/main/java/com/corbado/generated/model/AaguidDetails.java index b6a2321..9fbfd30 100644 --- a/src/main/java/com/corbado/generated/model/AaguidDetails.java +++ b/src/main/java/com/corbado/generated/model/AaguidDetails.java @@ -50,7 +50,7 @@ /** * AaguidDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class AaguidDetails { public static final String SERIALIZED_NAME_AAGUID = "aaguid"; @SerializedName(SERIALIZED_NAME_AAGUID) diff --git a/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java b/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java index 8c1ffa5..30b8c42 100644 --- a/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/corbado/generated/model/AbstractOpenApiSchema.java @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/corbado/generated/model/AppendHistoryData.java b/src/main/java/com/corbado/generated/model/AppendHistoryData.java index 3bd4289..a81539d 100644 --- a/src/main/java/com/corbado/generated/model/AppendHistoryData.java +++ b/src/main/java/com/corbado/generated/model/AppendHistoryData.java @@ -50,7 +50,7 @@ /** * AppendHistoryData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class AppendHistoryData { public static final String SERIALIZED_NAME_DEFAULT_COUNT = "defaultCount"; @SerializedName(SERIALIZED_NAME_DEFAULT_COUNT) diff --git a/src/main/java/com/corbado/generated/model/AuthEvent.java b/src/main/java/com/corbado/generated/model/AuthEvent.java index b1fdf05..2f97e9a 100644 --- a/src/main/java/com/corbado/generated/model/AuthEvent.java +++ b/src/main/java/com/corbado/generated/model/AuthEvent.java @@ -53,7 +53,7 @@ /** * AuthEvent */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class AuthEvent { public static final String SERIALIZED_NAME_AUTH_EVENT_I_D = "authEventID"; @SerializedName(SERIALIZED_NAME_AUTH_EVENT_I_D) diff --git a/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java b/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java index 5e6a2c9..4e33d19 100644 --- a/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java +++ b/src/main/java/com/corbado/generated/model/AuthEventCreateReq.java @@ -54,7 +54,7 @@ /** * AuthEventCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class AuthEventCreateReq { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) diff --git a/src/main/java/com/corbado/generated/model/Challenge.java b/src/main/java/com/corbado/generated/model/Challenge.java index bf5da0d..e419e85 100644 --- a/src/main/java/com/corbado/generated/model/Challenge.java +++ b/src/main/java/com/corbado/generated/model/Challenge.java @@ -52,7 +52,7 @@ /** * Challenge */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Challenge { public static final String SERIALIZED_NAME_CHALLENGE_I_D = "challengeID"; @SerializedName(SERIALIZED_NAME_CHALLENGE_I_D) diff --git a/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java b/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java index c0f58c2..7cd149f 100644 --- a/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java +++ b/src/main/java/com/corbado/generated/model/ChallengeCreateReq.java @@ -52,7 +52,7 @@ /** * ChallengeCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ChallengeCreateReq { public static final String SERIALIZED_NAME_CHALLENGE_TYPE = "challengeType"; @SerializedName(SERIALIZED_NAME_CHALLENGE_TYPE) diff --git a/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java b/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java index e1348d0..56d69c7 100644 --- a/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/ChallengeUpdateReq.java @@ -50,7 +50,7 @@ /** * ChallengeUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ChallengeUpdateReq { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) diff --git a/src/main/java/com/corbado/generated/model/ClientEnv.java b/src/main/java/com/corbado/generated/model/ClientEnv.java index 46df418..c0e9293 100644 --- a/src/main/java/com/corbado/generated/model/ClientEnv.java +++ b/src/main/java/com/corbado/generated/model/ClientEnv.java @@ -50,7 +50,7 @@ /** * ClientEnv */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ClientEnv { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/corbado/generated/model/ClientEnvList.java b/src/main/java/com/corbado/generated/model/ClientEnvList.java index 3b6a6c3..a7f6a07 100644 --- a/src/main/java/com/corbado/generated/model/ClientEnvList.java +++ b/src/main/java/com/corbado/generated/model/ClientEnvList.java @@ -53,7 +53,7 @@ /** * ClientEnvList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ClientEnvList { public static final String SERIALIZED_NAME_CLIENT_ENVS = "clientEnvs"; @SerializedName(SERIALIZED_NAME_CLIENT_ENVS) diff --git a/src/main/java/com/corbado/generated/model/ClientInformation.java b/src/main/java/com/corbado/generated/model/ClientInformation.java index 064ed93..7ae9b27 100644 --- a/src/main/java/com/corbado/generated/model/ClientInformation.java +++ b/src/main/java/com/corbado/generated/model/ClientInformation.java @@ -53,7 +53,7 @@ /** * ClientInformation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ClientInformation { public static final String SERIALIZED_NAME_REMOTE_ADDRESS = "remoteAddress"; @SerializedName(SERIALIZED_NAME_REMOTE_ADDRESS) diff --git a/src/main/java/com/corbado/generated/model/ConnectToken.java b/src/main/java/com/corbado/generated/model/ConnectToken.java index 9004919..24371ec 100644 --- a/src/main/java/com/corbado/generated/model/ConnectToken.java +++ b/src/main/java/com/corbado/generated/model/ConnectToken.java @@ -53,7 +53,7 @@ /** * ConnectToken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectToken { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java b/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java index 059b951..f92e132 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenCreateReq.java @@ -52,7 +52,7 @@ /** * ConnectTokenCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenCreateReq { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenData.java b/src/main/java/com/corbado/generated/model/ConnectTokenData.java index 65dcee8..605dffc 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenData.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenData.java @@ -63,7 +63,7 @@ import com.corbado.generated.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenData extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ConnectTokenData.class.getName()); diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java index 31837fa..6b84f50 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyAppend.java @@ -50,7 +50,7 @@ /** * Data for `passkey-append`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyAppend { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java index 3fd4293..d805d85 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyDelete.java @@ -50,7 +50,7 @@ /** * Data for `passkey-delete`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyDelete { public static final String SERIALIZED_NAME_IDENTIFIER = "identifier"; @SerializedName(SERIALIZED_NAME_IDENTIFIER) diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java index 469c25a..d44c88a 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyList.java @@ -50,7 +50,7 @@ /** * Data for `passkey-list`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyList { public static final String SERIALIZED_NAME_IDENTIFIER = "identifier"; @SerializedName(SERIALIZED_NAME_IDENTIFIER) diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java index dcae27c..90c656c 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenDataPasskeyLogin.java @@ -50,7 +50,7 @@ /** * Data for `passkey-login`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenDataPasskeyLogin { public static final String SERIALIZED_NAME_IDENTIFIER = "identifier"; @SerializedName(SERIALIZED_NAME_IDENTIFIER) diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenList.java b/src/main/java/com/corbado/generated/model/ConnectTokenList.java index 96548e2..406e5ff 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenList.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenList.java @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Locale; import com.corbado.generated.model.ConnectToken; -import com.corbado.generated.model.UserListPaging; +import com.corbado.generated.model.Paging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,7 +54,7 @@ /** * ConnectTokenList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenList { public static final String SERIALIZED_NAME_CONNECT_TOKENS = "connectTokens"; @SerializedName(SERIALIZED_NAME_CONNECT_TOKENS) @@ -64,7 +64,7 @@ public class ConnectTokenList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private UserListPaging paging; + private Paging paging; public ConnectTokenList() { } @@ -96,7 +96,7 @@ public void setConnectTokens(@javax.annotation.Nonnull List connec } - public ConnectTokenList paging(@javax.annotation.Nonnull UserListPaging paging) { + public ConnectTokenList paging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; return this; } @@ -106,11 +106,11 @@ public ConnectTokenList paging(@javax.annotation.Nonnull UserListPaging paging) * @return paging */ @javax.annotation.Nonnull - public UserListPaging getPaging() { + public Paging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + public void setPaging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ConnectToken.validateJsonElement(jsonArrayconnectTokens.get(i)); }; // validate the required field `paging` - UserListPaging.validateJsonElement(jsonObj.get("paging")); + Paging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java b/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java index 3763e93..c9ceace 100644 --- a/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/ConnectTokenUpdateReq.java @@ -51,7 +51,7 @@ /** * ConnectTokenUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ConnectTokenUpdateReq { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/com/corbado/generated/model/Credential.java b/src/main/java/com/corbado/generated/model/Credential.java index 542eb21..2a4ebdf 100644 --- a/src/main/java/com/corbado/generated/model/Credential.java +++ b/src/main/java/com/corbado/generated/model/Credential.java @@ -53,7 +53,7 @@ /** * Credential */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Credential { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/corbado/generated/model/CredentialList.java b/src/main/java/com/corbado/generated/model/CredentialList.java index 6ff5183..02c7ae5 100644 --- a/src/main/java/com/corbado/generated/model/CredentialList.java +++ b/src/main/java/com/corbado/generated/model/CredentialList.java @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Locale; import com.corbado.generated.model.Credential; -import com.corbado.generated.model.UserListPaging; +import com.corbado.generated.model.Paging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,7 +54,7 @@ /** * CredentialList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class CredentialList { public static final String SERIALIZED_NAME_CREDENTIALS = "credentials"; @SerializedName(SERIALIZED_NAME_CREDENTIALS) @@ -64,7 +64,7 @@ public class CredentialList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private UserListPaging paging; + private Paging paging; public CredentialList() { } @@ -96,7 +96,7 @@ public void setCredentials(@javax.annotation.Nonnull List credential } - public CredentialList paging(@javax.annotation.Nonnull UserListPaging paging) { + public CredentialList paging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; return this; } @@ -106,11 +106,11 @@ public CredentialList paging(@javax.annotation.Nonnull UserListPaging paging) { * @return paging */ @javax.annotation.Nonnull - public UserListPaging getPaging() { + public Paging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + public void setPaging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Credential.validateJsonElement(jsonArraycredentials.get(i)); }; // validate the required field `paging` - UserListPaging.validateJsonElement(jsonObj.get("paging")); + Paging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/DecisionInsights.java b/src/main/java/com/corbado/generated/model/DecisionInsights.java index 408d0b7..45b49a8 100644 --- a/src/main/java/com/corbado/generated/model/DecisionInsights.java +++ b/src/main/java/com/corbado/generated/model/DecisionInsights.java @@ -53,7 +53,7 @@ /** * DecisionInsights */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class DecisionInsights { public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) diff --git a/src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java b/src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java index 1143e0a..73ad863 100644 --- a/src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java +++ b/src/main/java/com/corbado/generated/model/DecisionInsightsAppend.java @@ -51,7 +51,7 @@ /** * DecisionInsightsAppend */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class DecisionInsightsAppend { public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) diff --git a/src/main/java/com/corbado/generated/model/DetectionInsights.java b/src/main/java/com/corbado/generated/model/DetectionInsights.java index 9645bde..195bc40 100644 --- a/src/main/java/com/corbado/generated/model/DetectionInsights.java +++ b/src/main/java/com/corbado/generated/model/DetectionInsights.java @@ -54,7 +54,7 @@ /** * DetectionInsights */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class DetectionInsights { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) diff --git a/src/main/java/com/corbado/generated/model/DetectionTag.java b/src/main/java/com/corbado/generated/model/DetectionTag.java index dd8d563..46bb3f2 100644 --- a/src/main/java/com/corbado/generated/model/DetectionTag.java +++ b/src/main/java/com/corbado/generated/model/DetectionTag.java @@ -50,7 +50,7 @@ /** * DetectionTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class DetectionTag { /** * Gets or Sets category diff --git a/src/main/java/com/corbado/generated/model/UserListDefaultResponse.java b/src/main/java/com/corbado/generated/model/ErrorRsp.java similarity index 69% rename from src/main/java/com/corbado/generated/model/UserListDefaultResponse.java rename to src/main/java/com/corbado/generated/model/ErrorRsp.java index c1a1ab6..e8c21c0 100644 --- a/src/main/java/com/corbado/generated/model/UserListDefaultResponse.java +++ b/src/main/java/com/corbado/generated/model/ErrorRsp.java @@ -15,8 +15,8 @@ import java.util.Objects; import java.util.Locale; -import com.corbado.generated.model.UserListDefaultResponseAllOfError; -import com.corbado.generated.model.UserListDefaultResponseAllOfRequestData; +import com.corbado.generated.model.ErrorRspAllOfError; +import com.corbado.generated.model.RequestData; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,10 +50,10 @@ import com.corbado.generated.invoker.JSON; /** - * UserListDefaultResponse + * ErrorRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") -public class UserListDefaultResponse { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class ErrorRsp { public static final String SERIALIZED_NAME_HTTP_STATUS_CODE = "httpStatusCode"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS_CODE) @javax.annotation.Nonnull @@ -67,7 +67,7 @@ public class UserListDefaultResponse { public static final String SERIALIZED_NAME_REQUEST_DATA = "requestData"; @SerializedName(SERIALIZED_NAME_REQUEST_DATA) @javax.annotation.Nonnull - private UserListDefaultResponseAllOfRequestData requestData; + private RequestData requestData; public static final String SERIALIZED_NAME_RUNTIME = "runtime"; @SerializedName(SERIALIZED_NAME_RUNTIME) @@ -82,12 +82,12 @@ public class UserListDefaultResponse { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @javax.annotation.Nonnull - private UserListDefaultResponseAllOfError error; + private ErrorRspAllOfError error; - public UserListDefaultResponse() { + public ErrorRsp() { } - public UserListDefaultResponse httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { + public ErrorRsp httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } @@ -106,7 +106,7 @@ public void setHttpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) } - public UserListDefaultResponse message(@javax.annotation.Nonnull String message) { + public ErrorRsp message(@javax.annotation.Nonnull String message) { this.message = message; return this; } @@ -125,7 +125,7 @@ public void setMessage(@javax.annotation.Nonnull String message) { } - public UserListDefaultResponse requestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { + public ErrorRsp requestData(@javax.annotation.Nonnull RequestData requestData) { this.requestData = requestData; return this; } @@ -135,16 +135,16 @@ public UserListDefaultResponse requestData(@javax.annotation.Nonnull UserListDef * @return requestData */ @javax.annotation.Nonnull - public UserListDefaultResponseAllOfRequestData getRequestData() { + public RequestData getRequestData() { return requestData; } - public void setRequestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { + public void setRequestData(@javax.annotation.Nonnull RequestData requestData) { this.requestData = requestData; } - public UserListDefaultResponse runtime(@javax.annotation.Nonnull Float runtime) { + public ErrorRsp runtime(@javax.annotation.Nonnull Float runtime) { this.runtime = runtime; return this; } @@ -163,7 +163,7 @@ public void setRuntime(@javax.annotation.Nonnull Float runtime) { } - public UserListDefaultResponse data(@javax.annotation.Nullable Object data) { + public ErrorRsp data(@javax.annotation.Nullable Object data) { this.data = data; return this; } @@ -182,7 +182,7 @@ public void setData(@javax.annotation.Nullable Object data) { } - public UserListDefaultResponse error(@javax.annotation.Nonnull UserListDefaultResponseAllOfError error) { + public ErrorRsp error(@javax.annotation.Nonnull ErrorRspAllOfError error) { this.error = error; return this; } @@ -192,11 +192,11 @@ public UserListDefaultResponse error(@javax.annotation.Nonnull UserListDefaultRe * @return error */ @javax.annotation.Nonnull - public UserListDefaultResponseAllOfError getError() { + public ErrorRspAllOfError getError() { return error; } - public void setError(@javax.annotation.Nonnull UserListDefaultResponseAllOfError error) { + public void setError(@javax.annotation.Nonnull ErrorRspAllOfError error) { this.error = error; } @@ -210,13 +210,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserListDefaultResponse userListDefaultResponse = (UserListDefaultResponse) o; - return Objects.equals(this.httpStatusCode, userListDefaultResponse.httpStatusCode) && - Objects.equals(this.message, userListDefaultResponse.message) && - Objects.equals(this.requestData, userListDefaultResponse.requestData) && - Objects.equals(this.runtime, userListDefaultResponse.runtime) && - Objects.equals(this.data, userListDefaultResponse.data) && - Objects.equals(this.error, userListDefaultResponse.error); + ErrorRsp errorRsp = (ErrorRsp) o; + return Objects.equals(this.httpStatusCode, errorRsp.httpStatusCode) && + Objects.equals(this.message, errorRsp.message) && + Objects.equals(this.requestData, errorRsp.requestData) && + Objects.equals(this.runtime, errorRsp.runtime) && + Objects.equals(this.data, errorRsp.data) && + Objects.equals(this.error, errorRsp.error); } @Override @@ -227,7 +227,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserListDefaultResponse {\n"); + sb.append("class ErrorRsp {\n"); sb.append(" httpStatusCode: ").append(toIndentedString(httpStatusCode)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" requestData: ").append(toIndentedString(requestData)).append("\n"); @@ -265,25 +265,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponse + * @throws IOException if the JSON Element is invalid with respect to ErrorRsp */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!UserListDefaultResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponse is not found in the empty JSON string", UserListDefaultResponse.openapiRequiredFields.toString())); + if (!ErrorRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ErrorRsp is not found in the empty JSON string", ErrorRsp.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!UserListDefaultResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!ErrorRsp.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ErrorRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserListDefaultResponse.openapiRequiredFields) { + for (String requiredField : ErrorRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -293,31 +293,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } // validate the required field `requestData` - UserListDefaultResponseAllOfRequestData.validateJsonElement(jsonObj.get("requestData")); + RequestData.validateJsonElement(jsonObj.get("requestData")); // validate the required field `error` - UserListDefaultResponseAllOfError.validateJsonElement(jsonObj.get("error")); + ErrorRspAllOfError.validateJsonElement(jsonObj.get("error")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserListDefaultResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserListDefaultResponse' and its subtypes + if (!ErrorRsp.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ErrorRsp' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ErrorRsp.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserListDefaultResponse value) throws IOException { + public void write(JsonWriter out, ErrorRsp value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public UserListDefaultResponse read(JsonReader in) throws IOException { + public ErrorRsp read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -328,18 +328,18 @@ public UserListDefaultResponse read(JsonReader in) throws IOException { } /** - * Create an instance of UserListDefaultResponse given an JSON string + * Create an instance of ErrorRsp given an JSON string * * @param jsonString JSON string - * @return An instance of UserListDefaultResponse - * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponse + * @return An instance of ErrorRsp + * @throws IOException if the JSON string is invalid with respect to ErrorRsp */ - public static UserListDefaultResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserListDefaultResponse.class); + public static ErrorRsp fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ErrorRsp.class); } /** - * Convert an instance of UserListDefaultResponse to an JSON string + * Convert an instance of ErrorRsp to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfError.java b/src/main/java/com/corbado/generated/model/ErrorRspAllOfError.java similarity index 71% rename from src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfError.java rename to src/main/java/com/corbado/generated/model/ErrorRspAllOfError.java index 97f92b9..0d25ab6 100644 --- a/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfError.java +++ b/src/main/java/com/corbado/generated/model/ErrorRspAllOfError.java @@ -15,7 +15,7 @@ import java.util.Objects; import java.util.Locale; -import com.corbado.generated.model.UserListDefaultResponseAllOfErrorValidationInner; +import com.corbado.generated.model.ErrorRspAllOfErrorValidation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -51,10 +51,10 @@ import com.corbado.generated.invoker.JSON; /** - * UserListDefaultResponseAllOfError + * ErrorRspAllOfError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") -public class UserListDefaultResponseAllOfError { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class ErrorRspAllOfError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -68,17 +68,17 @@ public class UserListDefaultResponseAllOfError { public static final String SERIALIZED_NAME_VALIDATION = "validation"; @SerializedName(SERIALIZED_NAME_VALIDATION) @javax.annotation.Nullable - private List validation = new ArrayList<>(); + private List validation = new ArrayList<>(); public static final String SERIALIZED_NAME_LINKS = "links"; @SerializedName(SERIALIZED_NAME_LINKS) @javax.annotation.Nullable private List links = new ArrayList<>(); - public UserListDefaultResponseAllOfError() { + public ErrorRspAllOfError() { } - public UserListDefaultResponseAllOfError type(@javax.annotation.Nonnull String type) { + public ErrorRspAllOfError type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -97,7 +97,7 @@ public void setType(@javax.annotation.Nonnull String type) { } - public UserListDefaultResponseAllOfError details(@javax.annotation.Nullable String details) { + public ErrorRspAllOfError details(@javax.annotation.Nullable String details) { this.details = details; return this; } @@ -116,12 +116,12 @@ public void setDetails(@javax.annotation.Nullable String details) { } - public UserListDefaultResponseAllOfError validation(@javax.annotation.Nullable List validation) { + public ErrorRspAllOfError validation(@javax.annotation.Nullable List validation) { this.validation = validation; return this; } - public UserListDefaultResponseAllOfError addValidationItem(UserListDefaultResponseAllOfErrorValidationInner validationItem) { + public ErrorRspAllOfError addValidationItem(ErrorRspAllOfErrorValidation validationItem) { if (this.validation == null) { this.validation = new ArrayList<>(); } @@ -134,21 +134,21 @@ public UserListDefaultResponseAllOfError addValidationItem(UserListDefaultRespon * @return validation */ @javax.annotation.Nullable - public List getValidation() { + public List getValidation() { return validation; } - public void setValidation(@javax.annotation.Nullable List validation) { + public void setValidation(@javax.annotation.Nullable List validation) { this.validation = validation; } - public UserListDefaultResponseAllOfError links(@javax.annotation.Nullable List links) { + public ErrorRspAllOfError links(@javax.annotation.Nullable List links) { this.links = links; return this; } - public UserListDefaultResponseAllOfError addLinksItem(String linksItem) { + public ErrorRspAllOfError addLinksItem(String linksItem) { if (this.links == null) { this.links = new ArrayList<>(); } @@ -179,11 +179,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserListDefaultResponseAllOfError userListDefaultResponseAllOfError = (UserListDefaultResponseAllOfError) o; - return Objects.equals(this.type, userListDefaultResponseAllOfError.type) && - Objects.equals(this.details, userListDefaultResponseAllOfError.details) && - Objects.equals(this.validation, userListDefaultResponseAllOfError.validation) && - Objects.equals(this.links, userListDefaultResponseAllOfError.links); + ErrorRspAllOfError errorRspAllOfError = (ErrorRspAllOfError) o; + return Objects.equals(this.type, errorRspAllOfError.type) && + Objects.equals(this.details, errorRspAllOfError.details) && + Objects.equals(this.validation, errorRspAllOfError.validation) && + Objects.equals(this.links, errorRspAllOfError.links); } @Override @@ -194,7 +194,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserListDefaultResponseAllOfError {\n"); + sb.append("class ErrorRspAllOfError {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" validation: ").append(toIndentedString(validation)).append("\n"); @@ -230,25 +230,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponseAllOfError + * @throws IOException if the JSON Element is invalid with respect to ErrorRspAllOfError */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!UserListDefaultResponseAllOfError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponseAllOfError is not found in the empty JSON string", UserListDefaultResponseAllOfError.openapiRequiredFields.toString())); + if (!ErrorRspAllOfError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ErrorRspAllOfError is not found in the empty JSON string", ErrorRspAllOfError.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!UserListDefaultResponseAllOfError.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponseAllOfError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!ErrorRspAllOfError.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ErrorRspAllOfError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserListDefaultResponseAllOfError.openapiRequiredFields) { + for (String requiredField : ErrorRspAllOfError.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -270,7 +270,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `validation` (array) for (int i = 0; i < jsonArrayvalidation.size(); i++) { - UserListDefaultResponseAllOfErrorValidationInner.validateJsonElement(jsonArrayvalidation.get(i)); + ErrorRspAllOfErrorValidation.validateJsonElement(jsonArrayvalidation.get(i)); }; } } @@ -284,22 +284,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserListDefaultResponseAllOfError.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserListDefaultResponseAllOfError' and its subtypes + if (!ErrorRspAllOfError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ErrorRspAllOfError' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponseAllOfError.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ErrorRspAllOfError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserListDefaultResponseAllOfError value) throws IOException { + public void write(JsonWriter out, ErrorRspAllOfError value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public UserListDefaultResponseAllOfError read(JsonReader in) throws IOException { + public ErrorRspAllOfError read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -310,18 +310,18 @@ public UserListDefaultResponseAllOfError read(JsonReader in) throws IOException } /** - * Create an instance of UserListDefaultResponseAllOfError given an JSON string + * Create an instance of ErrorRspAllOfError given an JSON string * * @param jsonString JSON string - * @return An instance of UserListDefaultResponseAllOfError - * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponseAllOfError + * @return An instance of ErrorRspAllOfError + * @throws IOException if the JSON string is invalid with respect to ErrorRspAllOfError */ - public static UserListDefaultResponseAllOfError fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserListDefaultResponseAllOfError.class); + public static ErrorRspAllOfError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ErrorRspAllOfError.class); } /** - * Convert an instance of UserListDefaultResponseAllOfError to an JSON string + * Convert an instance of ErrorRspAllOfError to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfErrorValidationInner.java b/src/main/java/com/corbado/generated/model/ErrorRspAllOfErrorValidation.java similarity index 68% rename from src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfErrorValidationInner.java rename to src/main/java/com/corbado/generated/model/ErrorRspAllOfErrorValidation.java index 303422a..b4c06ca 100644 --- a/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfErrorValidationInner.java +++ b/src/main/java/com/corbado/generated/model/ErrorRspAllOfErrorValidation.java @@ -48,10 +48,10 @@ import com.corbado.generated.invoker.JSON; /** - * UserListDefaultResponseAllOfErrorValidationInner + * ErrorRspAllOfErrorValidation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") -public class UserListDefaultResponseAllOfErrorValidationInner { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class ErrorRspAllOfErrorValidation { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) @javax.annotation.Nonnull @@ -62,10 +62,10 @@ public class UserListDefaultResponseAllOfErrorValidationInner { @javax.annotation.Nonnull private String message; - public UserListDefaultResponseAllOfErrorValidationInner() { + public ErrorRspAllOfErrorValidation() { } - public UserListDefaultResponseAllOfErrorValidationInner field(@javax.annotation.Nonnull String field) { + public ErrorRspAllOfErrorValidation field(@javax.annotation.Nonnull String field) { this.field = field; return this; } @@ -84,7 +84,7 @@ public void setField(@javax.annotation.Nonnull String field) { } - public UserListDefaultResponseAllOfErrorValidationInner message(@javax.annotation.Nonnull String message) { + public ErrorRspAllOfErrorValidation message(@javax.annotation.Nonnull String message) { this.message = message; return this; } @@ -112,9 +112,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserListDefaultResponseAllOfErrorValidationInner userListDefaultResponseAllOfErrorValidationInner = (UserListDefaultResponseAllOfErrorValidationInner) o; - return Objects.equals(this.field, userListDefaultResponseAllOfErrorValidationInner.field) && - Objects.equals(this.message, userListDefaultResponseAllOfErrorValidationInner.message); + ErrorRspAllOfErrorValidation errorRspAllOfErrorValidation = (ErrorRspAllOfErrorValidation) o; + return Objects.equals(this.field, errorRspAllOfErrorValidation.field) && + Objects.equals(this.message, errorRspAllOfErrorValidation.message); } @Override @@ -125,7 +125,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserListDefaultResponseAllOfErrorValidationInner {\n"); + sb.append("class ErrorRspAllOfErrorValidation {\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); @@ -159,25 +159,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponseAllOfErrorValidationInner + * @throws IOException if the JSON Element is invalid with respect to ErrorRspAllOfErrorValidation */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!UserListDefaultResponseAllOfErrorValidationInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponseAllOfErrorValidationInner is not found in the empty JSON string", UserListDefaultResponseAllOfErrorValidationInner.openapiRequiredFields.toString())); + if (!ErrorRspAllOfErrorValidation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ErrorRspAllOfErrorValidation is not found in the empty JSON string", ErrorRspAllOfErrorValidation.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!UserListDefaultResponseAllOfErrorValidationInner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponseAllOfErrorValidationInner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!ErrorRspAllOfErrorValidation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ErrorRspAllOfErrorValidation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserListDefaultResponseAllOfErrorValidationInner.openapiRequiredFields) { + for (String requiredField : ErrorRspAllOfErrorValidation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -195,22 +195,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserListDefaultResponseAllOfErrorValidationInner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserListDefaultResponseAllOfErrorValidationInner' and its subtypes + if (!ErrorRspAllOfErrorValidation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ErrorRspAllOfErrorValidation' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponseAllOfErrorValidationInner.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ErrorRspAllOfErrorValidation.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserListDefaultResponseAllOfErrorValidationInner value) throws IOException { + public void write(JsonWriter out, ErrorRspAllOfErrorValidation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public UserListDefaultResponseAllOfErrorValidationInner read(JsonReader in) throws IOException { + public ErrorRspAllOfErrorValidation read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -221,18 +221,18 @@ public UserListDefaultResponseAllOfErrorValidationInner read(JsonReader in) thro } /** - * Create an instance of UserListDefaultResponseAllOfErrorValidationInner given an JSON string + * Create an instance of ErrorRspAllOfErrorValidation given an JSON string * * @param jsonString JSON string - * @return An instance of UserListDefaultResponseAllOfErrorValidationInner - * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponseAllOfErrorValidationInner + * @return An instance of ErrorRspAllOfErrorValidation + * @throws IOException if the JSON string is invalid with respect to ErrorRspAllOfErrorValidation */ - public static UserListDefaultResponseAllOfErrorValidationInner fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserListDefaultResponseAllOfErrorValidationInner.class); + public static ErrorRspAllOfErrorValidation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ErrorRspAllOfErrorValidation.class); } /** - * Convert an instance of UserListDefaultResponseAllOfErrorValidationInner to an JSON string + * Convert an instance of ErrorRspAllOfErrorValidation to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/UserDelete200Response.java b/src/main/java/com/corbado/generated/model/GenericRsp.java similarity index 71% rename from src/main/java/com/corbado/generated/model/UserDelete200Response.java rename to src/main/java/com/corbado/generated/model/GenericRsp.java index e0a35e0..14d980f 100644 --- a/src/main/java/com/corbado/generated/model/UserDelete200Response.java +++ b/src/main/java/com/corbado/generated/model/GenericRsp.java @@ -15,7 +15,7 @@ import java.util.Objects; import java.util.Locale; -import com.corbado.generated.model.UserListDefaultResponseAllOfRequestData; +import com.corbado.generated.model.RequestData; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,10 +49,10 @@ import com.corbado.generated.invoker.JSON; /** - * UserDelete200Response + * GenericRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") -public class UserDelete200Response { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class GenericRsp { public static final String SERIALIZED_NAME_HTTP_STATUS_CODE = "httpStatusCode"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS_CODE) @javax.annotation.Nonnull @@ -66,17 +66,17 @@ public class UserDelete200Response { public static final String SERIALIZED_NAME_REQUEST_DATA = "requestData"; @SerializedName(SERIALIZED_NAME_REQUEST_DATA) @javax.annotation.Nonnull - private UserListDefaultResponseAllOfRequestData requestData; + private RequestData requestData; public static final String SERIALIZED_NAME_RUNTIME = "runtime"; @SerializedName(SERIALIZED_NAME_RUNTIME) @javax.annotation.Nonnull private Float runtime; - public UserDelete200Response() { + public GenericRsp() { } - public UserDelete200Response httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { + public GenericRsp httpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } @@ -95,7 +95,7 @@ public void setHttpStatusCode(@javax.annotation.Nonnull Integer httpStatusCode) } - public UserDelete200Response message(@javax.annotation.Nonnull String message) { + public GenericRsp message(@javax.annotation.Nonnull String message) { this.message = message; return this; } @@ -114,7 +114,7 @@ public void setMessage(@javax.annotation.Nonnull String message) { } - public UserDelete200Response requestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { + public GenericRsp requestData(@javax.annotation.Nonnull RequestData requestData) { this.requestData = requestData; return this; } @@ -124,16 +124,16 @@ public UserDelete200Response requestData(@javax.annotation.Nonnull UserListDefau * @return requestData */ @javax.annotation.Nonnull - public UserListDefaultResponseAllOfRequestData getRequestData() { + public RequestData getRequestData() { return requestData; } - public void setRequestData(@javax.annotation.Nonnull UserListDefaultResponseAllOfRequestData requestData) { + public void setRequestData(@javax.annotation.Nonnull RequestData requestData) { this.requestData = requestData; } - public UserDelete200Response runtime(@javax.annotation.Nonnull Float runtime) { + public GenericRsp runtime(@javax.annotation.Nonnull Float runtime) { this.runtime = runtime; return this; } @@ -161,11 +161,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserDelete200Response userDelete200Response = (UserDelete200Response) o; - return Objects.equals(this.httpStatusCode, userDelete200Response.httpStatusCode) && - Objects.equals(this.message, userDelete200Response.message) && - Objects.equals(this.requestData, userDelete200Response.requestData) && - Objects.equals(this.runtime, userDelete200Response.runtime); + GenericRsp genericRsp = (GenericRsp) o; + return Objects.equals(this.httpStatusCode, genericRsp.httpStatusCode) && + Objects.equals(this.message, genericRsp.message) && + Objects.equals(this.requestData, genericRsp.requestData) && + Objects.equals(this.runtime, genericRsp.runtime); } @Override @@ -176,7 +176,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserDelete200Response {\n"); + sb.append("class GenericRsp {\n"); sb.append(" httpStatusCode: ").append(toIndentedString(httpStatusCode)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" requestData: ").append(toIndentedString(requestData)).append("\n"); @@ -212,25 +212,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UserDelete200Response + * @throws IOException if the JSON Element is invalid with respect to GenericRsp */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!UserDelete200Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserDelete200Response is not found in the empty JSON string", UserDelete200Response.openapiRequiredFields.toString())); + if (!GenericRsp.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GenericRsp is not found in the empty JSON string", GenericRsp.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!UserDelete200Response.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserDelete200Response` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!GenericRsp.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GenericRsp` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserDelete200Response.openapiRequiredFields) { + for (String requiredField : GenericRsp.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -240,29 +240,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } // validate the required field `requestData` - UserListDefaultResponseAllOfRequestData.validateJsonElement(jsonObj.get("requestData")); + RequestData.validateJsonElement(jsonObj.get("requestData")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserDelete200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserDelete200Response' and its subtypes + if (!GenericRsp.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GenericRsp' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserDelete200Response.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GenericRsp.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserDelete200Response value) throws IOException { + public void write(JsonWriter out, GenericRsp value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public UserDelete200Response read(JsonReader in) throws IOException { + public GenericRsp read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -273,18 +273,18 @@ public UserDelete200Response read(JsonReader in) throws IOException { } /** - * Create an instance of UserDelete200Response given an JSON string + * Create an instance of GenericRsp given an JSON string * * @param jsonString JSON string - * @return An instance of UserDelete200Response - * @throws IOException if the JSON string is invalid with respect to UserDelete200Response + * @return An instance of GenericRsp + * @throws IOException if the JSON string is invalid with respect to GenericRsp */ - public static UserDelete200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserDelete200Response.class); + public static GenericRsp fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GenericRsp.class); } /** - * Convert an instance of UserDelete200Response to an JSON string + * Convert an instance of GenericRsp to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/Identifier.java b/src/main/java/com/corbado/generated/model/Identifier.java index 5435510..d2e44fa 100644 --- a/src/main/java/com/corbado/generated/model/Identifier.java +++ b/src/main/java/com/corbado/generated/model/Identifier.java @@ -52,7 +52,7 @@ /** * Identifier */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class Identifier { public static final String SERIALIZED_NAME_IDENTIFIER_I_D = "identifierID"; @SerializedName(SERIALIZED_NAME_IDENTIFIER_I_D) diff --git a/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java b/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java index 448537e..62da12d 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java +++ b/src/main/java/com/corbado/generated/model/IdentifierCreateReq.java @@ -52,7 +52,7 @@ /** * IdentifierCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class IdentifierCreateReq { public static final String SERIALIZED_NAME_IDENTIFIER_TYPE = "identifierType"; @SerializedName(SERIALIZED_NAME_IDENTIFIER_TYPE) diff --git a/src/main/java/com/corbado/generated/model/IdentifierList.java b/src/main/java/com/corbado/generated/model/IdentifierList.java index f83b74d..cb50391 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierList.java +++ b/src/main/java/com/corbado/generated/model/IdentifierList.java @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Locale; import com.corbado.generated.model.Identifier; -import com.corbado.generated.model.UserListPaging; +import com.corbado.generated.model.Paging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,7 +54,7 @@ /** * IdentifierList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class IdentifierList { public static final String SERIALIZED_NAME_IDENTIFIERS = "identifiers"; @SerializedName(SERIALIZED_NAME_IDENTIFIERS) @@ -64,7 +64,7 @@ public class IdentifierList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private UserListPaging paging; + private Paging paging; public IdentifierList() { } @@ -96,7 +96,7 @@ public void setIdentifiers(@javax.annotation.Nonnull List identifier } - public IdentifierList paging(@javax.annotation.Nonnull UserListPaging paging) { + public IdentifierList paging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; return this; } @@ -106,11 +106,11 @@ public IdentifierList paging(@javax.annotation.Nonnull UserListPaging paging) { * @return paging */ @javax.annotation.Nonnull - public UserListPaging getPaging() { + public Paging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + public void setPaging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti Identifier.validateJsonElement(jsonArrayidentifiers.get(i)); }; // validate the required field `paging` - UserListPaging.validateJsonElement(jsonObj.get("paging")); + Paging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java b/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java index 60f3cb0..3724fe4 100644 --- a/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/IdentifierUpdateReq.java @@ -51,7 +51,7 @@ /** * IdentifierUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class IdentifierUpdateReq { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java b/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java index f88ef04..0f74bd7 100644 --- a/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java +++ b/src/main/java/com/corbado/generated/model/JavaScriptHighEntropy.java @@ -50,7 +50,7 @@ /** * JavaScriptHighEntropy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class JavaScriptHighEntropy { public static final String SERIALIZED_NAME_PLATFORM = "platform"; @SerializedName(SERIALIZED_NAME_PLATFORM) diff --git a/src/main/java/com/corbado/generated/model/NativeMeta.java b/src/main/java/com/corbado/generated/model/NativeMeta.java index 7d937fa..6af6069 100644 --- a/src/main/java/com/corbado/generated/model/NativeMeta.java +++ b/src/main/java/com/corbado/generated/model/NativeMeta.java @@ -50,7 +50,7 @@ /** * NativeMeta */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class NativeMeta { public static final String SERIALIZED_NAME_BUILD = "build"; @SerializedName(SERIALIZED_NAME_BUILD) diff --git a/src/main/java/com/corbado/generated/model/UserListPaging.java b/src/main/java/com/corbado/generated/model/Paging.java similarity index 76% rename from src/main/java/com/corbado/generated/model/UserListPaging.java rename to src/main/java/com/corbado/generated/model/Paging.java index fe7b698..c453a46 100644 --- a/src/main/java/com/corbado/generated/model/UserListPaging.java +++ b/src/main/java/com/corbado/generated/model/Paging.java @@ -48,10 +48,10 @@ import com.corbado.generated.invoker.JSON; /** - * UserListPaging + * Paging */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") -public class UserListPaging { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class Paging { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @javax.annotation.Nonnull @@ -67,10 +67,10 @@ public class UserListPaging { @javax.annotation.Nonnull private Integer totalItems; - public UserListPaging() { + public Paging() { } - public UserListPaging page(@javax.annotation.Nonnull Integer page) { + public Paging page(@javax.annotation.Nonnull Integer page) { this.page = page; return this; } @@ -89,7 +89,7 @@ public void setPage(@javax.annotation.Nonnull Integer page) { } - public UserListPaging totalPages(@javax.annotation.Nonnull Integer totalPages) { + public Paging totalPages(@javax.annotation.Nonnull Integer totalPages) { this.totalPages = totalPages; return this; } @@ -108,7 +108,7 @@ public void setTotalPages(@javax.annotation.Nonnull Integer totalPages) { } - public UserListPaging totalItems(@javax.annotation.Nonnull Integer totalItems) { + public Paging totalItems(@javax.annotation.Nonnull Integer totalItems) { this.totalItems = totalItems; return this; } @@ -136,10 +136,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserListPaging userListPaging = (UserListPaging) o; - return Objects.equals(this.page, userListPaging.page) && - Objects.equals(this.totalPages, userListPaging.totalPages) && - Objects.equals(this.totalItems, userListPaging.totalItems); + Paging paging = (Paging) o; + return Objects.equals(this.page, paging.page) && + Objects.equals(this.totalPages, paging.totalPages) && + Objects.equals(this.totalItems, paging.totalItems); } @Override @@ -150,7 +150,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserListPaging {\n"); + sb.append("class Paging {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n"); sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); @@ -185,25 +185,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UserListPaging + * @throws IOException if the JSON Element is invalid with respect to Paging */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!UserListPaging.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListPaging is not found in the empty JSON string", UserListPaging.openapiRequiredFields.toString())); + if (!Paging.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Paging is not found in the empty JSON string", Paging.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!UserListPaging.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListPaging` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!Paging.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Paging` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserListPaging.openapiRequiredFields) { + for (String requiredField : Paging.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -215,22 +215,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserListPaging.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserListPaging' and its subtypes + if (!Paging.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Paging' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserListPaging.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Paging.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserListPaging value) throws IOException { + public void write(JsonWriter out, Paging value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public UserListPaging read(JsonReader in) throws IOException { + public Paging read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -241,18 +241,18 @@ public UserListPaging read(JsonReader in) throws IOException { } /** - * Create an instance of UserListPaging given an JSON string + * Create an instance of Paging given an JSON string * * @param jsonString JSON string - * @return An instance of UserListPaging - * @throws IOException if the JSON string is invalid with respect to UserListPaging + * @return An instance of Paging + * @throws IOException if the JSON string is invalid with respect to Paging */ - public static UserListPaging fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserListPaging.class); + public static Paging fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Paging.class); } /** - * Convert an instance of UserListPaging to an JSON string + * Convert an instance of Paging to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java b/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java index 441f7fe..19151de 100644 --- a/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java +++ b/src/main/java/com/corbado/generated/model/ParsedDeviceInfo.java @@ -50,7 +50,7 @@ /** * ParsedDeviceInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ParsedDeviceInfo { public static final String SERIALIZED_NAME_BROWSER_NAME = "browserName"; @SerializedName(SERIALIZED_NAME_BROWSER_NAME) diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java index 1ee2ba1..0fd832a 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishReq.java @@ -51,7 +51,7 @@ /** * PasskeyAppendFinishReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendFinishReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java index 22ff9c1..a1b461d 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendFinishRsp.java @@ -51,7 +51,7 @@ /** * PasskeyAppendFinishRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendFinishRsp { public static final String SERIALIZED_NAME_PASSKEY_DATA = "passkeyData"; @SerializedName(SERIALIZED_NAME_PASSKEY_DATA) diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java b/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java index 3249b54..16c85b1 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendStartReq.java @@ -52,7 +52,7 @@ /** * PasskeyAppendStartReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendStartReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) diff --git a/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java b/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java index dc67ff8..6ec6f65 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyAppendStartRsp.java @@ -52,7 +52,7 @@ /** * PasskeyAppendStartRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyAppendStartRsp { public static final String SERIALIZED_NAME_APPEND_ALLOW = "appendAllow"; @SerializedName(SERIALIZED_NAME_APPEND_ALLOW) diff --git a/src/main/java/com/corbado/generated/model/PasskeyChallenge.java b/src/main/java/com/corbado/generated/model/PasskeyChallenge.java index 01d10c5..a2f8331 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyChallenge.java +++ b/src/main/java/com/corbado/generated/model/PasskeyChallenge.java @@ -52,7 +52,7 @@ /** * PasskeyChallenge */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyChallenge { public static final String SERIALIZED_NAME_CHALLENGE_I_D = "challengeID"; @SerializedName(SERIALIZED_NAME_CHALLENGE_I_D) diff --git a/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java b/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java index 78942e2..85a66ad 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java +++ b/src/main/java/com/corbado/generated/model/PasskeyChallengeList.java @@ -15,8 +15,8 @@ import java.util.Objects; import java.util.Locale; +import com.corbado.generated.model.Paging; import com.corbado.generated.model.PasskeyChallenge; -import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,7 +54,7 @@ /** * PasskeyChallengeList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyChallengeList { public static final String SERIALIZED_NAME_PASSKEY_CHALLENGES = "passkeyChallenges"; @SerializedName(SERIALIZED_NAME_PASSKEY_CHALLENGES) @@ -64,7 +64,7 @@ public class PasskeyChallengeList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private UserListPaging paging; + private Paging paging; public PasskeyChallengeList() { } @@ -96,7 +96,7 @@ public void setPasskeyChallenges(@javax.annotation.Nonnull List passke } - public PasskeyEventList paging(@javax.annotation.Nonnull UserListPaging paging) { + public PasskeyEventList paging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; return this; } @@ -106,11 +106,11 @@ public PasskeyEventList paging(@javax.annotation.Nonnull UserListPaging paging) * @return paging */ @javax.annotation.Nonnull - public UserListPaging getPaging() { + public Paging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + public void setPaging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti PasskeyEvent.validateJsonElement(jsonArraypasskeyEvents.get(i)); }; // validate the required field `paging` - UserListPaging.validateJsonElement(jsonObj.get("paging")); + Paging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java b/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java index 9939472..3584711 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java +++ b/src/main/java/com/corbado/generated/model/PasskeyIntelFlags.java @@ -50,7 +50,7 @@ /** * PasskeyIntelFlags */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyIntelFlags { public static final String SERIALIZED_NAME_FORCE_PASSKEY_APPEND = "forcePasskeyAppend"; @SerializedName(SERIALIZED_NAME_FORCE_PASSKEY_APPEND) diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java index 18fcd7b..146f585 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishReq.java @@ -51,7 +51,7 @@ /** * PasskeyLoginFinishReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginFinishReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java index aaac672..37085d6 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginFinishRsp.java @@ -51,7 +51,7 @@ /** * PasskeyLoginFinishRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginFinishRsp { public static final String SERIALIZED_NAME_PASSKEY_DATA = "passkeyData"; @SerializedName(SERIALIZED_NAME_PASSKEY_DATA) diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java b/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java index 7214e9c..22dd05e 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginStartReq.java @@ -52,7 +52,7 @@ /** * PasskeyLoginStartReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginStartReq { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) diff --git a/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java b/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java index e4d31a6..896920e 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyLoginStartRsp.java @@ -52,7 +52,7 @@ /** * PasskeyLoginStartRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyLoginStartRsp { public static final String SERIALIZED_NAME_LOGIN_ALLOW = "loginAllow"; @SerializedName(SERIALIZED_NAME_LOGIN_ALLOW) diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java index 2bbc3d8..f3ff4c4 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorAlternativeProject.java @@ -50,7 +50,7 @@ /** * PasskeyMediationFinishErrorAlternativeProject */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishErrorAlternativeProject { /** * Gets or Sets type diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java index 39facaa..31d5f26 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishErrorCredentialDeleted.java @@ -50,7 +50,7 @@ /** * PasskeyMediationFinishErrorCredentialDeleted */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishErrorCredentialDeleted { /** * Gets or Sets type diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java index 91f7b39..a0994e0 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishReq.java @@ -51,7 +51,7 @@ /** * PasskeyMediationFinishReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishReq { public static final String SERIALIZED_NAME_ASSERTION_RESPONSE = "assertionResponse"; @SerializedName(SERIALIZED_NAME_ASSERTION_RESPONSE) diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java index 8b3e5cf..2d2f107 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRsp.java @@ -52,7 +52,7 @@ /** * PasskeyMediationFinishRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishRsp { public static final String SERIALIZED_NAME_PASSKEY_DATA = "passkeyData"; @SerializedName(SERIALIZED_NAME_PASSKEY_DATA) diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java index 403eb4f..56acc08 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationFinishRspError.java @@ -61,7 +61,7 @@ import com.corbado.generated.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationFinishRspError extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(PasskeyMediationFinishRspError.class.getName()); diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java b/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java index d4703d2..a584a92 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationStartReq.java @@ -51,7 +51,7 @@ /** * PasskeyMediationStartReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationStartReq { public static final String SERIALIZED_NAME_CLIENT_INFORMATION = "clientInformation"; @SerializedName(SERIALIZED_NAME_CLIENT_INFORMATION) diff --git a/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java b/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java index 9d0f88a..860acbe 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyMediationStartRsp.java @@ -50,7 +50,7 @@ /** * PasskeyMediationStartRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyMediationStartRsp { public static final String SERIALIZED_NAME_LOGIN_ALLOW = "loginAllow"; @SerializedName(SERIALIZED_NAME_LOGIN_ALLOW) diff --git a/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java b/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java index fbf788b..ee303f3 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyPostLoginReq.java @@ -50,7 +50,7 @@ /** * PasskeyPostLoginReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyPostLoginReq { public static final String SERIALIZED_NAME_SIGNED_PASSKEY_DATA = "signedPasskeyData"; @SerializedName(SERIALIZED_NAME_SIGNED_PASSKEY_DATA) diff --git a/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java b/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java index 6ac9fff..d22c019 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyPostLoginRsp.java @@ -50,7 +50,7 @@ /** * PasskeyPostLoginRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyPostLoginRsp { public static final String SERIALIZED_NAME_SESSION = "session"; @SerializedName(SERIALIZED_NAME_SESSION) diff --git a/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java index 67eb1e9..961e003 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java +++ b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataReq.java @@ -50,7 +50,7 @@ /** * PasskeyVerifySignedDataReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyVerifySignedDataReq { public static final String SERIALIZED_NAME_SIGNED_PASSKEY_DATA = "signedPasskeyData"; @SerializedName(SERIALIZED_NAME_SIGNED_PASSKEY_DATA) diff --git a/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java index c532e18..303ae89 100644 --- a/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java +++ b/src/main/java/com/corbado/generated/model/PasskeyVerifySignedDataRsp.java @@ -50,7 +50,7 @@ /** * PasskeyVerifySignedDataRsp */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasskeyVerifySignedDataRsp { /** * Gets or Sets verificationResult diff --git a/src/main/java/com/corbado/generated/model/PasswordManager.java b/src/main/java/com/corbado/generated/model/PasswordManager.java index eb88540..9c3a671 100644 --- a/src/main/java/com/corbado/generated/model/PasswordManager.java +++ b/src/main/java/com/corbado/generated/model/PasswordManager.java @@ -50,7 +50,7 @@ /** * PasswordManager */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasswordManager { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/corbado/generated/model/PasswordManagerList.java b/src/main/java/com/corbado/generated/model/PasswordManagerList.java index 7d5b04b..cc3f265 100644 --- a/src/main/java/com/corbado/generated/model/PasswordManagerList.java +++ b/src/main/java/com/corbado/generated/model/PasswordManagerList.java @@ -53,7 +53,7 @@ /** * PasswordManagerList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class PasswordManagerList { public static final String SERIALIZED_NAME_PASSWORD_MANAGERS = "passwordManagers"; @SerializedName(SERIALIZED_NAME_PASSWORD_MANAGERS) diff --git a/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java b/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java index aa88a8f..476d8cc 100644 --- a/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java +++ b/src/main/java/com/corbado/generated/model/ProjectConfigUpdateCnameReq.java @@ -50,7 +50,7 @@ /** * ProjectConfigUpdateCnameReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class ProjectConfigUpdateCnameReq { public static final String SERIALIZED_NAME_CNAME = "cname"; @SerializedName(SERIALIZED_NAME_CNAME) diff --git a/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfRequestData.java b/src/main/java/com/corbado/generated/model/RequestData.java similarity index 71% rename from src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfRequestData.java rename to src/main/java/com/corbado/generated/model/RequestData.java index c7724d1..73c31a3 100644 --- a/src/main/java/com/corbado/generated/model/UserListDefaultResponseAllOfRequestData.java +++ b/src/main/java/com/corbado/generated/model/RequestData.java @@ -50,8 +50,8 @@ /** * Data about the request itself, can be used for debugging */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") -public class UserListDefaultResponseAllOfRequestData { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class RequestData { public static final String SERIALIZED_NAME_REQUEST_I_D = "requestID"; @SerializedName(SERIALIZED_NAME_REQUEST_I_D) @javax.annotation.Nonnull @@ -62,10 +62,10 @@ public class UserListDefaultResponseAllOfRequestData { @javax.annotation.Nullable private String link; - public UserListDefaultResponseAllOfRequestData() { + public RequestData() { } - public UserListDefaultResponseAllOfRequestData requestID(@javax.annotation.Nonnull String requestID) { + public RequestData requestID(@javax.annotation.Nonnull String requestID) { this.requestID = requestID; return this; } @@ -84,7 +84,7 @@ public void setRequestID(@javax.annotation.Nonnull String requestID) { } - public UserListDefaultResponseAllOfRequestData link(@javax.annotation.Nullable String link) { + public RequestData link(@javax.annotation.Nullable String link) { this.link = link; return this; } @@ -112,9 +112,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserListDefaultResponseAllOfRequestData userListDefaultResponseAllOfRequestData = (UserListDefaultResponseAllOfRequestData) o; - return Objects.equals(this.requestID, userListDefaultResponseAllOfRequestData.requestID) && - Objects.equals(this.link, userListDefaultResponseAllOfRequestData.link); + RequestData requestData = (RequestData) o; + return Objects.equals(this.requestID, requestData.requestID) && + Objects.equals(this.link, requestData.link); } @Override @@ -125,7 +125,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserListDefaultResponseAllOfRequestData {\n"); + sb.append("class RequestData {\n"); sb.append(" requestID: ").append(toIndentedString(requestID)).append("\n"); sb.append(" link: ").append(toIndentedString(link)).append("\n"); sb.append("}"); @@ -159,25 +159,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UserListDefaultResponseAllOfRequestData + * @throws IOException if the JSON Element is invalid with respect to RequestData */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!UserListDefaultResponseAllOfRequestData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserListDefaultResponseAllOfRequestData is not found in the empty JSON string", UserListDefaultResponseAllOfRequestData.openapiRequiredFields.toString())); + if (!RequestData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RequestData is not found in the empty JSON string", RequestData.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!UserListDefaultResponseAllOfRequestData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserListDefaultResponseAllOfRequestData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!RequestData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `RequestData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserListDefaultResponseAllOfRequestData.openapiRequiredFields) { + for (String requiredField : RequestData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -195,22 +195,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserListDefaultResponseAllOfRequestData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserListDefaultResponseAllOfRequestData' and its subtypes + if (!RequestData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RequestData' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserListDefaultResponseAllOfRequestData.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RequestData.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserListDefaultResponseAllOfRequestData value) throws IOException { + public void write(JsonWriter out, RequestData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public UserListDefaultResponseAllOfRequestData read(JsonReader in) throws IOException { + public RequestData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -221,18 +221,18 @@ public UserListDefaultResponseAllOfRequestData read(JsonReader in) throws IOExce } /** - * Create an instance of UserListDefaultResponseAllOfRequestData given an JSON string + * Create an instance of RequestData given an JSON string * * @param jsonString JSON string - * @return An instance of UserListDefaultResponseAllOfRequestData - * @throws IOException if the JSON string is invalid with respect to UserListDefaultResponseAllOfRequestData + * @return An instance of RequestData + * @throws IOException if the JSON string is invalid with respect to RequestData */ - public static UserListDefaultResponseAllOfRequestData fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserListDefaultResponseAllOfRequestData.class); + public static RequestData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RequestData.class); } /** - * Convert an instance of UserListDefaultResponseAllOfRequestData to an JSON string + * Convert an instance of RequestData to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/SessionListSessionsInner.java b/src/main/java/com/corbado/generated/model/Session.java similarity index 67% rename from src/main/java/com/corbado/generated/model/SessionListSessionsInner.java rename to src/main/java/com/corbado/generated/model/Session.java index 93d13c2..bdc605b 100644 --- a/src/main/java/com/corbado/generated/model/SessionListSessionsInner.java +++ b/src/main/java/com/corbado/generated/model/Session.java @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Locale; +import com.corbado.generated.model.SessionStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,10 +49,10 @@ import com.corbado.generated.invoker.JSON; /** - * SessionListSessionsInner + * Session */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") -public class SessionListSessionsInner { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +public class Session { public static final String SERIALIZED_NAME_SESSION_I_D = "sessionID"; @SerializedName(SERIALIZED_NAME_SESSION_I_D) @javax.annotation.Nonnull @@ -82,73 +83,15 @@ public class SessionListSessionsInner { @javax.annotation.Nonnull private Long expiresMs; - /** - * Gets or Sets status - */ - @JsonAdapter(StatusEnum.Adapter.class) - public enum StatusEnum { - ACTIVE("active"), - - LOGGED_OUT("logged_out"), - - EXPIRED("expired"), - - INACTIVITY_REACHED("inactivity_reached"), - - REVOKED("revoked"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StatusEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - StatusEnum.fromValue(value); - } - } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nonnull - private StatusEnum status; + private SessionStatus status; - public SessionListSessionsInner() { + public Session() { } - public SessionListSessionsInner sessionID(@javax.annotation.Nonnull String sessionID) { + public Session sessionID(@javax.annotation.Nonnull String sessionID) { this.sessionID = sessionID; return this; } @@ -167,7 +110,7 @@ public void setSessionID(@javax.annotation.Nonnull String sessionID) { } - public SessionListSessionsInner userID(@javax.annotation.Nonnull String userID) { + public Session userID(@javax.annotation.Nonnull String userID) { this.userID = userID; return this; } @@ -186,7 +129,7 @@ public void setUserID(@javax.annotation.Nonnull String userID) { } - public SessionListSessionsInner identifierValue(@javax.annotation.Nonnull String identifierValue) { + public Session identifierValue(@javax.annotation.Nonnull String identifierValue) { this.identifierValue = identifierValue; return this; } @@ -205,7 +148,7 @@ public void setIdentifierValue(@javax.annotation.Nonnull String identifierValue) } - public SessionListSessionsInner createdMs(@javax.annotation.Nonnull Long createdMs) { + public Session createdMs(@javax.annotation.Nonnull Long createdMs) { this.createdMs = createdMs; return this; } @@ -224,7 +167,7 @@ public void setCreatedMs(@javax.annotation.Nonnull Long createdMs) { } - public SessionListSessionsInner lastActionMs(@javax.annotation.Nonnull Long lastActionMs) { + public Session lastActionMs(@javax.annotation.Nonnull Long lastActionMs) { this.lastActionMs = lastActionMs; return this; } @@ -243,7 +186,7 @@ public void setLastActionMs(@javax.annotation.Nonnull Long lastActionMs) { } - public SessionListSessionsInner expiresMs(@javax.annotation.Nonnull Long expiresMs) { + public Session expiresMs(@javax.annotation.Nonnull Long expiresMs) { this.expiresMs = expiresMs; return this; } @@ -262,7 +205,7 @@ public void setExpiresMs(@javax.annotation.Nonnull Long expiresMs) { } - public SessionListSessionsInner status(@javax.annotation.Nonnull StatusEnum status) { + public Session status(@javax.annotation.Nonnull SessionStatus status) { this.status = status; return this; } @@ -272,11 +215,11 @@ public SessionListSessionsInner status(@javax.annotation.Nonnull StatusEnum stat * @return status */ @javax.annotation.Nonnull - public StatusEnum getStatus() { + public SessionStatus getStatus() { return status; } - public void setStatus(@javax.annotation.Nonnull StatusEnum status) { + public void setStatus(@javax.annotation.Nonnull SessionStatus status) { this.status = status; } @@ -290,14 +233,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SessionListSessionsInner sessionListSessionsInner = (SessionListSessionsInner) o; - return Objects.equals(this.sessionID, sessionListSessionsInner.sessionID) && - Objects.equals(this.userID, sessionListSessionsInner.userID) && - Objects.equals(this.identifierValue, sessionListSessionsInner.identifierValue) && - Objects.equals(this.createdMs, sessionListSessionsInner.createdMs) && - Objects.equals(this.lastActionMs, sessionListSessionsInner.lastActionMs) && - Objects.equals(this.expiresMs, sessionListSessionsInner.expiresMs) && - Objects.equals(this.status, sessionListSessionsInner.status); + Session session = (Session) o; + return Objects.equals(this.sessionID, session.sessionID) && + Objects.equals(this.userID, session.userID) && + Objects.equals(this.identifierValue, session.identifierValue) && + Objects.equals(this.createdMs, session.createdMs) && + Objects.equals(this.lastActionMs, session.lastActionMs) && + Objects.equals(this.expiresMs, session.expiresMs) && + Objects.equals(this.status, session.status); } @Override @@ -308,7 +251,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SessionListSessionsInner {\n"); + sb.append("class Session {\n"); sb.append(" sessionID: ").append(toIndentedString(sessionID)).append("\n"); sb.append(" userID: ").append(toIndentedString(userID)).append("\n"); sb.append(" identifierValue: ").append(toIndentedString(identifierValue)).append("\n"); @@ -347,25 +290,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SessionListSessionsInner + * @throws IOException if the JSON Element is invalid with respect to Session */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!SessionListSessionsInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SessionListSessionsInner is not found in the empty JSON string", SessionListSessionsInner.openapiRequiredFields.toString())); + if (!Session.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Session is not found in the empty JSON string", Session.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!SessionListSessionsInner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SessionListSessionsInner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!Session.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Session` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SessionListSessionsInner.openapiRequiredFields) { + for (String requiredField : Session.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -380,33 +323,30 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("identifierValue").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); } - if (!jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); - } // validate the required field `status` - StatusEnum.validateJsonElement(jsonObj.get("status")); + SessionStatus.validateJsonElement(jsonObj.get("status")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SessionListSessionsInner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SessionListSessionsInner' and its subtypes + if (!Session.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Session' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SessionListSessionsInner.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Session.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, SessionListSessionsInner value) throws IOException { + public void write(JsonWriter out, Session value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public SessionListSessionsInner read(JsonReader in) throws IOException { + public Session read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -417,18 +357,18 @@ public SessionListSessionsInner read(JsonReader in) throws IOException { } /** - * Create an instance of SessionListSessionsInner given an JSON string + * Create an instance of Session given an JSON string * * @param jsonString JSON string - * @return An instance of SessionListSessionsInner - * @throws IOException if the JSON string is invalid with respect to SessionListSessionsInner + * @return An instance of Session + * @throws IOException if the JSON string is invalid with respect to Session */ - public static SessionListSessionsInner fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SessionListSessionsInner.class); + public static Session fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Session.class); } /** - * Convert an instance of SessionListSessionsInner to an JSON string + * Convert an instance of Session to an JSON string * * @return JSON string */ diff --git a/src/main/java/com/corbado/generated/model/SessionList.java b/src/main/java/com/corbado/generated/model/SessionList.java index 9f94f7d..6adfb7c 100644 --- a/src/main/java/com/corbado/generated/model/SessionList.java +++ b/src/main/java/com/corbado/generated/model/SessionList.java @@ -15,8 +15,8 @@ import java.util.Objects; import java.util.Locale; -import com.corbado.generated.model.SessionListSessionsInner; -import com.corbado.generated.model.UserListPaging; +import com.corbado.generated.model.Paging; +import com.corbado.generated.model.Session; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,27 +54,27 @@ /** * SessionList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SessionList { public static final String SERIALIZED_NAME_SESSIONS = "sessions"; @SerializedName(SERIALIZED_NAME_SESSIONS) @javax.annotation.Nonnull - private List sessions = new ArrayList<>(); + private List sessions = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private UserListPaging paging; + private Paging paging; public SessionList() { } - public SessionList sessions(@javax.annotation.Nonnull List sessions) { + public SessionList sessions(@javax.annotation.Nonnull List sessions) { this.sessions = sessions; return this; } - public SessionList addSessionsItem(SessionListSessionsInner sessionsItem) { + public SessionList addSessionsItem(Session sessionsItem) { if (this.sessions == null) { this.sessions = new ArrayList<>(); } @@ -87,16 +87,16 @@ public SessionList addSessionsItem(SessionListSessionsInner sessionsItem) { * @return sessions */ @javax.annotation.Nonnull - public List getSessions() { + public List getSessions() { return sessions; } - public void setSessions(@javax.annotation.Nonnull List sessions) { + public void setSessions(@javax.annotation.Nonnull List sessions) { this.sessions = sessions; } - public SessionList paging(@javax.annotation.Nonnull UserListPaging paging) { + public SessionList paging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; return this; } @@ -106,11 +106,11 @@ public SessionList paging(@javax.annotation.Nonnull UserListPaging paging) { * @return paging */ @javax.annotation.Nonnull - public UserListPaging getPaging() { + public Paging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + public void setPaging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; } @@ -203,10 +203,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonArray jsonArraysessions = jsonObj.getAsJsonArray("sessions"); // validate the required field `sessions` (array) for (int i = 0; i < jsonArraysessions.size(); i++) { - SessionListSessionsInner.validateJsonElement(jsonArraysessions.get(i)); + Session.validateJsonElement(jsonArraysessions.get(i)); }; // validate the required field `paging` - UserListPaging.validateJsonElement(jsonObj.get("paging")); + Paging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/SessionStatus.java b/src/main/java/com/corbado/generated/model/SessionStatus.java new file mode 100644 index 0000000..1f6fc2d --- /dev/null +++ b/src/main/java/com/corbado/generated/model/SessionStatus.java @@ -0,0 +1,86 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets sessionStatus + */ +@JsonAdapter(SessionStatus.Adapter.class) +public enum SessionStatus { + + ACTIVE("active"), + + LOGGED_OUT("logged_out"), + + EXPIRED("expired"), + + INACTIVITY_REACHED("inactivity_reached"), + + REVOKED("revoked"); + + private String value; + + SessionStatus(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SessionStatus fromValue(String value) { + for (SessionStatus b : SessionStatus.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SessionStatus enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SessionStatus read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SessionStatus.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + SessionStatus.fromValue(value); + } +} + diff --git a/src/main/java/com/corbado/generated/model/SocialAccount.java b/src/main/java/com/corbado/generated/model/SocialAccount.java index b1dc6fe..861b000 100644 --- a/src/main/java/com/corbado/generated/model/SocialAccount.java +++ b/src/main/java/com/corbado/generated/model/SocialAccount.java @@ -50,7 +50,7 @@ /** * SocialAccount */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SocialAccount { public static final String SERIALIZED_NAME_SOCIAL_ACCOUNT_I_D = "socialAccountID"; @SerializedName(SERIALIZED_NAME_SOCIAL_ACCOUNT_I_D) diff --git a/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java b/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java index b95cf1d..2081e87 100644 --- a/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java +++ b/src/main/java/com/corbado/generated/model/SocialAccountCreateReq.java @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Locale; +import com.corbado.generated.model.SocialProviderType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,66 +51,12 @@ /** * SocialAccountCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SocialAccountCreateReq { - /** - * Type of the social provider. - */ - @JsonAdapter(ProviderTypeEnum.Adapter.class) - public enum ProviderTypeEnum { - GOOGLE("google"), - - MICROSOFT("microsoft"), - - GITHUB("github"); - - private String value; - - ProviderTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ProviderTypeEnum fromValue(String value) { - for (ProviderTypeEnum b : ProviderTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ProviderTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ProviderTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ProviderTypeEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ProviderTypeEnum.fromValue(value); - } - } - public static final String SERIALIZED_NAME_PROVIDER_TYPE = "providerType"; @SerializedName(SERIALIZED_NAME_PROVIDER_TYPE) @javax.annotation.Nonnull - private ProviderTypeEnum providerType; + private SocialProviderType providerType; public static final String SERIALIZED_NAME_IDENTIFIER_VALUE = "identifierValue"; @SerializedName(SERIALIZED_NAME_IDENTIFIER_VALUE) @@ -134,21 +81,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public SocialAccountCreateReq() { } - public SocialAccountCreateReq providerType(@javax.annotation.Nonnull ProviderTypeEnum providerType) { + public SocialAccountCreateReq providerType(@javax.annotation.Nonnull SocialProviderType providerType) { this.providerType = providerType; return this; } /** - * Type of the social provider. + * Get providerType * @return providerType */ @javax.annotation.Nonnull - public ProviderTypeEnum getProviderType() { + public SocialProviderType getProviderType() { return providerType; } - public void setProviderType(@javax.annotation.Nonnull ProviderTypeEnum providerType) { + public void setProviderType(@javax.annotation.Nonnull SocialProviderType providerType) { this.providerType = providerType; } @@ -315,11 +262,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("providerType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `providerType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerType").toString())); - } // validate the required field `providerType` - ProviderTypeEnum.validateJsonElement(jsonObj.get("providerType")); + SocialProviderType.validateJsonElement(jsonObj.get("providerType")); if (!jsonObj.get("identifierValue").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `identifierValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierValue").toString())); } diff --git a/src/main/java/com/corbado/generated/model/SocialAccountList.java b/src/main/java/com/corbado/generated/model/SocialAccountList.java index 9569042..213bdf8 100644 --- a/src/main/java/com/corbado/generated/model/SocialAccountList.java +++ b/src/main/java/com/corbado/generated/model/SocialAccountList.java @@ -15,8 +15,8 @@ import java.util.Objects; import java.util.Locale; +import com.corbado.generated.model.Paging; import com.corbado.generated.model.SocialAccount; -import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,7 +54,7 @@ /** * SocialAccountList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class SocialAccountList { public static final String SERIALIZED_NAME_SOCIAL_ACCOUNTS = "socialAccounts"; @SerializedName(SERIALIZED_NAME_SOCIAL_ACCOUNTS) @@ -64,7 +64,7 @@ public class SocialAccountList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private UserListPaging paging; + private Paging paging; public SocialAccountList() { } @@ -96,7 +96,7 @@ public void setSocialAccounts(@javax.annotation.Nonnull List soci } - public SocialAccountList paging(@javax.annotation.Nonnull UserListPaging paging) { + public SocialAccountList paging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; return this; } @@ -106,11 +106,11 @@ public SocialAccountList paging(@javax.annotation.Nonnull UserListPaging paging) * @return paging */ @javax.annotation.Nonnull - public UserListPaging getPaging() { + public Paging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + public void setPaging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti SocialAccount.validateJsonElement(jsonArraysocialAccounts.get(i)); }; // validate the required field `paging` - UserListPaging.validateJsonElement(jsonObj.get("paging")); + Paging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/SocialProviderType.java b/src/main/java/com/corbado/generated/model/SocialProviderType.java new file mode 100644 index 0000000..12f8a54 --- /dev/null +++ b/src/main/java/com/corbado/generated/model/SocialProviderType.java @@ -0,0 +1,82 @@ +/* + * Corbado Backend API + * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@corbado.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.corbado.generated.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Type of the social provider. + */ +@JsonAdapter(SocialProviderType.Adapter.class) +public enum SocialProviderType { + + GOOGLE("google"), + + MICROSOFT("microsoft"), + + GITHUB("github"); + + private String value; + + SocialProviderType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SocialProviderType fromValue(String value) { + for (SocialProviderType b : SocialProviderType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SocialProviderType enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SocialProviderType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SocialProviderType.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + SocialProviderType.fromValue(value); + } +} + diff --git a/src/main/java/com/corbado/generated/model/User.java b/src/main/java/com/corbado/generated/model/User.java index ef0b862..2e7221b 100644 --- a/src/main/java/com/corbado/generated/model/User.java +++ b/src/main/java/com/corbado/generated/model/User.java @@ -51,7 +51,7 @@ /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class User { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) diff --git a/src/main/java/com/corbado/generated/model/UserAggregate.java b/src/main/java/com/corbado/generated/model/UserAggregate.java index d1566ba..d585451 100644 --- a/src/main/java/com/corbado/generated/model/UserAggregate.java +++ b/src/main/java/com/corbado/generated/model/UserAggregate.java @@ -55,7 +55,7 @@ /** * UserAggregate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class UserAggregate { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) diff --git a/src/main/java/com/corbado/generated/model/UserCreateReq.java b/src/main/java/com/corbado/generated/model/UserCreateReq.java index 6a60d7f..f806c07 100644 --- a/src/main/java/com/corbado/generated/model/UserCreateReq.java +++ b/src/main/java/com/corbado/generated/model/UserCreateReq.java @@ -51,7 +51,7 @@ /** * UserCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class UserCreateReq { public static final String SERIALIZED_NAME_FULL_NAME = "fullName"; @SerializedName(SERIALIZED_NAME_FULL_NAME) diff --git a/src/main/java/com/corbado/generated/model/UserList.java b/src/main/java/com/corbado/generated/model/UserList.java index e37766b..040793a 100644 --- a/src/main/java/com/corbado/generated/model/UserList.java +++ b/src/main/java/com/corbado/generated/model/UserList.java @@ -15,8 +15,8 @@ import java.util.Objects; import java.util.Locale; +import com.corbado.generated.model.Paging; import com.corbado.generated.model.UserAggregate; -import com.corbado.generated.model.UserListPaging; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,7 +54,7 @@ /** * UserList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class UserList { public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) @@ -64,7 +64,7 @@ public class UserList { public static final String SERIALIZED_NAME_PAGING = "paging"; @SerializedName(SERIALIZED_NAME_PAGING) @javax.annotation.Nonnull - private UserListPaging paging; + private Paging paging; public UserList() { } @@ -96,7 +96,7 @@ public void setUsers(@javax.annotation.Nonnull List users) { } - public UserList paging(@javax.annotation.Nonnull UserListPaging paging) { + public UserList paging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; return this; } @@ -106,11 +106,11 @@ public UserList paging(@javax.annotation.Nonnull UserListPaging paging) { * @return paging */ @javax.annotation.Nonnull - public UserListPaging getPaging() { + public Paging getPaging() { return paging; } - public void setPaging(@javax.annotation.Nonnull UserListPaging paging) { + public void setPaging(@javax.annotation.Nonnull Paging paging) { this.paging = paging; } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti UserAggregate.validateJsonElement(jsonArrayusers.get(i)); }; // validate the required field `paging` - UserListPaging.validateJsonElement(jsonObj.get("paging")); + Paging.validateJsonElement(jsonObj.get("paging")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/com/corbado/generated/model/UserUpdateReq.java b/src/main/java/com/corbado/generated/model/UserUpdateReq.java index 6a06cfe..a764671 100644 --- a/src/main/java/com/corbado/generated/model/UserUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/UserUpdateReq.java @@ -51,7 +51,7 @@ /** * UserUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class UserUpdateReq { public static final String SERIALIZED_NAME_FULL_NAME = "fullName"; @SerializedName(SERIALIZED_NAME_FULL_NAME) diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpoint.java b/src/main/java/com/corbado/generated/model/WebhookEndpoint.java index b29a6d6..e16148f 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpoint.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpoint.java @@ -53,7 +53,7 @@ /** * WebhookEndpoint */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpoint { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java b/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java index f66ee8a..0f1abd0 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpointCreateReq.java @@ -53,7 +53,7 @@ /** * WebhookEndpointCreateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpointCreateReq { public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpointList.java b/src/main/java/com/corbado/generated/model/WebhookEndpointList.java index cbdd72c..9807a10 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpointList.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpointList.java @@ -53,7 +53,7 @@ /** * WebhookEndpointList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpointList { public static final String SERIALIZED_NAME_WEBHOOK_ENDPOINTS = "webhookEndpoints"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ENDPOINTS) diff --git a/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java b/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java index cd211c1..281a61f 100644 --- a/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java +++ b/src/main/java/com/corbado/generated/model/WebhookEndpointUpdateReq.java @@ -53,7 +53,7 @@ /** * WebhookEndpointUpdateReq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T12:37:46.293891551Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-10T13:05:36.841382713Z[Etc/UTC]", comments = "Generator version: 7.16.0-SNAPSHOT") public class WebhookEndpointUpdateReq { public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) diff --git a/src/main/java/com/corbado/services/IdentifierService.java b/src/main/java/com/corbado/services/IdentifierService.java index fb163db..d72700c 100644 --- a/src/main/java/com/corbado/services/IdentifierService.java +++ b/src/main/java/com/corbado/services/IdentifierService.java @@ -36,11 +36,12 @@ public IdentifierService(final IdentifiersApi client) { /** * Create a new login identifier. * - * @param userID ID of user (required) + * @param userID ID of user (required) * @param identifierCreateReq * @return Identifier - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public Identifier create( @NonNull final String userID, @NonNull final IdentifierCreateReq identifierCreateReq) @@ -57,7 +58,7 @@ public Identifier create( try { return client.identifierCreate(userID, identifierCreateReq); - // client.identifierList(userID, null, null, null) + // client.identifierList(userID, null, null, null) } catch (final ApiException e) { throw new CorbadoServerException(e); } @@ -66,13 +67,14 @@ public Identifier create( /** * Returns a list of matching identifiers * - * @param sort Field sorting (optional) - * @param filter Field filtering (optional) - * @param page Page number (optional, default to 1) + * @param sort Field sorting (optional) + * @param filter Field filtering (optional) + * @param page Page number (optional, default to 1) * @param pageSize Number of items per page (optional, default to 10) * @return IdentifierList list of matching identifiers - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public IdentifierList list( @Nullable final String sort, @@ -90,11 +92,12 @@ public IdentifierList list( /** * Returns a list of matching identifiers * - * @param page Page number (optional, default to 1) + * @param page Page number (optional, default to 1) * @param pageSize Number of items per page (optional, default to 10) * @return IdentifierList list of matching identifiers - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public IdentifierList listAllWithPaging( @Nullable final Integer page, @Nullable final Integer pageSize) @@ -106,7 +109,7 @@ public IdentifierList listAllWithPaging( * Gets the by value and type. * * @param value the value - * @param type the type + * @param type the type * @return the by value and type * @throws CorbadoServerException the corbado server exception */ @@ -123,14 +126,15 @@ public IdentifierList listByValueAndType( /** * Gets the identifiers matching identifier value and identifier type. * - * @param sort the sort - * @param value the identifier value - * @param type the identifier type - * @param page the page + * @param sort the sort + * @param value the identifier value + * @param type the identifier type + * @param page the page * @param pageSize the page size * @return list of matching identifiers - * @throws CorbadoServerException tIf fail to call the API, e.g. server error or cannot - * deserialize the response body + * @throws CorbadoServerException tIf fail to call the API, e.g. server error or + * cannot + * deserialize the response body */ public IdentifierList listByValueAndTypeWithPaging( @Nullable final String sort, @@ -150,32 +154,33 @@ public IdentifierList listByValueAndTypeWithPaging( * Exists by value and type. * * @return the identifier list - * @throws ApiException the api exception - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws ApiException the api exception + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public boolean existsByValueAndType( @NonNull final String value, @NonNull final IdentifierType type) throws CorbadoServerException { - final IdentifierList ret = - list( - null, - Arrays.asList("identifierValue:eq:" + value, "identifierType:eq:" + type), - null, - null); + final IdentifierList ret = list( + null, + Arrays.asList("identifierValue:eq:" + value, "identifierType:eq:" + type), + null, + null); return !ret.getIdentifiers().isEmpty(); } /** * List all identifiers (active and inactive) by user id with paging. * - * @param userID the user ID (with or without 'usr-' prefix) - * @param page the page + * @param userID the user ID (with or without 'usr-' prefix) + * @param page the page * @param pageSize the page size * @return the identifier list - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public IdentifierList listAllByUserIdWithPaging( @NonNull String userID, @Nullable final Integer page, @Nullable final Integer pageSize) @@ -191,13 +196,14 @@ public IdentifierList listAllByUserIdWithPaging( /** * List all identifiers (active and inactive) by user id and type with paging. * - * @param userID the user ID - * @param type the type of identifier (email, phone, username) - * @param page the page + * @param userID the user ID + * @param type the type of identifier (email, phone, username) + * @param page the page * @param pageSize the page size * @return the identifier list - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public IdentifierList listAllByUserIdAndTypeWithPaging( @NonNull String userID, @@ -219,14 +225,14 @@ public IdentifierList listAllByUserIdAndTypeWithPaging( * * @param userID the user ID * @return the single email by user id - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public List listAllEmailsByUserId(@NonNull final String userID) throws CorbadoServerException { final ArrayList list = new ArrayList<>(); - final IdentifierList firstRes = - listAllByUserIdAndTypeWithPaging(userID, IdentifierType.EMAIL, null, null); + final IdentifierList firstRes = listAllByUserIdAndTypeWithPaging(userID, IdentifierType.EMAIL, null, null); list.addAll(firstRes.getIdentifiers()); final Paging paging = firstRes.getPaging(); // if there are more results unread @@ -234,8 +240,8 @@ public List listAllEmailsByUserId(@NonNull final String userID) // fetch further entries final Integer currentPage = paging.getPage(); paging.setPage(currentPage + 1); - final IdentifierList temp = - listAllByUserIdAndTypeWithPaging(userID, IdentifierType.EMAIL, paging.getPage(), null); + final IdentifierList temp = listAllByUserIdAndTypeWithPaging(userID, IdentifierType.EMAIL, paging.getPage(), + null); // update paging list.addAll(temp.getIdentifiers()); } @@ -246,12 +252,13 @@ public List listAllEmailsByUserId(@NonNull final String userID) /** * Updates a login identifier (e.g. from pending to verified) * - * @param userID ID of user (required) - * @param identifierID ID of login identifier (required) + * @param userID ID of user (required) + * @param identifierID ID of login identifier (required) * @param identifierUpdateReq (required) * @return Identifier - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public Identifier updateStatus( @NonNull final String userID, @@ -268,12 +275,13 @@ public Identifier updateStatus( /** * Updates a login identifier (e.g. from pending to verified) * - * @param userID ID of user (required) + * @param userID ID of user (required) * @param identifierID ID of login identifier (required) - * @param status IdentifierStatus (required) + * @param status IdentifierStatus (required) * @return Identifier - * @throws CorbadoServerException If fail to call the API, e.g. server error or cannot deserialize - * the response body + * @throws CorbadoServerException If fail to call the API, e.g. server error or + * cannot deserialize + * the response body */ public Identifier updateStatus( @NonNull final String userID, @@ -286,9 +294,10 @@ public Identifier updateStatus( /** * Delete. * - * @param userID the user ID + * @param userID the user ID * @param identifierID the identifier ID - * @throws CorbadoServerException If fail to call the API or to delete the object. + * @throws CorbadoServerException If fail to call the API or to delete the + * object. */ public void delete(@NonNull final String userID, @NonNull final String identifierID) throws CorbadoServerException { From ff13f21deb39ef0a59c562c0423c137677e1d678 Mon Sep 17 00:00:00 2001 From: Dopeamin Date: Wed, 10 Sep 2025 15:20:52 +0200 Subject: [PATCH 3/3] prepare for release 1.0.7 --- README.md | 4 ++-- VERSION | 2 +- pom.xml | 2 +- src/main/java/com/corbado/sdk/CorbadoSdk.java | 12 +++++++----- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 23fd1fb..cfd970a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ You can find the latest SDK version at [central repository](https://repo1.maven. Add this dependency to your project's build file: ```groovy -implementation "com.corbado:corbado-java:1.0.6" +implementation "com.corbado:corbado-java:1.0.7" ``` #### Maven users @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.corbado corbado-java - 1.0.6 + 1.0.7 ``` diff --git a/VERSION b/VERSION index ece61c6..f9cbc01 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.6 \ No newline at end of file +1.0.7 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 058315e..3f41cb4 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.corbado corbado-java jar - 1.0.6 + 1.0.7 Corbado Java Corbado Java SDK https://github.com/corbado/corbado-java diff --git a/src/main/java/com/corbado/sdk/CorbadoSdk.java b/src/main/java/com/corbado/sdk/CorbadoSdk.java index 91600f3..d00d747 100644 --- a/src/main/java/com/corbado/sdk/CorbadoSdk.java +++ b/src/main/java/com/corbado/sdk/CorbadoSdk.java @@ -18,7 +18,9 @@ /** * Entry point for the Corbado SDK. * - *

This class provides interfaces to interact with the Corbado API, including user, session and + *

+ * This class provides interfaces to interact with the Corbado API, including + * user, session and * identifier services. */ @Slf4j @@ -28,7 +30,8 @@ public class CorbadoSdk { private static final String CORBADO_HEADER_NAME = "X-Corbado-SDK"; /** The configuration class. */ - @Getter private final Config config; + @Getter + private final Config config; /** The users API. */ @Getter(lazy = true) @@ -36,8 +39,7 @@ public class CorbadoSdk { /** The identifiers API. */ @Getter(lazy = true) - private final IdentifierService identifiers = - new IdentifierService(new IdentifiersApi(this.client)); + private final IdentifierService identifiers = new IdentifierService(new IdentifiersApi(this.client)); /** The sessions API. */ @Getter(lazy = true) @@ -102,6 +104,6 @@ private static String getLanguageVersion() { * @return the version */ public String getVersion() { - return "1.0.6"; + return "1.0.7"; } }