diff --git a/etc/docker-compose.yaml b/etc/docker-compose.yaml index db0a518..de7731a 100644 --- a/etc/docker-compose.yaml +++ b/etc/docker-compose.yaml @@ -20,7 +20,7 @@ services: restart: 'no' networks: - storage - image: 'ghcr.io/zitadel/zitadel:v4.0.0' + image: 'ghcr.io/zitadel/zitadel:v4.2.0' command: 'init --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml' depends_on: db: @@ -34,7 +34,7 @@ services: restart: 'no' networks: - storage - image: 'ghcr.io/zitadel/zitadel:v4.0.0-debug' + image: 'ghcr.io/zitadel/zitadel:v4.2.0-debug' user: root entrypoint: '/bin/bash' command: [ "-c", "/app/zitadel setup --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml --steps /example-zitadel-init-steps.yaml --masterkey \"my_test_masterkey_0123456789ABEF\" && echo \"--- ZITADEL SETUP COMPLETE ---\" && echo \"Personal Access Token (PAT) will be in ./zitadel_output/pat.txt on your host.\" && echo \"Service Account Key will be in ./zitadel_output/sa-key.json on your host.\" && echo \"OAuth Client ID and Secret will be in 'zitadel' service logs (grep for 'Application created').\"" ] @@ -55,7 +55,7 @@ services: networks: - backend - storage - image: 'ghcr.io/zitadel/zitadel:v4.0.0' + image: 'ghcr.io/zitadel/zitadel:v4.2.0' command: > start --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml diff --git a/src/main/java/com/zitadel/api/ActionServiceApi.java b/src/main/java/com/zitadel/api/ActionServiceApi.java index d3da8f4..c6b1ee8 100644 --- a/src/main/java/com/zitadel/api/ActionServiceApi.java +++ b/src/main/java/com/zitadel/api/ActionServiceApi.java @@ -48,10 +48,20 @@ public ActionServiceApi(ApiClient apiClient) { + /** + * Create Target (Convenience Method) + * Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + * @return ActionServiceCreateTargetResponse + * @throws ApiException if fails to make API call + */ + public ActionServiceCreateTargetResponse createTarget() throws ApiException { + return this.createTarget(new ActionServiceCreateTargetRequest()); + } + /** - * CreateTarget - * Create Target Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + * Create Target + * Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` * @param actionServiceCreateTargetRequest (required) * @return ActionServiceCreateTargetResponse * @throws ApiException if fails to make API call @@ -62,8 +72,8 @@ public ActionServiceCreateTargetResponse createTarget(ActionServiceCreateTargetR /** - * CreateTarget - * Create Target Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + * Create Target + * Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` * @param actionServiceCreateTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceCreateTargetResponse @@ -125,8 +135,8 @@ private ActionServiceCreateTargetResponse createTarget(ActionServiceCreateTarget /** - * DeleteTarget - * Delete Target Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` + * Delete Target + * Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` * @param actionServiceDeleteTargetRequest (required) * @return ActionServiceDeleteTargetResponse * @throws ApiException if fails to make API call @@ -137,8 +147,8 @@ public ActionServiceDeleteTargetResponse deleteTarget(ActionServiceDeleteTargetR /** - * DeleteTarget - * Delete Target Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` + * Delete Target + * Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` * @param actionServiceDeleteTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceDeleteTargetResponse @@ -200,8 +210,8 @@ private ActionServiceDeleteTargetResponse deleteTarget(ActionServiceDeleteTarget /** - * GetTarget - * Get Target Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` + * Get Target + * Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` * @param actionServiceGetTargetRequest (required) * @return ActionServiceGetTargetResponse * @throws ApiException if fails to make API call @@ -212,8 +222,8 @@ public ActionServiceGetTargetResponse getTarget(ActionServiceGetTargetRequest ac /** - * GetTarget - * Get Target Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` + * Get Target + * Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` * @param actionServiceGetTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceGetTargetResponse @@ -274,8 +284,8 @@ private ActionServiceGetTargetResponse getTarget(ActionServiceGetTargetRequest a /** - * ListExecutionFunctions (Convenience Method) - * List Execution Functions List all available functions which can be used as condition for executions. + * List Execution Functions (Convenience Method) + * List all available functions which can be used as condition for executions. * @return ActionServiceListExecutionFunctionsResponse * @throws ApiException if fails to make API call */ @@ -285,8 +295,8 @@ public ActionServiceListExecutionFunctionsResponse listExecutionFunctions() thro /** - * ListExecutionFunctions - * List Execution Functions List all available functions which can be used as condition for executions. + * List Execution Functions + * List all available functions which can be used as condition for executions. * @param body (required) * @return ActionServiceListExecutionFunctionsResponse * @throws ApiException if fails to make API call @@ -297,8 +307,8 @@ public ActionServiceListExecutionFunctionsResponse listExecutionFunctions(Object /** - * ListExecutionFunctions - * List Execution Functions List all available functions which can be used as condition for executions. + * List Execution Functions + * List all available functions which can be used as condition for executions. * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceListExecutionFunctionsResponse @@ -359,8 +369,8 @@ private ActionServiceListExecutionFunctionsResponse listExecutionFunctions(Objec /** - * ListExecutionMethods (Convenience Method) - * List Execution Methods List all available methods which can be used as condition for executions. + * List Execution Methods (Convenience Method) + * List all available methods which can be used as condition for executions. * @return ActionServiceListExecutionMethodsResponse * @throws ApiException if fails to make API call */ @@ -370,8 +380,8 @@ public ActionServiceListExecutionMethodsResponse listExecutionMethods() throws A /** - * ListExecutionMethods - * List Execution Methods List all available methods which can be used as condition for executions. + * List Execution Methods + * List all available methods which can be used as condition for executions. * @param body (required) * @return ActionServiceListExecutionMethodsResponse * @throws ApiException if fails to make API call @@ -382,8 +392,8 @@ public ActionServiceListExecutionMethodsResponse listExecutionMethods(Object bod /** - * ListExecutionMethods - * List Execution Methods List all available methods which can be used as condition for executions. + * List Execution Methods + * List all available methods which can be used as condition for executions. * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceListExecutionMethodsResponse @@ -444,8 +454,8 @@ private ActionServiceListExecutionMethodsResponse listExecutionMethods(Object bo /** - * ListExecutionServices (Convenience Method) - * List Execution Services List all available services which can be used as condition for executions. + * List Execution Services (Convenience Method) + * List all available services which can be used as condition for executions. * @return ActionServiceListExecutionServicesResponse * @throws ApiException if fails to make API call */ @@ -455,8 +465,8 @@ public ActionServiceListExecutionServicesResponse listExecutionServices() throws /** - * ListExecutionServices - * List Execution Services List all available services which can be used as condition for executions. + * List Execution Services + * List all available services which can be used as condition for executions. * @param body (required) * @return ActionServiceListExecutionServicesResponse * @throws ApiException if fails to make API call @@ -467,8 +477,8 @@ public ActionServiceListExecutionServicesResponse listExecutionServices(Object b /** - * ListExecutionServices - * List Execution Services List all available services which can be used as condition for executions. + * List Execution Services + * List all available services which can be used as condition for executions. * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceListExecutionServicesResponse @@ -530,8 +540,8 @@ private ActionServiceListExecutionServicesResponse listExecutionServices(Object /** - * ListExecutions - * List Executions List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` + * List Executions + * List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` * @param actionServiceListExecutionsRequest (required) * @return ActionServiceListExecutionsResponse * @throws ApiException if fails to make API call @@ -542,8 +552,8 @@ public ActionServiceListExecutionsResponse listExecutions(ActionServiceListExecu /** - * ListExecutions - * List Executions List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` + * List Executions + * List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` * @param actionServiceListExecutionsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceListExecutionsResponse @@ -605,8 +615,8 @@ private ActionServiceListExecutionsResponse listExecutions(ActionServiceListExec /** - * ListTargets - * List targets List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` + * List targets + * List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` * @param actionServiceListTargetsRequest (required) * @return ActionServiceListTargetsResponse * @throws ApiException if fails to make API call @@ -617,8 +627,8 @@ public ActionServiceListTargetsResponse listTargets(ActionServiceListTargetsRequ /** - * ListTargets - * List targets List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` + * List targets + * List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` * @param actionServiceListTargetsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceListTargetsResponse @@ -680,8 +690,8 @@ private ActionServiceListTargetsResponse listTargets(ActionServiceListTargetsReq /** - * SetExecution - * Set Execution Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` + * Set Execution + * Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` * @param actionServiceSetExecutionRequest (required) * @return ActionServiceSetExecutionResponse * @throws ApiException if fails to make API call @@ -692,8 +702,8 @@ public ActionServiceSetExecutionResponse setExecution(ActionServiceSetExecutionR /** - * SetExecution - * Set Execution Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` + * Set Execution + * Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` * @param actionServiceSetExecutionRequest (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceSetExecutionResponse @@ -753,10 +763,20 @@ private ActionServiceSetExecutionResponse setExecution(ActionServiceSetExecution + /** + * Update Target (Convenience Method) + * Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + * @return ActionServiceUpdateTargetResponse + * @throws ApiException if fails to make API call + */ + public ActionServiceUpdateTargetResponse updateTarget() throws ApiException { + return this.updateTarget(new ActionServiceUpdateTargetRequest()); + } + /** - * UpdateTarget - * Update Target Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + * Update Target + * Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` * @param actionServiceUpdateTargetRequest (required) * @return ActionServiceUpdateTargetResponse * @throws ApiException if fails to make API call @@ -767,8 +787,8 @@ public ActionServiceUpdateTargetResponse updateTarget(ActionServiceUpdateTargetR /** - * UpdateTarget - * Update Target Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + * Update Target + * Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` * @param actionServiceUpdateTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return ActionServiceUpdateTargetResponse diff --git a/src/main/java/com/zitadel/api/BetaActionServiceApi.java b/src/main/java/com/zitadel/api/BetaActionServiceApi.java index a0b3c52..79aed96 100644 --- a/src/main/java/com/zitadel/api/BetaActionServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaActionServiceApi.java @@ -48,10 +48,20 @@ public BetaActionServiceApi(ApiClient apiClient) { + /** + * Create Target (Convenience Method) + * Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + * @return BetaActionServiceCreateTargetResponse + * @throws ApiException if fails to make API call + */ + public BetaActionServiceCreateTargetResponse createTarget() throws ApiException { + return this.createTarget(new BetaActionServiceCreateTargetRequest()); + } + /** - * CreateTarget - * Create Target Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + * Create Target + * Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` * @param betaActionServiceCreateTargetRequest (required) * @return BetaActionServiceCreateTargetResponse * @throws ApiException if fails to make API call @@ -62,8 +72,8 @@ public BetaActionServiceCreateTargetResponse createTarget(BetaActionServiceCreat /** - * CreateTarget - * Create Target Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + * Create Target + * Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` * @param betaActionServiceCreateTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceCreateTargetResponse @@ -125,8 +135,8 @@ private BetaActionServiceCreateTargetResponse createTarget(BetaActionServiceCrea /** - * DeleteTarget - * Delete Target Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` + * Delete Target + * Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` * @param betaActionServiceDeleteTargetRequest (required) * @return BetaActionServiceDeleteTargetResponse * @throws ApiException if fails to make API call @@ -137,8 +147,8 @@ public BetaActionServiceDeleteTargetResponse deleteTarget(BetaActionServiceDelet /** - * DeleteTarget - * Delete Target Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` + * Delete Target + * Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` * @param betaActionServiceDeleteTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceDeleteTargetResponse @@ -200,8 +210,8 @@ private BetaActionServiceDeleteTargetResponse deleteTarget(BetaActionServiceDele /** - * GetTarget - * Get Target Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` + * Get Target + * Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` * @param betaActionServiceGetTargetRequest (required) * @return BetaActionServiceGetTargetResponse * @throws ApiException if fails to make API call @@ -212,8 +222,8 @@ public BetaActionServiceGetTargetResponse getTarget(BetaActionServiceGetTargetRe /** - * GetTarget - * Get Target Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` + * Get Target + * Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` * @param betaActionServiceGetTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceGetTargetResponse @@ -274,8 +284,8 @@ private BetaActionServiceGetTargetResponse getTarget(BetaActionServiceGetTargetR /** - * ListExecutionFunctions (Convenience Method) - * List Execution Functions List all available functions which can be used as condition for executions. + * List Execution Functions (Convenience Method) + * List all available functions which can be used as condition for executions. * @return BetaActionServiceListExecutionFunctionsResponse * @throws ApiException if fails to make API call */ @@ -285,8 +295,8 @@ public BetaActionServiceListExecutionFunctionsResponse listExecutionFunctions() /** - * ListExecutionFunctions - * List Execution Functions List all available functions which can be used as condition for executions. + * List Execution Functions + * List all available functions which can be used as condition for executions. * @param body (required) * @return BetaActionServiceListExecutionFunctionsResponse * @throws ApiException if fails to make API call @@ -297,8 +307,8 @@ public BetaActionServiceListExecutionFunctionsResponse listExecutionFunctions(Ob /** - * ListExecutionFunctions - * List Execution Functions List all available functions which can be used as condition for executions. + * List Execution Functions + * List all available functions which can be used as condition for executions. * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceListExecutionFunctionsResponse @@ -359,8 +369,8 @@ private BetaActionServiceListExecutionFunctionsResponse listExecutionFunctions(O /** - * ListExecutionMethods (Convenience Method) - * List Execution Methods List all available methods which can be used as condition for executions. + * List Execution Methods (Convenience Method) + * List all available methods which can be used as condition for executions. * @return BetaActionServiceListExecutionMethodsResponse * @throws ApiException if fails to make API call */ @@ -370,8 +380,8 @@ public BetaActionServiceListExecutionMethodsResponse listExecutionMethods() thro /** - * ListExecutionMethods - * List Execution Methods List all available methods which can be used as condition for executions. + * List Execution Methods + * List all available methods which can be used as condition for executions. * @param body (required) * @return BetaActionServiceListExecutionMethodsResponse * @throws ApiException if fails to make API call @@ -382,8 +392,8 @@ public BetaActionServiceListExecutionMethodsResponse listExecutionMethods(Object /** - * ListExecutionMethods - * List Execution Methods List all available methods which can be used as condition for executions. + * List Execution Methods + * List all available methods which can be used as condition for executions. * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceListExecutionMethodsResponse @@ -444,8 +454,8 @@ private BetaActionServiceListExecutionMethodsResponse listExecutionMethods(Objec /** - * ListExecutionServices (Convenience Method) - * List Execution Services List all available services which can be used as condition for executions. + * List Execution Services (Convenience Method) + * List all available services which can be used as condition for executions. * @return BetaActionServiceListExecutionServicesResponse * @throws ApiException if fails to make API call */ @@ -455,8 +465,8 @@ public BetaActionServiceListExecutionServicesResponse listExecutionServices() th /** - * ListExecutionServices - * List Execution Services List all available services which can be used as condition for executions. + * List Execution Services + * List all available services which can be used as condition for executions. * @param body (required) * @return BetaActionServiceListExecutionServicesResponse * @throws ApiException if fails to make API call @@ -467,8 +477,8 @@ public BetaActionServiceListExecutionServicesResponse listExecutionServices(Obje /** - * ListExecutionServices - * List Execution Services List all available services which can be used as condition for executions. + * List Execution Services + * List all available services which can be used as condition for executions. * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceListExecutionServicesResponse @@ -530,8 +540,8 @@ private BetaActionServiceListExecutionServicesResponse listExecutionServices(Obj /** - * ListExecutions - * List Executions List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` + * List Executions + * List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` * @param betaActionServiceListExecutionsRequest (required) * @return BetaActionServiceListExecutionsResponse * @throws ApiException if fails to make API call @@ -542,8 +552,8 @@ public BetaActionServiceListExecutionsResponse listExecutions(BetaActionServiceL /** - * ListExecutions - * List Executions List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` + * List Executions + * List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` * @param betaActionServiceListExecutionsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceListExecutionsResponse @@ -605,8 +615,8 @@ private BetaActionServiceListExecutionsResponse listExecutions(BetaActionService /** - * ListTargets - * List targets List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` + * List targets + * List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` * @param betaActionServiceListTargetsRequest (required) * @return BetaActionServiceListTargetsResponse * @throws ApiException if fails to make API call @@ -617,8 +627,8 @@ public BetaActionServiceListTargetsResponse listTargets(BetaActionServiceListTar /** - * ListTargets - * List targets List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` + * List targets + * List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` * @param betaActionServiceListTargetsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceListTargetsResponse @@ -680,8 +690,8 @@ private BetaActionServiceListTargetsResponse listTargets(BetaActionServiceListTa /** - * SetExecution - * Set Execution Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` + * Set Execution + * Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` * @param betaActionServiceSetExecutionRequest (required) * @return BetaActionServiceSetExecutionResponse * @throws ApiException if fails to make API call @@ -692,8 +702,8 @@ public BetaActionServiceSetExecutionResponse setExecution(BetaActionServiceSetEx /** - * SetExecution - * Set Execution Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` + * Set Execution + * Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` * @param betaActionServiceSetExecutionRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceSetExecutionResponse @@ -753,10 +763,20 @@ private BetaActionServiceSetExecutionResponse setExecution(BetaActionServiceSetE + /** + * Update Target (Convenience Method) + * Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + * @return BetaActionServiceUpdateTargetResponse + * @throws ApiException if fails to make API call + */ + public BetaActionServiceUpdateTargetResponse updateTarget() throws ApiException { + return this.updateTarget(new BetaActionServiceUpdateTargetRequest()); + } + /** - * UpdateTarget - * Update Target Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + * Update Target + * Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` * @param betaActionServiceUpdateTargetRequest (required) * @return BetaActionServiceUpdateTargetResponse * @throws ApiException if fails to make API call @@ -767,8 +787,8 @@ public BetaActionServiceUpdateTargetResponse updateTarget(BetaActionServiceUpdat /** - * UpdateTarget - * Update Target Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + * Update Target + * Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` * @param betaActionServiceUpdateTargetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaActionServiceUpdateTargetResponse diff --git a/src/main/java/com/zitadel/api/BetaAppServiceApi.java b/src/main/java/com/zitadel/api/BetaAppServiceApi.java index 098ab11..067d8a7 100644 --- a/src/main/java/com/zitadel/api/BetaAppServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaAppServiceApi.java @@ -55,10 +55,20 @@ public BetaAppServiceApi(ApiClient apiClient) { + /** + * Create Application (Convenience Method) + * Create an application. The application can be OIDC, API or SAML type, based on the input. Required permissions: - project.app.write + * @return BetaAppServiceCreateApplicationResponse + * @throws ApiException if fails to make API call + */ + public BetaAppServiceCreateApplicationResponse createApplication() throws ApiException { + return this.createApplication(new BetaAppServiceCreateApplicationRequest()); + } + /** - * CreateApplication - * Create Application Create an application. The application can be OIDC, API or SAML type, based on the input. Required permissions: - project.app.write + * Create Application + * Create an application. The application can be OIDC, API or SAML type, based on the input. Required permissions: - project.app.write * @param betaAppServiceCreateApplicationRequest (required) * @return BetaAppServiceCreateApplicationResponse * @throws ApiException if fails to make API call @@ -69,8 +79,8 @@ public BetaAppServiceCreateApplicationResponse createApplication(BetaAppServiceC /** - * CreateApplication - * Create Application Create an application. The application can be OIDC, API or SAML type, based on the input. Required permissions: - project.app.write + * Create Application + * Create an application. The application can be OIDC, API or SAML type, based on the input. Required permissions: - project.app.write * @param betaAppServiceCreateApplicationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceCreateApplicationResponse @@ -132,8 +142,8 @@ private BetaAppServiceCreateApplicationResponse createApplication(BetaAppService /** - * CreateApplicationKey - * Create Application Key Create a new application key, which is used to authorize an API application. Key details are returned in the response. They must be stored safely, as it will not be possible to retrieve them again. Required permissions: - `project.app.write` + * Create Application Key + * Create a new application key, which is used to authorize an API application. Key details are returned in the response. They must be stored safely, as it will not be possible to retrieve them again. Required permissions: - `project.app.write` * @param betaAppServiceCreateApplicationKeyRequest (required) * @return BetaAppServiceCreateApplicationKeyResponse * @throws ApiException if fails to make API call @@ -144,8 +154,8 @@ public BetaAppServiceCreateApplicationKeyResponse createApplicationKey(BetaAppSe /** - * CreateApplicationKey - * Create Application Key Create a new application key, which is used to authorize an API application. Key details are returned in the response. They must be stored safely, as it will not be possible to retrieve them again. Required permissions: - `project.app.write` + * Create Application Key + * Create a new application key, which is used to authorize an API application. Key details are returned in the response. They must be stored safely, as it will not be possible to retrieve them again. Required permissions: - `project.app.write` * @param betaAppServiceCreateApplicationKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceCreateApplicationKeyResponse @@ -207,8 +217,8 @@ private BetaAppServiceCreateApplicationKeyResponse createApplicationKey(BetaAppS /** - * DeactivateApplication - * Deactivate Application Deactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write + * Deactivate Application + * Deactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write * @param betaAppServiceDeactivateApplicationRequest (required) * @return BetaAppServiceDeactivateApplicationResponse * @throws ApiException if fails to make API call @@ -219,8 +229,8 @@ public BetaAppServiceDeactivateApplicationResponse deactivateApplication(BetaApp /** - * DeactivateApplication - * Deactivate Application Deactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write + * Deactivate Application + * Deactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write * @param betaAppServiceDeactivateApplicationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceDeactivateApplicationResponse @@ -282,8 +292,8 @@ private BetaAppServiceDeactivateApplicationResponse deactivateApplication(BetaAp /** - * DeleteApplication - * Delete Application Deletes the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.delete + * Delete Application + * Deletes the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.delete * @param betaAppServiceDeleteApplicationRequest (required) * @return BetaAppServiceDeleteApplicationResponse * @throws ApiException if fails to make API call @@ -294,8 +304,8 @@ public BetaAppServiceDeleteApplicationResponse deleteApplication(BetaAppServiceD /** - * DeleteApplication - * Delete Application Deletes the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.delete + * Delete Application + * Deletes the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.delete * @param betaAppServiceDeleteApplicationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceDeleteApplicationResponse @@ -357,8 +367,8 @@ private BetaAppServiceDeleteApplicationResponse deleteApplication(BetaAppService /** - * DeleteApplicationKey - * Delete Application Key Deletes an application key matching the provided ID. Organization ID is not mandatory, but helps with filtering/performance. The deletion time is returned in response message. Required permissions: - `project.app.write` + * Delete Application Key + * Deletes an application key matching the provided ID. Organization ID is not mandatory, but helps with filtering/performance. The deletion time is returned in response message. Required permissions: - `project.app.write` * @param betaAppServiceDeleteApplicationKeyRequest (required) * @return BetaAppServiceDeleteApplicationKeyResponse * @throws ApiException if fails to make API call @@ -369,8 +379,8 @@ public BetaAppServiceDeleteApplicationKeyResponse deleteApplicationKey(BetaAppSe /** - * DeleteApplicationKey - * Delete Application Key Deletes an application key matching the provided ID. Organization ID is not mandatory, but helps with filtering/performance. The deletion time is returned in response message. Required permissions: - `project.app.write` + * Delete Application Key + * Deletes an application key matching the provided ID. Organization ID is not mandatory, but helps with filtering/performance. The deletion time is returned in response message. Required permissions: - `project.app.write` * @param betaAppServiceDeleteApplicationKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceDeleteApplicationKeyResponse @@ -432,8 +442,8 @@ private BetaAppServiceDeleteApplicationKeyResponse deleteApplicationKey(BetaAppS /** - * GetApplication - * Get Application Retrieves the application matching the provided ID. Required permissions: - project.app.read + * Get Application + * Retrieves the application matching the provided ID. Required permissions: - project.app.read * @param betaAppServiceGetApplicationRequest (required) * @return BetaAppServiceGetApplicationResponse * @throws ApiException if fails to make API call @@ -444,8 +454,8 @@ public BetaAppServiceGetApplicationResponse getApplication(BetaAppServiceGetAppl /** - * GetApplication - * Get Application Retrieves the application matching the provided ID. Required permissions: - project.app.read + * Get Application + * Retrieves the application matching the provided ID. Required permissions: - project.app.read * @param betaAppServiceGetApplicationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceGetApplicationResponse @@ -507,8 +517,8 @@ private BetaAppServiceGetApplicationResponse getApplication(BetaAppServiceGetApp /** - * GetApplicationKey - * Get Application Key Retrieves the application key matching the provided ID. Specifying a project, organization and app ID is optional but help with filtering/performance. Required permissions: - project.app.read + * Get Application Key + * Retrieves the application key matching the provided ID. Specifying a project, organization and app ID is optional but help with filtering/performance. Required permissions: - project.app.read * @param betaAppServiceGetApplicationKeyRequest (required) * @return BetaAppServiceGetApplicationKeyResponse * @throws ApiException if fails to make API call @@ -519,8 +529,8 @@ public BetaAppServiceGetApplicationKeyResponse getApplicationKey(BetaAppServiceG /** - * GetApplicationKey - * Get Application Key Retrieves the application key matching the provided ID. Specifying a project, organization and app ID is optional but help with filtering/performance. Required permissions: - project.app.read + * Get Application Key + * Retrieves the application key matching the provided ID. Specifying a project, organization and app ID is optional but help with filtering/performance. Required permissions: - project.app.read * @param betaAppServiceGetApplicationKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceGetApplicationKeyResponse @@ -580,10 +590,20 @@ private BetaAppServiceGetApplicationKeyResponse getApplicationKey(BetaAppService + /** + * List Application Keys (Convenience Method) + * Returns a list of application keys matching the input parameters. The result can be sorted by id, aggregate, creation date, expiration date, resource owner or type. It can also be filtered by app, project or organization ID. Required permissions: - project.app.read + * @return BetaAppServiceListApplicationKeysResponse + * @throws ApiException if fails to make API call + */ + public BetaAppServiceListApplicationKeysResponse listApplicationKeys() throws ApiException { + return this.listApplicationKeys(new BetaAppServiceListApplicationKeysRequest()); + } + /** - * ListApplicationKeys - * List Application Keys Returns a list of application keys matching the input parameters. The result can be sorted by id, aggregate, creation date, expiration date, resource owner or type. It can also be filtered by app, project or organization ID. Required permissions: - project.app.read + * List Application Keys + * Returns a list of application keys matching the input parameters. The result can be sorted by id, aggregate, creation date, expiration date, resource owner or type. It can also be filtered by app, project or organization ID. Required permissions: - project.app.read * @param betaAppServiceListApplicationKeysRequest (required) * @return BetaAppServiceListApplicationKeysResponse * @throws ApiException if fails to make API call @@ -594,8 +614,8 @@ public BetaAppServiceListApplicationKeysResponse listApplicationKeys(BetaAppServ /** - * ListApplicationKeys - * List Application Keys Returns a list of application keys matching the input parameters. The result can be sorted by id, aggregate, creation date, expiration date, resource owner or type. It can also be filtered by app, project or organization ID. Required permissions: - project.app.read + * List Application Keys + * Returns a list of application keys matching the input parameters. The result can be sorted by id, aggregate, creation date, expiration date, resource owner or type. It can also be filtered by app, project or organization ID. Required permissions: - project.app.read * @param betaAppServiceListApplicationKeysRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceListApplicationKeysResponse @@ -657,8 +677,8 @@ private BetaAppServiceListApplicationKeysResponse listApplicationKeys(BetaAppSer /** - * ListApplications - * List Applications Returns a list of applications matching the input parameters that belong to the provided project. The result can be sorted by app id, name, creation date, change date or state. It can also be filtered by app state, app type and app name. Required permissions: - project.app.read + * List Applications + * Returns a list of applications matching the input parameters that belong to the provided project. The result can be sorted by app id, name, creation date, change date or state. It can also be filtered by app state, app type and app name. Required permissions: - project.app.read * @param betaAppServiceListApplicationsRequest (required) * @return BetaAppServiceListApplicationsResponse * @throws ApiException if fails to make API call @@ -669,8 +689,8 @@ public BetaAppServiceListApplicationsResponse listApplications(BetaAppServiceLis /** - * ListApplications - * List Applications Returns a list of applications matching the input parameters that belong to the provided project. The result can be sorted by app id, name, creation date, change date or state. It can also be filtered by app state, app type and app name. Required permissions: - project.app.read + * List Applications + * Returns a list of applications matching the input parameters that belong to the provided project. The result can be sorted by app id, name, creation date, change date or state. It can also be filtered by app state, app type and app name. Required permissions: - project.app.read * @param betaAppServiceListApplicationsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceListApplicationsResponse @@ -732,8 +752,8 @@ private BetaAppServiceListApplicationsResponse listApplications(BetaAppServiceLi /** - * ReactivateApplication - * Reactivate Application Reactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write + * Reactivate Application + * Reactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write * @param betaAppServiceReactivateApplicationRequest (required) * @return BetaAppServiceReactivateApplicationResponse * @throws ApiException if fails to make API call @@ -744,8 +764,8 @@ public BetaAppServiceReactivateApplicationResponse reactivateApplication(BetaApp /** - * ReactivateApplication - * Reactivate Application Reactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write + * Reactivate Application + * Reactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write * @param betaAppServiceReactivateApplicationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceReactivateApplicationResponse @@ -805,10 +825,20 @@ private BetaAppServiceReactivateApplicationResponse reactivateApplication(BetaAp + /** + * Regenerate Client Secret (Convenience Method) + * Regenerates the client secret of an API or OIDC application that belongs to the input project. Required permissions: - project.app.write + * @return BetaAppServiceRegenerateClientSecretResponse + * @throws ApiException if fails to make API call + */ + public BetaAppServiceRegenerateClientSecretResponse regenerateClientSecret() throws ApiException { + return this.regenerateClientSecret(new BetaAppServiceRegenerateClientSecretRequest()); + } + /** - * RegenerateClientSecret - * Regenerate Client Secret Regenerates the client secret of an API or OIDC application that belongs to the input project. Required permissions: - project.app.write + * Regenerate Client Secret + * Regenerates the client secret of an API or OIDC application that belongs to the input project. Required permissions: - project.app.write * @param betaAppServiceRegenerateClientSecretRequest (required) * @return BetaAppServiceRegenerateClientSecretResponse * @throws ApiException if fails to make API call @@ -819,8 +849,8 @@ public BetaAppServiceRegenerateClientSecretResponse regenerateClientSecret(BetaA /** - * RegenerateClientSecret - * Regenerate Client Secret Regenerates the client secret of an API or OIDC application that belongs to the input project. Required permissions: - project.app.write + * Regenerate Client Secret + * Regenerates the client secret of an API or OIDC application that belongs to the input project. Required permissions: - project.app.write * @param betaAppServiceRegenerateClientSecretRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceRegenerateClientSecretResponse @@ -880,10 +910,20 @@ private BetaAppServiceRegenerateClientSecretResponse regenerateClientSecret(Beta + /** + * Update Application (Convenience Method) + * Changes the configuration of an OIDC, API or SAML type application, as well as the application name, based on the input provided. Required permissions: - project.app.write + * @return BetaAppServiceUpdateApplicationResponse + * @throws ApiException if fails to make API call + */ + public BetaAppServiceUpdateApplicationResponse updateApplication() throws ApiException { + return this.updateApplication(new BetaAppServiceUpdateApplicationRequest()); + } + /** - * UpdateApplication - * Update Application Changes the configuration of an OIDC, API or SAML type application, as well as the application name, based on the input provided. Required permissions: - project.app.write + * Update Application + * Changes the configuration of an OIDC, API or SAML type application, as well as the application name, based on the input provided. Required permissions: - project.app.write * @param betaAppServiceUpdateApplicationRequest (required) * @return BetaAppServiceUpdateApplicationResponse * @throws ApiException if fails to make API call @@ -894,8 +934,8 @@ public BetaAppServiceUpdateApplicationResponse updateApplication(BetaAppServiceU /** - * UpdateApplication - * Update Application Changes the configuration of an OIDC, API or SAML type application, as well as the application name, based on the input provided. Required permissions: - project.app.write + * Update Application + * Changes the configuration of an OIDC, API or SAML type application, as well as the application name, based on the input provided. Required permissions: - project.app.write * @param betaAppServiceUpdateApplicationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAppServiceUpdateApplicationResponse diff --git a/src/main/java/com/zitadel/api/BetaAuthorizationServiceApi.java b/src/main/java/com/zitadel/api/BetaAuthorizationServiceApi.java index 5d81ebd..218f59a 100644 --- a/src/main/java/com/zitadel/api/BetaAuthorizationServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaAuthorizationServiceApi.java @@ -45,8 +45,8 @@ public BetaAuthorizationServiceApi(ApiClient apiClient) { /** - * ActivateAuthorization - * Activate Authorization ActivateAuthorization activates an existing but inactive authorization. In case the authorization is already active, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was activated by the request. Required permissions: - \"user.grant.write\" + * Activate Authorization + * ActivateAuthorization activates an existing but inactive authorization. In case the authorization is already active, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was activated by the request. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceActivateAuthorizationRequest (required) * @return BetaAuthorizationServiceActivateAuthorizationResponse * @throws ApiException if fails to make API call @@ -57,8 +57,8 @@ public BetaAuthorizationServiceActivateAuthorizationResponse activateAuthorizati /** - * ActivateAuthorization - * Activate Authorization ActivateAuthorization activates an existing but inactive authorization. In case the authorization is already active, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was activated by the request. Required permissions: - \"user.grant.write\" + * Activate Authorization + * ActivateAuthorization activates an existing but inactive authorization. In case the authorization is already active, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was activated by the request. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceActivateAuthorizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAuthorizationServiceActivateAuthorizationResponse @@ -120,8 +120,8 @@ private BetaAuthorizationServiceActivateAuthorizationResponse activateAuthorizat /** - * CreateAuthorization - * Create Authorization CreateAuthorization creates a new authorization for a user in an owned or granted project. Required permissions: - \"user.grant.write\" + * Create Authorization + * CreateAuthorization creates a new authorization for a user in an owned or granted project. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceCreateAuthorizationRequest (required) * @return BetaAuthorizationServiceCreateAuthorizationResponse * @throws ApiException if fails to make API call @@ -132,8 +132,8 @@ public BetaAuthorizationServiceCreateAuthorizationResponse createAuthorization(B /** - * CreateAuthorization - * Create Authorization CreateAuthorization creates a new authorization for a user in an owned or granted project. Required permissions: - \"user.grant.write\" + * Create Authorization + * CreateAuthorization creates a new authorization for a user in an owned or granted project. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceCreateAuthorizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAuthorizationServiceCreateAuthorizationResponse @@ -195,8 +195,8 @@ private BetaAuthorizationServiceCreateAuthorizationResponse createAuthorization( /** - * DeactivateAuthorization - * Deactivate Authorization DeactivateAuthorization deactivates an existing and active authorization. In case the authorization is already inactive, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was deactivated by the request. Required permissions: - \"user.grant.write\" + * Deactivate Authorization + * DeactivateAuthorization deactivates an existing and active authorization. In case the authorization is already inactive, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was deactivated by the request. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceDeactivateAuthorizationRequest (required) * @return BetaAuthorizationServiceDeactivateAuthorizationResponse * @throws ApiException if fails to make API call @@ -207,8 +207,8 @@ public BetaAuthorizationServiceDeactivateAuthorizationResponse deactivateAuthori /** - * DeactivateAuthorization - * Deactivate Authorization DeactivateAuthorization deactivates an existing and active authorization. In case the authorization is already inactive, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was deactivated by the request. Required permissions: - \"user.grant.write\" + * Deactivate Authorization + * DeactivateAuthorization deactivates an existing and active authorization. In case the authorization is already inactive, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was deactivated by the request. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceDeactivateAuthorizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAuthorizationServiceDeactivateAuthorizationResponse @@ -270,8 +270,8 @@ private BetaAuthorizationServiceDeactivateAuthorizationResponse deactivateAuthor /** - * DeleteAuthorization - * Delete Authorization DeleteAuthorization deletes the authorization. In case the authorization is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the authorization was deleted by the request. Required permissions: - \"user.grant.delete\" + * Delete Authorization + * DeleteAuthorization deletes the authorization. In case the authorization is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the authorization was deleted by the request. Required permissions: - \"user.grant.delete\" * @param betaAuthorizationServiceDeleteAuthorizationRequest (required) * @return BetaAuthorizationServiceDeleteAuthorizationResponse * @throws ApiException if fails to make API call @@ -282,8 +282,8 @@ public BetaAuthorizationServiceDeleteAuthorizationResponse deleteAuthorization(B /** - * DeleteAuthorization - * Delete Authorization DeleteAuthorization deletes the authorization. In case the authorization is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the authorization was deleted by the request. Required permissions: - \"user.grant.delete\" + * Delete Authorization + * DeleteAuthorization deletes the authorization. In case the authorization is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the authorization was deleted by the request. Required permissions: - \"user.grant.delete\" * @param betaAuthorizationServiceDeleteAuthorizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAuthorizationServiceDeleteAuthorizationResponse @@ -345,8 +345,8 @@ private BetaAuthorizationServiceDeleteAuthorizationResponse deleteAuthorization( /** - * ListAuthorizations - * List Authorizations ListAuthorizations returns all authorizations matching the request and necessary permissions. Required permissions: - \"user.grant.read\" - no permissions required for listing own authorizations + * List Authorizations + * ListAuthorizations returns all authorizations matching the request and necessary permissions. Required permissions: - \"user.grant.read\" - no permissions required for listing own authorizations * @param betaAuthorizationServiceListAuthorizationsRequest (required) * @return BetaAuthorizationServiceListAuthorizationsResponse * @throws ApiException if fails to make API call @@ -357,8 +357,8 @@ public BetaAuthorizationServiceListAuthorizationsResponse listAuthorizations(Bet /** - * ListAuthorizations - * List Authorizations ListAuthorizations returns all authorizations matching the request and necessary permissions. Required permissions: - \"user.grant.read\" - no permissions required for listing own authorizations + * List Authorizations + * ListAuthorizations returns all authorizations matching the request and necessary permissions. Required permissions: - \"user.grant.read\" - no permissions required for listing own authorizations * @param betaAuthorizationServiceListAuthorizationsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAuthorizationServiceListAuthorizationsResponse @@ -420,8 +420,8 @@ private BetaAuthorizationServiceListAuthorizationsResponse listAuthorizations(Be /** - * UpdateAuthorization - * Update Authorization UpdateAuthorization updates the authorization. Note that any role keys previously granted to the user and not present in the request will be revoked. Required permissions: - \"user.grant.write\" + * Update Authorization + * UpdateAuthorization updates the authorization. Note that any role keys previously granted to the user and not present in the request will be revoked. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceUpdateAuthorizationRequest (required) * @return BetaAuthorizationServiceUpdateAuthorizationResponse * @throws ApiException if fails to make API call @@ -432,8 +432,8 @@ public BetaAuthorizationServiceUpdateAuthorizationResponse updateAuthorization(B /** - * UpdateAuthorization - * Update Authorization UpdateAuthorization updates the authorization. Note that any role keys previously granted to the user and not present in the request will be revoked. Required permissions: - \"user.grant.write\" + * Update Authorization + * UpdateAuthorization updates the authorization. Note that any role keys previously granted to the user and not present in the request will be revoked. Required permissions: - \"user.grant.write\" * @param betaAuthorizationServiceUpdateAuthorizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaAuthorizationServiceUpdateAuthorizationResponse diff --git a/src/main/java/com/zitadel/api/BetaInstanceServiceApi.java b/src/main/java/com/zitadel/api/BetaInstanceServiceApi.java index 08dc739..22948bf 100644 --- a/src/main/java/com/zitadel/api/BetaInstanceServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaInstanceServiceApi.java @@ -53,8 +53,8 @@ public BetaInstanceServiceApi(ApiClient apiClient) { /** - * AddCustomDomain - * Add Custom Domain Adds a custom domain to the instance in context. The instance_id in the input message will be used in the future Required permissions: - `system.domain.write` + * Add Custom Domain + * Adds a custom domain to the instance in context. The instance_id in the input message will be used in the future Required permissions: - `system.domain.write` * @param betaInstanceServiceAddCustomDomainRequest (required) * @return BetaInstanceServiceAddCustomDomainResponse * @throws ApiException if fails to make API call @@ -65,8 +65,8 @@ public BetaInstanceServiceAddCustomDomainResponse addCustomDomain(BetaInstanceSe /** - * AddCustomDomain - * Add Custom Domain Adds a custom domain to the instance in context. The instance_id in the input message will be used in the future Required permissions: - `system.domain.write` + * Add Custom Domain + * Adds a custom domain to the instance in context. The instance_id in the input message will be used in the future Required permissions: - `system.domain.write` * @param betaInstanceServiceAddCustomDomainRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceAddCustomDomainResponse @@ -128,8 +128,8 @@ private BetaInstanceServiceAddCustomDomainResponse addCustomDomain(BetaInstanceS /** - * AddTrustedDomain - * Add Trusted Domain Adds a trusted domain to the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + * Add Trusted Domain + * Adds a trusted domain to the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` * @param betaInstanceServiceAddTrustedDomainRequest (required) * @return BetaInstanceServiceAddTrustedDomainResponse * @throws ApiException if fails to make API call @@ -140,8 +140,8 @@ public BetaInstanceServiceAddTrustedDomainResponse addTrustedDomain(BetaInstance /** - * AddTrustedDomain - * Add Trusted Domain Adds a trusted domain to the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + * Add Trusted Domain + * Adds a trusted domain to the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` * @param betaInstanceServiceAddTrustedDomainRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceAddTrustedDomainResponse @@ -203,8 +203,8 @@ private BetaInstanceServiceAddTrustedDomainResponse addTrustedDomain(BetaInstanc /** - * DeleteInstance - * Delete Instance Deletes an instance with the given ID. Required permissions: - `system.instance.delete` + * Delete Instance + * Deletes an instance with the given ID. Required permissions: - `system.instance.delete` * @param betaInstanceServiceDeleteInstanceRequest (required) * @return BetaInstanceServiceDeleteInstanceResponse * @throws ApiException if fails to make API call @@ -215,8 +215,8 @@ public BetaInstanceServiceDeleteInstanceResponse deleteInstance(BetaInstanceServ /** - * DeleteInstance - * Delete Instance Deletes an instance with the given ID. Required permissions: - `system.instance.delete` + * Delete Instance + * Deletes an instance with the given ID. Required permissions: - `system.instance.delete` * @param betaInstanceServiceDeleteInstanceRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceDeleteInstanceResponse @@ -278,8 +278,8 @@ private BetaInstanceServiceDeleteInstanceResponse deleteInstance(BetaInstanceSer /** - * GetInstance - * Get Instance Returns the instance in the current context. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + * Get Instance + * Returns the instance in the current context. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` * @param betaInstanceServiceGetInstanceRequest (required) * @return BetaInstanceServiceGetInstanceResponse * @throws ApiException if fails to make API call @@ -290,8 +290,8 @@ public BetaInstanceServiceGetInstanceResponse getInstance(BetaInstanceServiceGet /** - * GetInstance - * Get Instance Returns the instance in the current context. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + * Get Instance + * Returns the instance in the current context. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` * @param betaInstanceServiceGetInstanceRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceGetInstanceResponse @@ -353,8 +353,8 @@ private BetaInstanceServiceGetInstanceResponse getInstance(BetaInstanceServiceGe /** - * ListCustomDomains - * List Custom Domains Lists custom domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + * List Custom Domains + * Lists custom domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` * @param betaInstanceServiceListCustomDomainsRequest (required) * @return BetaInstanceServiceListCustomDomainsResponse * @throws ApiException if fails to make API call @@ -365,8 +365,8 @@ public BetaInstanceServiceListCustomDomainsResponse listCustomDomains(BetaInstan /** - * ListCustomDomains - * List Custom Domains Lists custom domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + * List Custom Domains + * Lists custom domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` * @param betaInstanceServiceListCustomDomainsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceListCustomDomainsResponse @@ -428,8 +428,8 @@ private BetaInstanceServiceListCustomDomainsResponse listCustomDomains(BetaInsta /** - * ListInstances - * List Instances Lists instances matching the given query. The query can be used to filter either by instance ID or domain. The request is paginated and returns 100 results by default. Required permissions: - `system.instance.read` + * List Instances + * Lists instances matching the given query. The query can be used to filter either by instance ID or domain. The request is paginated and returns 100 results by default. Required permissions: - `system.instance.read` * @param betaInstanceServiceListInstancesRequest (required) * @return BetaInstanceServiceListInstancesResponse * @throws ApiException if fails to make API call @@ -440,8 +440,8 @@ public BetaInstanceServiceListInstancesResponse listInstances(BetaInstanceServic /** - * ListInstances - * List Instances Lists instances matching the given query. The query can be used to filter either by instance ID or domain. The request is paginated and returns 100 results by default. Required permissions: - `system.instance.read` + * List Instances + * Lists instances matching the given query. The query can be used to filter either by instance ID or domain. The request is paginated and returns 100 results by default. Required permissions: - `system.instance.read` * @param betaInstanceServiceListInstancesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceListInstancesResponse @@ -503,8 +503,8 @@ private BetaInstanceServiceListInstancesResponse listInstances(BetaInstanceServi /** - * ListTrustedDomains - * List Trusted Domains Lists trusted domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + * List Trusted Domains + * Lists trusted domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` * @param betaInstanceServiceListTrustedDomainsRequest (required) * @return BetaInstanceServiceListTrustedDomainsResponse * @throws ApiException if fails to make API call @@ -515,8 +515,8 @@ public BetaInstanceServiceListTrustedDomainsResponse listTrustedDomains(BetaInst /** - * ListTrustedDomains - * List Trusted Domains Lists trusted domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + * List Trusted Domains + * Lists trusted domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` * @param betaInstanceServiceListTrustedDomainsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceListTrustedDomainsResponse @@ -578,8 +578,8 @@ private BetaInstanceServiceListTrustedDomainsResponse listTrustedDomains(BetaIns /** - * RemoveCustomDomain - * Remove Custom Domain Removes a custom domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `system.domain.write` + * Remove Custom Domain + * Removes a custom domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `system.domain.write` * @param betaInstanceServiceRemoveCustomDomainRequest (required) * @return BetaInstanceServiceRemoveCustomDomainResponse * @throws ApiException if fails to make API call @@ -590,8 +590,8 @@ public BetaInstanceServiceRemoveCustomDomainResponse removeCustomDomain(BetaInst /** - * RemoveCustomDomain - * Remove Custom Domain Removes a custom domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `system.domain.write` + * Remove Custom Domain + * Removes a custom domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `system.domain.write` * @param betaInstanceServiceRemoveCustomDomainRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceRemoveCustomDomainResponse @@ -653,8 +653,8 @@ private BetaInstanceServiceRemoveCustomDomainResponse removeCustomDomain(BetaIns /** - * RemoveTrustedDomain - * Remove Trusted Domain Removes a trusted domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + * Remove Trusted Domain + * Removes a trusted domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` * @param betaInstanceServiceRemoveTrustedDomainRequest (required) * @return BetaInstanceServiceRemoveTrustedDomainResponse * @throws ApiException if fails to make API call @@ -665,8 +665,8 @@ public BetaInstanceServiceRemoveTrustedDomainResponse removeTrustedDomain(BetaIn /** - * RemoveTrustedDomain - * Remove Trusted Domain Removes a trusted domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + * Remove Trusted Domain + * Removes a trusted domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` * @param betaInstanceServiceRemoveTrustedDomainRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceRemoveTrustedDomainResponse @@ -728,8 +728,8 @@ private BetaInstanceServiceRemoveTrustedDomainResponse removeTrustedDomain(BetaI /** - * UpdateInstance - * Update Instance Updates instance in context with the given name. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + * Update Instance + * Updates instance in context with the given name. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` * @param betaInstanceServiceUpdateInstanceRequest (required) * @return BetaInstanceServiceUpdateInstanceResponse * @throws ApiException if fails to make API call @@ -740,8 +740,8 @@ public BetaInstanceServiceUpdateInstanceResponse updateInstance(BetaInstanceServ /** - * UpdateInstance - * Update Instance Updates instance in context with the given name. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + * Update Instance + * Updates instance in context with the given name. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` * @param betaInstanceServiceUpdateInstanceRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInstanceServiceUpdateInstanceResponse diff --git a/src/main/java/com/zitadel/api/BetaInternalPermissionServiceApi.java b/src/main/java/com/zitadel/api/BetaInternalPermissionServiceApi.java index 1e383d8..aa62e7a 100644 --- a/src/main/java/com/zitadel/api/BetaInternalPermissionServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaInternalPermissionServiceApi.java @@ -41,8 +41,8 @@ public BetaInternalPermissionServiceApi(ApiClient apiClient) { /** - * CreateAdministrator - * CreateAdministrator grants a administrator role to a user for a specific resource. Note that the roles are specific to the resource type. This means that if you want to grant a user the administrator role for an organization and a project, you need to create two administrator roles. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators + * CreateAdministrator grants a administrator role to a user for a specific resource. + * Note that the roles are specific to the resource type. This means that if you want to grant a user the administrator role for an organization and a project, you need to create two administrator roles. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators * @param betaInternalPermissionServiceCreateAdministratorRequest (required) * @return BetaInternalPermissionServiceCreateAdministratorResponse * @throws ApiException if fails to make API call @@ -53,8 +53,8 @@ public BetaInternalPermissionServiceCreateAdministratorResponse createAdministra /** - * CreateAdministrator - * CreateAdministrator grants a administrator role to a user for a specific resource. Note that the roles are specific to the resource type. This means that if you want to grant a user the administrator role for an organization and a project, you need to create two administrator roles. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators + * CreateAdministrator grants a administrator role to a user for a specific resource. + * Note that the roles are specific to the resource type. This means that if you want to grant a user the administrator role for an organization and a project, you need to create two administrator roles. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators * @param betaInternalPermissionServiceCreateAdministratorRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInternalPermissionServiceCreateAdministratorResponse @@ -116,8 +116,8 @@ private BetaInternalPermissionServiceCreateAdministratorResponse createAdministr /** - * DeleteAdministrator - * DeleteAdministrator revokes a administrator role from a user. In case the administrator role is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the administrator role was deleted during the request. Required permissions depend on the resource type: - \"iam.member.delete\" for instance administrators - \"org.member.delete\" for organization administrators - \"project.member.delete\" for project administrators - \"project.grant.member.delete\" for project grant administrators + * DeleteAdministrator revokes a administrator role from a user. + * In case the administrator role is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the administrator role was deleted during the request. Required permissions depend on the resource type: - \"iam.member.delete\" for instance administrators - \"org.member.delete\" for organization administrators - \"project.member.delete\" for project administrators - \"project.grant.member.delete\" for project grant administrators * @param betaInternalPermissionServiceDeleteAdministratorRequest (required) * @return BetaInternalPermissionServiceDeleteAdministratorResponse * @throws ApiException if fails to make API call @@ -128,8 +128,8 @@ public BetaInternalPermissionServiceDeleteAdministratorResponse deleteAdministra /** - * DeleteAdministrator - * DeleteAdministrator revokes a administrator role from a user. In case the administrator role is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the administrator role was deleted during the request. Required permissions depend on the resource type: - \"iam.member.delete\" for instance administrators - \"org.member.delete\" for organization administrators - \"project.member.delete\" for project administrators - \"project.grant.member.delete\" for project grant administrators + * DeleteAdministrator revokes a administrator role from a user. + * In case the administrator role is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the administrator role was deleted during the request. Required permissions depend on the resource type: - \"iam.member.delete\" for instance administrators - \"org.member.delete\" for organization administrators - \"project.member.delete\" for project administrators - \"project.grant.member.delete\" for project grant administrators * @param betaInternalPermissionServiceDeleteAdministratorRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInternalPermissionServiceDeleteAdministratorResponse @@ -191,8 +191,8 @@ private BetaInternalPermissionServiceDeleteAdministratorResponse deleteAdministr /** - * ListAdministrators - * ListAdministrators returns all administrators and its roles matching the request and necessary permissions. Required permissions depend on the resource type: - \"iam.member.read\" for instance administrators - \"org.member.read\" for organization administrators - \"project.member.read\" for project administrators - \"project.grant.member.read\" for project grant administrators - no permissions required for listing own administrator roles + * ListAdministrators returns all administrators and its roles matching the request and necessary permissions. + * Required permissions depend on the resource type: - \"iam.member.read\" for instance administrators - \"org.member.read\" for organization administrators - \"project.member.read\" for project administrators - \"project.grant.member.read\" for project grant administrators - no permissions required for listing own administrator roles * @param betaInternalPermissionServiceListAdministratorsRequest (required) * @return BetaInternalPermissionServiceListAdministratorsResponse * @throws ApiException if fails to make API call @@ -203,8 +203,8 @@ public BetaInternalPermissionServiceListAdministratorsResponse listAdministrator /** - * ListAdministrators - * ListAdministrators returns all administrators and its roles matching the request and necessary permissions. Required permissions depend on the resource type: - \"iam.member.read\" for instance administrators - \"org.member.read\" for organization administrators - \"project.member.read\" for project administrators - \"project.grant.member.read\" for project grant administrators - no permissions required for listing own administrator roles + * ListAdministrators returns all administrators and its roles matching the request and necessary permissions. + * Required permissions depend on the resource type: - \"iam.member.read\" for instance administrators - \"org.member.read\" for organization administrators - \"project.member.read\" for project administrators - \"project.grant.member.read\" for project grant administrators - no permissions required for listing own administrator roles * @param betaInternalPermissionServiceListAdministratorsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInternalPermissionServiceListAdministratorsResponse @@ -266,8 +266,8 @@ private BetaInternalPermissionServiceListAdministratorsResponse listAdministrato /** - * UpdateAdministrator - * UpdateAdministrator updates the specific administrator role. Note that any role previously granted to the user and not present in the request will be revoked. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators + * UpdateAdministrator updates the specific administrator role. + * Note that any role previously granted to the user and not present in the request will be revoked. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators * @param betaInternalPermissionServiceUpdateAdministratorRequest (required) * @return BetaInternalPermissionServiceUpdateAdministratorResponse * @throws ApiException if fails to make API call @@ -278,8 +278,8 @@ public BetaInternalPermissionServiceUpdateAdministratorResponse updateAdministra /** - * UpdateAdministrator - * UpdateAdministrator updates the specific administrator role. Note that any role previously granted to the user and not present in the request will be revoked. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators + * UpdateAdministrator updates the specific administrator role. + * Note that any role previously granted to the user and not present in the request will be revoked. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators * @param betaInternalPermissionServiceUpdateAdministratorRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaInternalPermissionServiceUpdateAdministratorResponse diff --git a/src/main/java/com/zitadel/api/BetaOidcServiceApi.java b/src/main/java/com/zitadel/api/BetaOidcServiceApi.java index cb4b4ad..b72fd16 100644 --- a/src/main/java/com/zitadel/api/BetaOidcServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaOidcServiceApi.java @@ -35,6 +35,16 @@ public BetaOidcServiceApi(ApiClient apiClient) { + /** + * CreateCallback (Convenience Method) + * + * @return BetaOIDCServiceCreateCallbackResponse + * @throws ApiException if fails to make API call + */ + public BetaOIDCServiceCreateCallbackResponse createCallback() throws ApiException { + return this.createCallback(new BetaOIDCServiceCreateCallbackRequest()); + } + /** * CreateCallback diff --git a/src/main/java/com/zitadel/api/BetaOrganizationServiceApi.java b/src/main/java/com/zitadel/api/BetaOrganizationServiceApi.java index dd5e57a..7edb893 100644 --- a/src/main/java/com/zitadel/api/BetaOrganizationServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaOrganizationServiceApi.java @@ -61,8 +61,8 @@ public BetaOrganizationServiceApi(ApiClient apiClient) { /** - * ActivateOrganization - * Activate Organization Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again. Required permission: - `org.write` + * Activate Organization + * Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again. Required permission: - `org.write` * @param betaOrganizationServiceActivateOrganizationRequest (required) * @return BetaOrganizationServiceActivateOrganizationResponse * @throws ApiException if fails to make API call @@ -73,8 +73,8 @@ public BetaOrganizationServiceActivateOrganizationResponse activateOrganization( /** - * ActivateOrganization - * Activate Organization Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again. Required permission: - `org.write` + * Activate Organization + * Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again. Required permission: - `org.write` * @param betaOrganizationServiceActivateOrganizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceActivateOrganizationResponse @@ -136,8 +136,8 @@ private BetaOrganizationServiceActivateOrganizationResponse activateOrganization /** - * AddOrganizationDomain - * Add Organization Domain Add a new domain to an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.write` + * Add Organization Domain + * Add a new domain to an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.write` * @param betaOrganizationServiceAddOrganizationDomainRequest (required) * @return BetaOrganizationServiceAddOrganizationDomainResponse * @throws ApiException if fails to make API call @@ -148,8 +148,8 @@ public BetaOrganizationServiceAddOrganizationDomainResponse addOrganizationDomai /** - * AddOrganizationDomain - * Add Organization Domain Add a new domain to an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.write` + * Add Organization Domain + * Add a new domain to an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.write` * @param betaOrganizationServiceAddOrganizationDomainRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceAddOrganizationDomainResponse @@ -211,8 +211,8 @@ private BetaOrganizationServiceAddOrganizationDomainResponse addOrganizationDoma /** - * CreateOrganization - * Create Organization Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. Required permission: - `org.create` Deprecated: Use [AddOrganization](/apis/resources/org_service_v2/organization-service-add-organization.api.mdx) instead to create an organization. + * Create Organization + * Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. Required permission: - `org.create` Deprecated: Use [AddOrganization](/apis/resources/org_service_v2/organization-service-add-organization.api.mdx) instead to create an organization. * @param betaOrganizationServiceCreateOrganizationRequest (required) * @return BetaOrganizationServiceCreateOrganizationResponse * @throws ApiException if fails to make API call @@ -223,8 +223,8 @@ public BetaOrganizationServiceCreateOrganizationResponse createOrganization(Beta /** - * CreateOrganization - * Create Organization Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. Required permission: - `org.create` Deprecated: Use [AddOrganization](/apis/resources/org_service_v2/organization-service-add-organization.api.mdx) instead to create an organization. + * Create Organization + * Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. Required permission: - `org.create` Deprecated: Use [AddOrganization](/apis/resources/org_service_v2/organization-service-add-organization.api.mdx) instead to create an organization. * @param betaOrganizationServiceCreateOrganizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceCreateOrganizationResponse @@ -286,8 +286,8 @@ private BetaOrganizationServiceCreateOrganizationResponse createOrganization(Bet /** - * DeactivateOrganization - * Deactivate Organization Sets the state of my organization to deactivated. Users of this organization will not be able to log in. Required permission: - `org.write` + * Deactivate Organization + * Sets the state of my organization to deactivated. Users of this organization will not be able to log in. Required permission: - `org.write` * @param betaOrganizationServiceDeactivateOrganizationRequest (required) * @return BetaOrganizationServiceDeactivateOrganizationResponse * @throws ApiException if fails to make API call @@ -298,8 +298,8 @@ public BetaOrganizationServiceDeactivateOrganizationResponse deactivateOrganizat /** - * DeactivateOrganization - * Deactivate Organization Sets the state of my organization to deactivated. Users of this organization will not be able to log in. Required permission: - `org.write` + * Deactivate Organization + * Sets the state of my organization to deactivated. Users of this organization will not be able to log in. Required permission: - `org.write` * @param betaOrganizationServiceDeactivateOrganizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceDeactivateOrganizationResponse @@ -361,8 +361,8 @@ private BetaOrganizationServiceDeactivateOrganizationResponse deactivateOrganiza /** - * DeleteOrganization - * Delete Organization Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in. Required permission: - `org.delete` + * Delete Organization + * Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in. Required permission: - `org.delete` * @param betaOrganizationServiceDeleteOrganizationRequest (required) * @return BetaOrganizationServiceDeleteOrganizationResponse * @throws ApiException if fails to make API call @@ -373,8 +373,8 @@ public BetaOrganizationServiceDeleteOrganizationResponse deleteOrganization(Beta /** - * DeleteOrganization - * Delete Organization Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in. Required permission: - `org.delete` + * Delete Organization + * Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in. Required permission: - `org.delete` * @param betaOrganizationServiceDeleteOrganizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceDeleteOrganizationResponse @@ -436,8 +436,8 @@ private BetaOrganizationServiceDeleteOrganizationResponse deleteOrganization(Bet /** - * DeleteOrganizationDomain - * Delete Organization Domain Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead. Required permission: - `org.write` + * Delete Organization Domain + * Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead. Required permission: - `org.write` * @param betaOrganizationServiceDeleteOrganizationDomainRequest (required) * @return BetaOrganizationServiceDeleteOrganizationDomainResponse * @throws ApiException if fails to make API call @@ -448,8 +448,8 @@ public BetaOrganizationServiceDeleteOrganizationDomainResponse deleteOrganizatio /** - * DeleteOrganizationDomain - * Delete Organization Domain Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead. Required permission: - `org.write` + * Delete Organization Domain + * Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead. Required permission: - `org.write` * @param betaOrganizationServiceDeleteOrganizationDomainRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceDeleteOrganizationDomainResponse @@ -511,8 +511,8 @@ private BetaOrganizationServiceDeleteOrganizationDomainResponse deleteOrganizati /** - * DeleteOrganizationMetadata - * Delete Organization Metadata Delete metadata objects from an organization with a specific key. Required permission: - `org.write` + * Delete Organization Metadata + * Delete metadata objects from an organization with a specific key. Required permission: - `org.write` * @param betaOrganizationServiceDeleteOrganizationMetadataRequest (required) * @return BetaOrganizationServiceDeleteOrganizationMetadataResponse * @throws ApiException if fails to make API call @@ -523,8 +523,8 @@ public BetaOrganizationServiceDeleteOrganizationMetadataResponse deleteOrganizat /** - * DeleteOrganizationMetadata - * Delete Organization Metadata Delete metadata objects from an organization with a specific key. Required permission: - `org.write` + * Delete Organization Metadata + * Delete metadata objects from an organization with a specific key. Required permission: - `org.write` * @param betaOrganizationServiceDeleteOrganizationMetadataRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceDeleteOrganizationMetadataResponse @@ -586,8 +586,8 @@ private BetaOrganizationServiceDeleteOrganizationMetadataResponse deleteOrganiza /** - * GenerateOrganizationDomainValidation - * Generate Organization Domain Validation Generate a new file to be able to verify your domain with DNS or HTTP challenge. Required permission: - `org.write` + * Generate Organization Domain Validation + * Generate a new file to be able to verify your domain with DNS or HTTP challenge. Required permission: - `org.write` * @param betaOrganizationServiceGenerateOrganizationDomainValidationRequest (required) * @return BetaOrganizationServiceGenerateOrganizationDomainValidationResponse * @throws ApiException if fails to make API call @@ -598,8 +598,8 @@ public BetaOrganizationServiceGenerateOrganizationDomainValidationResponse gener /** - * GenerateOrganizationDomainValidation - * Generate Organization Domain Validation Generate a new file to be able to verify your domain with DNS or HTTP challenge. Required permission: - `org.write` + * Generate Organization Domain Validation + * Generate a new file to be able to verify your domain with DNS or HTTP challenge. Required permission: - `org.write` * @param betaOrganizationServiceGenerateOrganizationDomainValidationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceGenerateOrganizationDomainValidationResponse @@ -661,8 +661,8 @@ private BetaOrganizationServiceGenerateOrganizationDomainValidationResponse gene /** - * ListOrganizationDomains - * List Organization Domains Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.read` + * List Organization Domains + * Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.read` * @param betaOrganizationServiceListOrganizationDomainsRequest (required) * @return BetaOrganizationServiceListOrganizationDomainsResponse * @throws ApiException if fails to make API call @@ -673,8 +673,8 @@ public BetaOrganizationServiceListOrganizationDomainsResponse listOrganizationDo /** - * ListOrganizationDomains - * List Organization Domains Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.read` + * List Organization Domains + * Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.read` * @param betaOrganizationServiceListOrganizationDomainsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceListOrganizationDomainsResponse @@ -736,8 +736,8 @@ private BetaOrganizationServiceListOrganizationDomainsResponse listOrganizationD /** - * ListOrganizationMetadata - * List Organization Metadata List metadata of an organization filtered by query. Required permission: - `org.read` + * List Organization Metadata + * List metadata of an organization filtered by query. Required permission: - `org.read` * @param betaOrganizationServiceListOrganizationMetadataRequest (required) * @return BetaOrganizationServiceListOrganizationMetadataResponse * @throws ApiException if fails to make API call @@ -748,8 +748,8 @@ public BetaOrganizationServiceListOrganizationMetadataResponse listOrganizationM /** - * ListOrganizationMetadata - * List Organization Metadata List metadata of an organization filtered by query. Required permission: - `org.read` + * List Organization Metadata + * List metadata of an organization filtered by query. Required permission: - `org.read` * @param betaOrganizationServiceListOrganizationMetadataRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceListOrganizationMetadataResponse @@ -811,8 +811,8 @@ private BetaOrganizationServiceListOrganizationMetadataResponse listOrganization /** - * ListOrganizations - * List Organizations Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition. Required permission: - `iam.read` Deprecated: Use [ListOrganizations](/apis/resources/org_service_v2/organization-service-list-organizations.api.mdx) instead to list organizations. + * List Organizations + * Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition. Required permission: - `iam.read` Deprecated: Use [ListOrganizations](/apis/resources/org_service_v2/organization-service-list-organizations.api.mdx) instead to list organizations. * @param betaOrganizationServiceListOrganizationsRequest (required) * @return BetaOrganizationServiceListOrganizationsResponse * @throws ApiException if fails to make API call @@ -823,8 +823,8 @@ public BetaOrganizationServiceListOrganizationsResponse listOrganizations(BetaOr /** - * ListOrganizations - * List Organizations Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition. Required permission: - `iam.read` Deprecated: Use [ListOrganizations](/apis/resources/org_service_v2/organization-service-list-organizations.api.mdx) instead to list organizations. + * List Organizations + * Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition. Required permission: - `iam.read` Deprecated: Use [ListOrganizations](/apis/resources/org_service_v2/organization-service-list-organizations.api.mdx) instead to list organizations. * @param betaOrganizationServiceListOrganizationsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceListOrganizationsResponse @@ -886,8 +886,8 @@ private BetaOrganizationServiceListOrganizationsResponse listOrganizations(BetaO /** - * SetOrganizationMetadata - * Set Organization Metadata Adds or updates a metadata value for the requested key. Make sure the value is base64 encoded. Required permission: - `org.write` + * Set Organization Metadata + * Adds or updates a metadata value for the requested key. Make sure the value is base64 encoded. Required permission: - `org.write` * @param betaOrganizationServiceSetOrganizationMetadataRequest (required) * @return BetaOrganizationServiceSetOrganizationMetadataResponse * @throws ApiException if fails to make API call @@ -898,8 +898,8 @@ public BetaOrganizationServiceSetOrganizationMetadataResponse setOrganizationMet /** - * SetOrganizationMetadata - * Set Organization Metadata Adds or updates a metadata value for the requested key. Make sure the value is base64 encoded. Required permission: - `org.write` + * Set Organization Metadata + * Adds or updates a metadata value for the requested key. Make sure the value is base64 encoded. Required permission: - `org.write` * @param betaOrganizationServiceSetOrganizationMetadataRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceSetOrganizationMetadataResponse @@ -961,8 +961,8 @@ private BetaOrganizationServiceSetOrganizationMetadataResponse setOrganizationMe /** - * UpdateOrganization - * Update Organization Change the name of the organization. Required permission: - `org.write` + * Update Organization + * Change the name of the organization. Required permission: - `org.write` * @param betaOrganizationServiceUpdateOrganizationRequest (required) * @return BetaOrganizationServiceUpdateOrganizationResponse * @throws ApiException if fails to make API call @@ -973,8 +973,8 @@ public BetaOrganizationServiceUpdateOrganizationResponse updateOrganization(Beta /** - * UpdateOrganization - * Update Organization Change the name of the organization. Required permission: - `org.write` + * Update Organization + * Change the name of the organization. Required permission: - `org.write` * @param betaOrganizationServiceUpdateOrganizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceUpdateOrganizationResponse @@ -1036,8 +1036,8 @@ private BetaOrganizationServiceUpdateOrganizationResponse updateOrganization(Bet /** - * VerifyOrganizationDomain - * Verify Organization Domain Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). ZITADEL will check it and set the domain as verified if it was successful. A verify domain has to be unique. Required permission: - `org.write` + * Verify Organization Domain + * Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). ZITADEL will check it and set the domain as verified if it was successful. A verify domain has to be unique. Required permission: - `org.write` * @param betaOrganizationServiceVerifyOrganizationDomainRequest (required) * @return BetaOrganizationServiceVerifyOrganizationDomainResponse * @throws ApiException if fails to make API call @@ -1048,8 +1048,8 @@ public BetaOrganizationServiceVerifyOrganizationDomainResponse verifyOrganizatio /** - * VerifyOrganizationDomain - * Verify Organization Domain Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). ZITADEL will check it and set the domain as verified if it was successful. A verify domain has to be unique. Required permission: - `org.write` + * Verify Organization Domain + * Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). ZITADEL will check it and set the domain as verified if it was successful. A verify domain has to be unique. Required permission: - `org.write` * @param betaOrganizationServiceVerifyOrganizationDomainRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaOrganizationServiceVerifyOrganizationDomainResponse diff --git a/src/main/java/com/zitadel/api/BetaProjectServiceApi.java b/src/main/java/com/zitadel/api/BetaProjectServiceApi.java index d5314b1..66571e5 100644 --- a/src/main/java/com/zitadel/api/BetaProjectServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaProjectServiceApi.java @@ -67,8 +67,8 @@ public BetaProjectServiceApi(ApiClient apiClient) { /** - * ActivateProject - * Activate Project Set the state of a project to active. Request returns no error if the project is already activated. Required permission: - `project.write` + * Activate Project + * Set the state of a project to active. Request returns no error if the project is already activated. Required permission: - `project.write` * @param betaProjectServiceActivateProjectRequest (required) * @return BetaProjectServiceActivateProjectResponse * @throws ApiException if fails to make API call @@ -79,8 +79,8 @@ public BetaProjectServiceActivateProjectResponse activateProject(BetaProjectServ /** - * ActivateProject - * Activate Project Set the state of a project to active. Request returns no error if the project is already activated. Required permission: - `project.write` + * Activate Project + * Set the state of a project to active. Request returns no error if the project is already activated. Required permission: - `project.write` * @param betaProjectServiceActivateProjectRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceActivateProjectResponse @@ -142,8 +142,8 @@ private BetaProjectServiceActivateProjectResponse activateProject(BetaProjectSer /** - * ActivateProjectGrant - * Activate Project Grant Set the state of the project grant to activated. Required permission: - `project.grant.write` + * Activate Project Grant + * Set the state of the project grant to activated. Required permission: - `project.grant.write` * @param betaProjectServiceActivateProjectGrantRequest (required) * @return BetaProjectServiceActivateProjectGrantResponse * @throws ApiException if fails to make API call @@ -154,8 +154,8 @@ public BetaProjectServiceActivateProjectGrantResponse activateProjectGrant(BetaP /** - * ActivateProjectGrant - * Activate Project Grant Set the state of the project grant to activated. Required permission: - `project.grant.write` + * Activate Project Grant + * Set the state of the project grant to activated. Required permission: - `project.grant.write` * @param betaProjectServiceActivateProjectGrantRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceActivateProjectGrantResponse @@ -217,8 +217,8 @@ private BetaProjectServiceActivateProjectGrantResponse activateProjectGrant(Beta /** - * AddProjectRole - * Add Project Role Add a new project role to a project. The key must be unique within the project. Required permission: - `project.role.write` + * Add Project Role + * Add a new project role to a project. The key must be unique within the project. Required permission: - `project.role.write` * @param betaProjectServiceAddProjectRoleRequest (required) * @return BetaProjectServiceAddProjectRoleResponse * @throws ApiException if fails to make API call @@ -229,8 +229,8 @@ public BetaProjectServiceAddProjectRoleResponse addProjectRole(BetaProjectServic /** - * AddProjectRole - * Add Project Role Add a new project role to a project. The key must be unique within the project. Required permission: - `project.role.write` + * Add Project Role + * Add a new project role to a project. The key must be unique within the project. Required permission: - `project.role.write` * @param betaProjectServiceAddProjectRoleRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceAddProjectRoleResponse @@ -292,8 +292,8 @@ private BetaProjectServiceAddProjectRoleResponse addProjectRole(BetaProjectServi /** - * CreateProject - * Create Project Create a new Project. Required permission: - `project.create` + * Create Project + * Create a new Project. Required permission: - `project.create` * @param betaProjectServiceCreateProjectRequest (required) * @return BetaProjectServiceCreateProjectResponse * @throws ApiException if fails to make API call @@ -304,8 +304,8 @@ public BetaProjectServiceCreateProjectResponse createProject(BetaProjectServiceC /** - * CreateProject - * Create Project Create a new Project. Required permission: - `project.create` + * Create Project + * Create a new Project. Required permission: - `project.create` * @param betaProjectServiceCreateProjectRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceCreateProjectResponse @@ -367,8 +367,8 @@ private BetaProjectServiceCreateProjectResponse createProject(BetaProjectService /** - * CreateProjectGrant - * Create Project Grant Grant a project to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.create` + * Create Project Grant + * Grant a project to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.create` * @param betaProjectServiceCreateProjectGrantRequest (required) * @return BetaProjectServiceCreateProjectGrantResponse * @throws ApiException if fails to make API call @@ -379,8 +379,8 @@ public BetaProjectServiceCreateProjectGrantResponse createProjectGrant(BetaProje /** - * CreateProjectGrant - * Create Project Grant Grant a project to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.create` + * Create Project Grant + * Grant a project to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.create` * @param betaProjectServiceCreateProjectGrantRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceCreateProjectGrantResponse @@ -442,8 +442,8 @@ private BetaProjectServiceCreateProjectGrantResponse createProjectGrant(BetaProj /** - * DeactivateProject - * Deactivate Project Set the state of a project to deactivated. Request returns no error if the project is already deactivated. Applications under deactivated projects are not able to login anymore. Required permission: - `project.write` + * Deactivate Project + * Set the state of a project to deactivated. Request returns no error if the project is already deactivated. Applications under deactivated projects are not able to login anymore. Required permission: - `project.write` * @param betaProjectServiceDeactivateProjectRequest (required) * @return BetaProjectServiceDeactivateProjectResponse * @throws ApiException if fails to make API call @@ -454,8 +454,8 @@ public BetaProjectServiceDeactivateProjectResponse deactivateProject(BetaProject /** - * DeactivateProject - * Deactivate Project Set the state of a project to deactivated. Request returns no error if the project is already deactivated. Applications under deactivated projects are not able to login anymore. Required permission: - `project.write` + * Deactivate Project + * Set the state of a project to deactivated. Request returns no error if the project is already deactivated. Applications under deactivated projects are not able to login anymore. Required permission: - `project.write` * @param betaProjectServiceDeactivateProjectRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceDeactivateProjectResponse @@ -517,8 +517,8 @@ private BetaProjectServiceDeactivateProjectResponse deactivateProject(BetaProjec /** - * DeactivateProjectGrant - * Deactivate Project Grant Set the state of the project grant to deactivated. Applications under deactivated projects grants are not able to login anymore. Required permission: - `project.grant.write` + * Deactivate Project Grant + * Set the state of the project grant to deactivated. Applications under deactivated projects grants are not able to login anymore. Required permission: - `project.grant.write` * @param betaProjectServiceDeactivateProjectGrantRequest (required) * @return BetaProjectServiceDeactivateProjectGrantResponse * @throws ApiException if fails to make API call @@ -529,8 +529,8 @@ public BetaProjectServiceDeactivateProjectGrantResponse deactivateProjectGrant(B /** - * DeactivateProjectGrant - * Deactivate Project Grant Set the state of the project grant to deactivated. Applications under deactivated projects grants are not able to login anymore. Required permission: - `project.grant.write` + * Deactivate Project Grant + * Set the state of the project grant to deactivated. Applications under deactivated projects grants are not able to login anymore. Required permission: - `project.grant.write` * @param betaProjectServiceDeactivateProjectGrantRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceDeactivateProjectGrantResponse @@ -592,8 +592,8 @@ private BetaProjectServiceDeactivateProjectGrantResponse deactivateProjectGrant( /** - * DeleteProject - * Delete Project Delete an existing project. In case the project is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.delete` + * Delete Project + * Delete an existing project. In case the project is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.delete` * @param betaProjectServiceDeleteProjectRequest (required) * @return BetaProjectServiceDeleteProjectResponse * @throws ApiException if fails to make API call @@ -604,8 +604,8 @@ public BetaProjectServiceDeleteProjectResponse deleteProject(BetaProjectServiceD /** - * DeleteProject - * Delete Project Delete an existing project. In case the project is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.delete` + * Delete Project + * Delete an existing project. In case the project is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.delete` * @param betaProjectServiceDeleteProjectRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceDeleteProjectResponse @@ -667,8 +667,8 @@ private BetaProjectServiceDeleteProjectResponse deleteProject(BetaProjectService /** - * DeleteProjectGrant - * Delete Project Grant Delete a project grant. All user grants for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.grant.delete` + * Delete Project Grant + * Delete a project grant. All user grants for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.grant.delete` * @param betaProjectServiceDeleteProjectGrantRequest (required) * @return BetaProjectServiceDeleteProjectGrantResponse * @throws ApiException if fails to make API call @@ -679,8 +679,8 @@ public BetaProjectServiceDeleteProjectGrantResponse deleteProjectGrant(BetaProje /** - * DeleteProjectGrant - * Delete Project Grant Delete a project grant. All user grants for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.grant.delete` + * Delete Project Grant + * Delete a project grant. All user grants for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.grant.delete` * @param betaProjectServiceDeleteProjectGrantRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceDeleteProjectGrantResponse @@ -742,8 +742,8 @@ private BetaProjectServiceDeleteProjectGrantResponse deleteProjectGrant(BetaProj /** - * GetProject - * Get Project Returns the project identified by the requested ID. Required permission: - `project.read` + * Get Project + * Returns the project identified by the requested ID. Required permission: - `project.read` * @param betaProjectServiceGetProjectRequest (required) * @return BetaProjectServiceGetProjectResponse * @throws ApiException if fails to make API call @@ -754,8 +754,8 @@ public BetaProjectServiceGetProjectResponse getProject(BetaProjectServiceGetProj /** - * GetProject - * Get Project Returns the project identified by the requested ID. Required permission: - `project.read` + * Get Project + * Returns the project identified by the requested ID. Required permission: - `project.read` * @param betaProjectServiceGetProjectRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceGetProjectResponse @@ -817,8 +817,8 @@ private BetaProjectServiceGetProjectResponse getProject(BetaProjectServiceGetPro /** - * ListProjectGrants - * List Project Grants Returns a list of project grants. A project grant is when the organization grants its project to another organization. Required permission: - `project.grant.write` + * List Project Grants + * Returns a list of project grants. A project grant is when the organization grants its project to another organization. Required permission: - `project.grant.write` * @param betaProjectServiceListProjectGrantsRequest (required) * @return BetaProjectServiceListProjectGrantsResponse * @throws ApiException if fails to make API call @@ -829,8 +829,8 @@ public BetaProjectServiceListProjectGrantsResponse listProjectGrants(BetaProject /** - * ListProjectGrants - * List Project Grants Returns a list of project grants. A project grant is when the organization grants its project to another organization. Required permission: - `project.grant.write` + * List Project Grants + * Returns a list of project grants. A project grant is when the organization grants its project to another organization. Required permission: - `project.grant.write` * @param betaProjectServiceListProjectGrantsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceListProjectGrantsResponse @@ -892,8 +892,8 @@ private BetaProjectServiceListProjectGrantsResponse listProjectGrants(BetaProjec /** - * ListProjectRoles - * List Project Roles Returns all roles of a project matching the search query. Required permission: - `project.role.read` + * List Project Roles + * Returns all roles of a project matching the search query. Required permission: - `project.role.read` * @param betaProjectServiceListProjectRolesRequest (required) * @return BetaProjectServiceListProjectRolesResponse * @throws ApiException if fails to make API call @@ -904,8 +904,8 @@ public BetaProjectServiceListProjectRolesResponse listProjectRoles(BetaProjectSe /** - * ListProjectRoles - * List Project Roles Returns all roles of a project matching the search query. Required permission: - `project.role.read` + * List Project Roles + * Returns all roles of a project matching the search query. Required permission: - `project.role.read` * @param betaProjectServiceListProjectRolesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceListProjectRolesResponse @@ -967,8 +967,8 @@ private BetaProjectServiceListProjectRolesResponse listProjectRoles(BetaProjectS /** - * ListProjects - * List Projects List all matching projects. By default all projects of the instance that the caller has permission to read are returned. Make sure to include a limit and sorting for pagination. Required permission: - `project.read` + * List Projects + * List all matching projects. By default all projects of the instance that the caller has permission to read are returned. Make sure to include a limit and sorting for pagination. Required permission: - `project.read` * @param betaProjectServiceListProjectsRequest (required) * @return BetaProjectServiceListProjectsResponse * @throws ApiException if fails to make API call @@ -979,8 +979,8 @@ public BetaProjectServiceListProjectsResponse listProjects(BetaProjectServiceLis /** - * ListProjects - * List Projects List all matching projects. By default all projects of the instance that the caller has permission to read are returned. Make sure to include a limit and sorting for pagination. Required permission: - `project.read` + * List Projects + * List all matching projects. By default all projects of the instance that the caller has permission to read are returned. Make sure to include a limit and sorting for pagination. Required permission: - `project.read` * @param betaProjectServiceListProjectsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceListProjectsResponse @@ -1042,8 +1042,8 @@ private BetaProjectServiceListProjectsResponse listProjects(BetaProjectServiceLi /** - * RemoveProjectRole - * Remove Project Role Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. Required permission: - `project.role.write` + * Remove Project Role + * Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. Required permission: - `project.role.write` * @param betaProjectServiceRemoveProjectRoleRequest (required) * @return BetaProjectServiceRemoveProjectRoleResponse * @throws ApiException if fails to make API call @@ -1054,8 +1054,8 @@ public BetaProjectServiceRemoveProjectRoleResponse removeProjectRole(BetaProject /** - * RemoveProjectRole - * Remove Project Role Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. Required permission: - `project.role.write` + * Remove Project Role + * Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. Required permission: - `project.role.write` * @param betaProjectServiceRemoveProjectRoleRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceRemoveProjectRoleResponse @@ -1117,8 +1117,8 @@ private BetaProjectServiceRemoveProjectRoleResponse removeProjectRole(BetaProjec /** - * UpdateProject - * Update Project Update an existing project. Required permission: - `project.write` + * Update Project + * Update an existing project. Required permission: - `project.write` * @param betaProjectServiceUpdateProjectRequest (required) * @return BetaProjectServiceUpdateProjectResponse * @throws ApiException if fails to make API call @@ -1129,8 +1129,8 @@ public BetaProjectServiceUpdateProjectResponse updateProject(BetaProjectServiceU /** - * UpdateProject - * Update Project Update an existing project. Required permission: - `project.write` + * Update Project + * Update an existing project. Required permission: - `project.write` * @param betaProjectServiceUpdateProjectRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceUpdateProjectResponse @@ -1192,8 +1192,8 @@ private BetaProjectServiceUpdateProjectResponse updateProject(BetaProjectService /** - * UpdateProjectGrant - * Update Project Grant Change the roles of the project that is granted to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.write` + * Update Project Grant + * Change the roles of the project that is granted to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.write` * @param betaProjectServiceUpdateProjectGrantRequest (required) * @return BetaProjectServiceUpdateProjectGrantResponse * @throws ApiException if fails to make API call @@ -1204,8 +1204,8 @@ public BetaProjectServiceUpdateProjectGrantResponse updateProjectGrant(BetaProje /** - * UpdateProjectGrant - * Update Project Grant Change the roles of the project that is granted to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.write` + * Update Project Grant + * Change the roles of the project that is granted to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.write` * @param betaProjectServiceUpdateProjectGrantRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceUpdateProjectGrantResponse @@ -1267,8 +1267,8 @@ private BetaProjectServiceUpdateProjectGrantResponse updateProjectGrant(BetaProj /** - * UpdateProjectRole - * Update Project Role Change a project role. The key is not editable. If a key should change, remove the role and create a new one. Required permission: - `project.role.write` + * Update Project Role + * Change a project role. The key is not editable. If a key should change, remove the role and create a new one. Required permission: - `project.role.write` * @param betaProjectServiceUpdateProjectRoleRequest (required) * @return BetaProjectServiceUpdateProjectRoleResponse * @throws ApiException if fails to make API call @@ -1279,8 +1279,8 @@ public BetaProjectServiceUpdateProjectRoleResponse updateProjectRole(BetaProject /** - * UpdateProjectRole - * Update Project Role Change a project role. The key is not editable. If a key should change, remove the role and create a new one. Required permission: - `project.role.write` + * Update Project Role + * Change a project role. The key is not editable. If a key should change, remove the role and create a new one. Required permission: - `project.role.write` * @param betaProjectServiceUpdateProjectRoleRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaProjectServiceUpdateProjectRoleResponse diff --git a/src/main/java/com/zitadel/api/BetaSessionServiceApi.java b/src/main/java/com/zitadel/api/BetaSessionServiceApi.java index c8cb8ae..566fa52 100644 --- a/src/main/java/com/zitadel/api/BetaSessionServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaSessionServiceApi.java @@ -43,7 +43,7 @@ public BetaSessionServiceApi(ApiClient apiClient) { /** - * CreateSession + * Create a new session * Create a new session * @param betaSessionServiceCreateSessionRequest (required) * @return BetaSessionServiceCreateSessionResponse @@ -55,7 +55,7 @@ public BetaSessionServiceCreateSessionResponse createSession(BetaSessionServiceC /** - * CreateSession + * Create a new session * Create a new session * @param betaSessionServiceCreateSessionRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -118,7 +118,7 @@ private BetaSessionServiceCreateSessionResponse createSession(BetaSessionService /** - * DeleteSession + * Terminate a session * Terminate a session * @param betaSessionServiceDeleteSessionRequest (required) * @return BetaSessionServiceDeleteSessionResponse @@ -130,7 +130,7 @@ public BetaSessionServiceDeleteSessionResponse deleteSession(BetaSessionServiceD /** - * DeleteSession + * Terminate a session * Terminate a session * @param betaSessionServiceDeleteSessionRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -193,7 +193,7 @@ private BetaSessionServiceDeleteSessionResponse deleteSession(BetaSessionService /** - * GetSession + * GetSession a session * GetSession a session * @param betaSessionServiceGetSessionRequest (required) * @return BetaSessionServiceGetSessionResponse @@ -205,7 +205,7 @@ public BetaSessionServiceGetSessionResponse getSession(BetaSessionServiceGetSess /** - * GetSession + * GetSession a session * GetSession a session * @param betaSessionServiceGetSessionRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -268,7 +268,7 @@ private BetaSessionServiceGetSessionResponse getSession(BetaSessionServiceGetSes /** - * ListSessions + * Search sessions * Search sessions * @param betaSessionServiceListSessionsRequest (required) * @return BetaSessionServiceListSessionsResponse @@ -280,7 +280,7 @@ public BetaSessionServiceListSessionsResponse listSessions(BetaSessionServiceLis /** - * ListSessions + * Search sessions * Search sessions * @param betaSessionServiceListSessionsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -343,7 +343,7 @@ private BetaSessionServiceListSessionsResponse listSessions(BetaSessionServiceLi /** - * SetSession + * Update a session * Update a session * @param betaSessionServiceSetSessionRequest (required) * @return BetaSessionServiceSetSessionResponse @@ -355,7 +355,7 @@ public BetaSessionServiceSetSessionResponse setSession(BetaSessionServiceSetSess /** - * SetSession + * Update a session * Update a session * @param betaSessionServiceSetSessionRequest (required) * @param additionalHeaders additionalHeaders for this call diff --git a/src/main/java/com/zitadel/api/BetaSettingsServiceApi.java b/src/main/java/com/zitadel/api/BetaSettingsServiceApi.java index a2200c8..9694515 100644 --- a/src/main/java/com/zitadel/api/BetaSettingsServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaSettingsServiceApi.java @@ -53,7 +53,7 @@ public BetaSettingsServiceApi(ApiClient apiClient) { /** - * GetActiveIdentityProviders + * Get the current active identity providers * Get the current active identity providers * @param betaSettingsServiceGetActiveIdentityProvidersRequest (required) * @return BetaSettingsServiceGetActiveIdentityProvidersResponse @@ -65,7 +65,7 @@ public BetaSettingsServiceGetActiveIdentityProvidersResponse getActiveIdentityPr /** - * GetActiveIdentityProviders + * Get the current active identity providers * Get the current active identity providers * @param betaSettingsServiceGetActiveIdentityProvidersRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -128,7 +128,7 @@ private BetaSettingsServiceGetActiveIdentityProvidersResponse getActiveIdentityP /** - * GetBrandingSettings + * Get the current active branding settings * Get the current active branding settings * @param betaSettingsServiceGetBrandingSettingsRequest (required) * @return BetaSettingsServiceGetBrandingSettingsResponse @@ -140,7 +140,7 @@ public BetaSettingsServiceGetBrandingSettingsResponse getBrandingSettings(BetaSe /** - * GetBrandingSettings + * Get the current active branding settings * Get the current active branding settings * @param betaSettingsServiceGetBrandingSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -203,7 +203,7 @@ private BetaSettingsServiceGetBrandingSettingsResponse getBrandingSettings(BetaS /** - * GetDomainSettings + * Get the domain settings * Get the domain settings * @param betaSettingsServiceGetDomainSettingsRequest (required) * @return BetaSettingsServiceGetDomainSettingsResponse @@ -215,7 +215,7 @@ public BetaSettingsServiceGetDomainSettingsResponse getDomainSettings(BetaSettin /** - * GetDomainSettings + * Get the domain settings * Get the domain settings * @param betaSettingsServiceGetDomainSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -277,7 +277,7 @@ private BetaSettingsServiceGetDomainSettingsResponse getDomainSettings(BetaSetti /** - * GetGeneralSettings (Convenience Method) + * Get basic information over the instance (Convenience Method) * Get basic information over the instance * @return BetaSettingsServiceGetGeneralSettingsResponse * @throws ApiException if fails to make API call @@ -288,7 +288,7 @@ public BetaSettingsServiceGetGeneralSettingsResponse getGeneralSettings() throws /** - * GetGeneralSettings + * Get basic information over the instance * Get basic information over the instance * @param body (required) * @return BetaSettingsServiceGetGeneralSettingsResponse @@ -300,7 +300,7 @@ public BetaSettingsServiceGetGeneralSettingsResponse getGeneralSettings(Object b /** - * GetGeneralSettings + * Get basic information over the instance * Get basic information over the instance * @param body (required) * @param additionalHeaders additionalHeaders for this call @@ -363,7 +363,7 @@ private BetaSettingsServiceGetGeneralSettingsResponse getGeneralSettings(Object /** - * GetLegalAndSupportSettings + * Get the legal and support settings * Get the legal and support settings * @param betaSettingsServiceGetLegalAndSupportSettingsRequest (required) * @return BetaSettingsServiceGetLegalAndSupportSettingsResponse @@ -375,7 +375,7 @@ public BetaSettingsServiceGetLegalAndSupportSettingsResponse getLegalAndSupportS /** - * GetLegalAndSupportSettings + * Get the legal and support settings * Get the legal and support settings * @param betaSettingsServiceGetLegalAndSupportSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -438,7 +438,7 @@ private BetaSettingsServiceGetLegalAndSupportSettingsResponse getLegalAndSupport /** - * GetLockoutSettings + * Get the lockout settings * Get the lockout settings * @param betaSettingsServiceGetLockoutSettingsRequest (required) * @return BetaSettingsServiceGetLockoutSettingsResponse @@ -450,7 +450,7 @@ public BetaSettingsServiceGetLockoutSettingsResponse getLockoutSettings(BetaSett /** - * GetLockoutSettings + * Get the lockout settings * Get the lockout settings * @param betaSettingsServiceGetLockoutSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -513,7 +513,7 @@ private BetaSettingsServiceGetLockoutSettingsResponse getLockoutSettings(BetaSet /** - * GetLoginSettings + * Get the login settings * Get the login settings * @param betaSettingsServiceGetLoginSettingsRequest (required) * @return BetaSettingsServiceGetLoginSettingsResponse @@ -525,7 +525,7 @@ public BetaSettingsServiceGetLoginSettingsResponse getLoginSettings(BetaSettings /** - * GetLoginSettings + * Get the login settings * Get the login settings * @param betaSettingsServiceGetLoginSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -588,7 +588,7 @@ private BetaSettingsServiceGetLoginSettingsResponse getLoginSettings(BetaSetting /** - * GetPasswordComplexitySettings + * Get the password complexity settings * Get the password complexity settings * @param betaSettingsServiceGetPasswordComplexitySettingsRequest (required) * @return BetaSettingsServiceGetPasswordComplexitySettingsResponse @@ -600,7 +600,7 @@ public BetaSettingsServiceGetPasswordComplexitySettingsResponse getPasswordCompl /** - * GetPasswordComplexitySettings + * Get the password complexity settings * Get the password complexity settings * @param betaSettingsServiceGetPasswordComplexitySettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -663,7 +663,7 @@ private BetaSettingsServiceGetPasswordComplexitySettingsResponse getPasswordComp /** - * GetPasswordExpirySettings + * Get the password expiry settings * Get the password expiry settings * @param betaSettingsServiceGetPasswordExpirySettingsRequest (required) * @return BetaSettingsServiceGetPasswordExpirySettingsResponse @@ -675,7 +675,7 @@ public BetaSettingsServiceGetPasswordExpirySettingsResponse getPasswordExpirySet /** - * GetPasswordExpirySettings + * Get the password expiry settings * Get the password expiry settings * @param betaSettingsServiceGetPasswordExpirySettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -737,7 +737,7 @@ private BetaSettingsServiceGetPasswordExpirySettingsResponse getPasswordExpirySe /** - * GetSecuritySettings (Convenience Method) + * Get the security settings (Convenience Method) * Get the security settings * @return BetaSettingsServiceGetSecuritySettingsResponse * @throws ApiException if fails to make API call @@ -748,7 +748,7 @@ public BetaSettingsServiceGetSecuritySettingsResponse getSecuritySettings() thro /** - * GetSecuritySettings + * Get the security settings * Get the security settings * @param body (required) * @return BetaSettingsServiceGetSecuritySettingsResponse @@ -760,7 +760,7 @@ public BetaSettingsServiceGetSecuritySettingsResponse getSecuritySettings(Object /** - * GetSecuritySettings + * Get the security settings * Get the security settings * @param body (required) * @param additionalHeaders additionalHeaders for this call @@ -823,7 +823,7 @@ private BetaSettingsServiceGetSecuritySettingsResponse getSecuritySettings(Objec /** - * SetSecuritySettings + * Set the security settings * Set the security settings * @param betaSettingsServiceSetSecuritySettingsRequest (required) * @return BetaSettingsServiceSetSecuritySettingsResponse @@ -835,7 +835,7 @@ public BetaSettingsServiceSetSecuritySettingsResponse setSecuritySettings(BetaSe /** - * SetSecuritySettings + * Set the security settings * Set the security settings * @param betaSettingsServiceSetSecuritySettingsRequest (required) * @param additionalHeaders additionalHeaders for this call diff --git a/src/main/java/com/zitadel/api/BetaTelemetryServiceApi.java b/src/main/java/com/zitadel/api/BetaTelemetryServiceApi.java index b2be0f1..0138cb9 100644 --- a/src/main/java/com/zitadel/api/BetaTelemetryServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaTelemetryServiceApi.java @@ -37,7 +37,7 @@ public BetaTelemetryServiceApi(ApiClient apiClient) { /** - * ReportBaseInformation + * ReportBaseInformation is used to report the base information of the ZITADEL system, including the version, instances, their creation date and domains. The response contains a report ID to link it to the resource counts or other reports. The report ID is only valid for the same system ID. * ReportBaseInformation is used to report the base information of the ZITADEL system, including the version, instances, their creation date and domains. The response contains a report ID to link it to the resource counts or other reports. The report ID is only valid for the same system ID. * @param betaTelemetryServiceReportBaseInformationRequest (required) * @return BetaTelemetryServiceReportBaseInformationResponse @@ -49,7 +49,7 @@ public BetaTelemetryServiceReportBaseInformationResponse reportBaseInformation(B /** - * ReportBaseInformation + * ReportBaseInformation is used to report the base information of the ZITADEL system, including the version, instances, their creation date and domains. The response contains a report ID to link it to the resource counts or other reports. The report ID is only valid for the same system ID. * ReportBaseInformation is used to report the base information of the ZITADEL system, including the version, instances, their creation date and domains. The response contains a report ID to link it to the resource counts or other reports. The report ID is only valid for the same system ID. * @param betaTelemetryServiceReportBaseInformationRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -112,7 +112,7 @@ private BetaTelemetryServiceReportBaseInformationResponse reportBaseInformation( /** - * ReportResourceCounts + * ReportResourceCounts is used to report the resource counts such as amount of organizations or users per organization and much more. Since the resource counts can be reported in multiple batches, the response contains a report ID to continue reporting. The report ID is only valid for the same system ID. * ReportResourceCounts is used to report the resource counts such as amount of organizations or users per organization and much more. Since the resource counts can be reported in multiple batches, the response contains a report ID to continue reporting. The report ID is only valid for the same system ID. * @param betaTelemetryServiceReportResourceCountsRequest (required) * @return BetaTelemetryServiceReportResourceCountsResponse @@ -124,7 +124,7 @@ public BetaTelemetryServiceReportResourceCountsResponse reportResourceCounts(Bet /** - * ReportResourceCounts + * ReportResourceCounts is used to report the resource counts such as amount of organizations or users per organization and much more. Since the resource counts can be reported in multiple batches, the response contains a report ID to continue reporting. The report ID is only valid for the same system ID. * ReportResourceCounts is used to report the resource counts such as amount of organizations or users per organization and much more. Since the resource counts can be reported in multiple batches, the response contains a report ID to continue reporting. The report ID is only valid for the same system ID. * @param betaTelemetryServiceReportResourceCountsRequest (required) * @param additionalHeaders additionalHeaders for this call diff --git a/src/main/java/com/zitadel/api/BetaUserServiceApi.java b/src/main/java/com/zitadel/api/BetaUserServiceApi.java index b2dc406..e707dba 100644 --- a/src/main/java/com/zitadel/api/BetaUserServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaUserServiceApi.java @@ -99,10 +99,20 @@ public BetaUserServiceApi(ApiClient apiClient) { + /** + * Create a new human user (Convenience Method) + * Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. Deprecated: please move to the corresponding endpoint under user service v2 (GA) + * @return BetaUserServiceAddHumanUserResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceAddHumanUserResponse addHumanUser() throws ApiException { + return this.addHumanUser(new BetaUserServiceAddHumanUserRequest()); + } + /** - * AddHumanUser - * Create a new human user Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. Deprecated: please move to the corresponding endpoint under user service v2 (GA) + * Create a new human user + * Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. Deprecated: please move to the corresponding endpoint under user service v2 (GA) * @param betaUserServiceAddHumanUserRequest (required) * @return BetaUserServiceAddHumanUserResponse * @throws ApiException if fails to make API call @@ -113,8 +123,8 @@ public BetaUserServiceAddHumanUserResponse addHumanUser(BetaUserServiceAddHumanU /** - * AddHumanUser - * Create a new human user Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. Deprecated: please move to the corresponding endpoint under user service v2 (GA) + * Create a new human user + * Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. Deprecated: please move to the corresponding endpoint under user service v2 (GA) * @param betaUserServiceAddHumanUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceAddHumanUserResponse @@ -176,8 +186,8 @@ private BetaUserServiceAddHumanUserResponse addHumanUser(BetaUserServiceAddHuman /** - * AddIDPLink - * Add link to an identity provider to an user Add link to an identity provider to an user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Add link to an identity provider to an user + * Add link to an identity provider to an user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceAddIDPLinkRequest (required) * @return BetaUserServiceAddIDPLinkResponse * @throws ApiException if fails to make API call @@ -188,8 +198,8 @@ public BetaUserServiceAddIDPLinkResponse addIDPLink(BetaUserServiceAddIDPLinkReq /** - * AddIDPLink - * Add link to an identity provider to an user Add link to an identity provider to an user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Add link to an identity provider to an user + * Add link to an identity provider to an user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceAddIDPLinkRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceAddIDPLinkResponse @@ -251,8 +261,8 @@ private BetaUserServiceAddIDPLinkResponse addIDPLink(BetaUserServiceAddIDPLinkRe /** - * AddOTPEmail - * Add OTP Email for a user Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Add OTP Email for a user + * Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceAddOTPEmailRequest (required) * @return BetaUserServiceAddOTPEmailResponse * @throws ApiException if fails to make API call @@ -263,8 +273,8 @@ public BetaUserServiceAddOTPEmailResponse addOTPEmail(BetaUserServiceAddOTPEmail /** - * AddOTPEmail - * Add OTP Email for a user Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Add OTP Email for a user + * Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceAddOTPEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceAddOTPEmailResponse @@ -326,8 +336,8 @@ private BetaUserServiceAddOTPEmailResponse addOTPEmail(BetaUserServiceAddOTPEmai /** - * AddOTPSMS - * Add OTP SMS for a user Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Add OTP SMS for a user + * Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceAddOTPSMSRequest (required) * @return BetaUserServiceAddOTPSMSResponse * @throws ApiException if fails to make API call @@ -338,8 +348,8 @@ public BetaUserServiceAddOTPSMSResponse addOTPSMS(BetaUserServiceAddOTPSMSReques /** - * AddOTPSMS - * Add OTP SMS for a user Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Add OTP SMS for a user + * Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceAddOTPSMSRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceAddOTPSMSResponse @@ -399,10 +409,20 @@ private BetaUserServiceAddOTPSMSResponse addOTPSMS(BetaUserServiceAddOTPSMSReque + /** + * Create a passkey registration link for a user (Convenience Method) + * Create a passkey registration link which includes a code and either return it or send it to the user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServiceCreatePasskeyRegistrationLinkResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceCreatePasskeyRegistrationLinkResponse createPasskeyRegistrationLink() throws ApiException { + return this.createPasskeyRegistrationLink(new BetaUserServiceCreatePasskeyRegistrationLinkRequest()); + } + /** - * CreatePasskeyRegistrationLink - * Create a passkey registration link for a user Create a passkey registration link which includes a code and either return it or send it to the user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Create a passkey registration link for a user + * Create a passkey registration link which includes a code and either return it or send it to the user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceCreatePasskeyRegistrationLinkRequest (required) * @return BetaUserServiceCreatePasskeyRegistrationLinkResponse * @throws ApiException if fails to make API call @@ -413,8 +433,8 @@ public BetaUserServiceCreatePasskeyRegistrationLinkResponse createPasskeyRegistr /** - * CreatePasskeyRegistrationLink - * Create a passkey registration link for a user Create a passkey registration link which includes a code and either return it or send it to the user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Create a passkey registration link for a user + * Create a passkey registration link which includes a code and either return it or send it to the user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceCreatePasskeyRegistrationLinkRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceCreatePasskeyRegistrationLinkResponse @@ -476,8 +496,8 @@ private BetaUserServiceCreatePasskeyRegistrationLinkResponse createPasskeyRegist /** - * DeactivateUser - * Deactivate user The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Deactivate user + * The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceDeactivateUserRequest (required) * @return BetaUserServiceDeactivateUserResponse * @throws ApiException if fails to make API call @@ -488,8 +508,8 @@ public BetaUserServiceDeactivateUserResponse deactivateUser(BetaUserServiceDeact /** - * DeactivateUser - * Deactivate user The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Deactivate user + * The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceDeactivateUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceDeactivateUserResponse @@ -551,8 +571,8 @@ private BetaUserServiceDeactivateUserResponse deactivateUser(BetaUserServiceDeac /** - * DeleteUser - * Delete user The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Delete user + * The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceDeleteUserRequest (required) * @return BetaUserServiceDeleteUserResponse * @throws ApiException if fails to make API call @@ -563,8 +583,8 @@ public BetaUserServiceDeleteUserResponse deleteUser(BetaUserServiceDeleteUserReq /** - * DeleteUser - * Delete user The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Delete user + * The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceDeleteUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceDeleteUserResponse @@ -626,8 +646,8 @@ private BetaUserServiceDeleteUserResponse deleteUser(BetaUserServiceDeleteUserRe /** - * GetUserByID - * User by ID Returns the full user object (human or machine) including the profile, email, etc. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * User by ID + * Returns the full user object (human or machine) including the profile, email, etc. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceGetUserByIDRequest (required) * @return BetaUserServiceGetUserByIDResponse * @throws ApiException if fails to make API call @@ -638,8 +658,8 @@ public BetaUserServiceGetUserByIDResponse getUserByID(BetaUserServiceGetUserByID /** - * GetUserByID - * User by ID Returns the full user object (human or machine) including the profile, email, etc. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * User by ID + * Returns the full user object (human or machine) including the profile, email, etc. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceGetUserByIDRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceGetUserByIDResponse @@ -701,8 +721,8 @@ private BetaUserServiceGetUserByIDResponse getUserByID(BetaUserServiceGetUserByI /** - * ListAuthenticationMethodTypes - * List all possible authentication methods of a user List all possible authentication methods of a user like password, passwordless, (T)OTP and more. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * List all possible authentication methods of a user + * List all possible authentication methods of a user like password, passwordless, (T)OTP and more. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceListAuthenticationMethodTypesRequest (required) * @return BetaUserServiceListAuthenticationMethodTypesResponse * @throws ApiException if fails to make API call @@ -713,8 +733,8 @@ public BetaUserServiceListAuthenticationMethodTypesResponse listAuthenticationMe /** - * ListAuthenticationMethodTypes - * List all possible authentication methods of a user List all possible authentication methods of a user like password, passwordless, (T)OTP and more. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * List all possible authentication methods of a user + * List all possible authentication methods of a user like password, passwordless, (T)OTP and more. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceListAuthenticationMethodTypesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceListAuthenticationMethodTypesResponse @@ -776,8 +796,8 @@ private BetaUserServiceListAuthenticationMethodTypesResponse listAuthenticationM /** - * ListUsers - * Search Users Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Search Users + * Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceListUsersRequest (required) * @return BetaUserServiceListUsersResponse * @throws ApiException if fails to make API call @@ -788,8 +808,8 @@ public BetaUserServiceListUsersResponse listUsers(BetaUserServiceListUsersReques /** - * ListUsers - * Search Users Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Search Users + * Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceListUsersRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceListUsersResponse @@ -851,8 +871,8 @@ private BetaUserServiceListUsersResponse listUsers(BetaUserServiceListUsersReque /** - * LockUser - * Lock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Lock user + * The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceLockUserRequest (required) * @return BetaUserServiceLockUserResponse * @throws ApiException if fails to make API call @@ -863,8 +883,8 @@ public BetaUserServiceLockUserResponse lockUser(BetaUserServiceLockUserRequest b /** - * LockUser - * Lock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Lock user + * The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceLockUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceLockUserResponse @@ -924,10 +944,20 @@ private BetaUserServiceLockUserResponse lockUser(BetaUserServiceLockUserRequest + /** + * Request a code to reset a password (Convenience Method) + * Request a code to reset a password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServicePasswordResetResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServicePasswordResetResponse passwordReset() throws ApiException { + return this.passwordReset(new BetaUserServicePasswordResetRequest()); + } + /** - * PasswordReset - * Request a code to reset a password Request a code to reset a password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Request a code to reset a password + * Request a code to reset a password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServicePasswordResetRequest (required) * @return BetaUserServicePasswordResetResponse * @throws ApiException if fails to make API call @@ -938,8 +968,8 @@ public BetaUserServicePasswordResetResponse passwordReset(BetaUserServicePasswor /** - * PasswordReset - * Request a code to reset a password Request a code to reset a password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Request a code to reset a password + * Request a code to reset a password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServicePasswordResetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServicePasswordResetResponse @@ -1001,8 +1031,8 @@ private BetaUserServicePasswordResetResponse passwordReset(BetaUserServicePasswo /** - * ReactivateUser - * Reactivate user Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Reactivate user + * Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceReactivateUserRequest (required) * @return BetaUserServiceReactivateUserResponse * @throws ApiException if fails to make API call @@ -1013,8 +1043,8 @@ public BetaUserServiceReactivateUserResponse reactivateUser(BetaUserServiceReact /** - * ReactivateUser - * Reactivate user Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Reactivate user + * Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceReactivateUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceReactivateUserResponse @@ -1076,8 +1106,8 @@ private BetaUserServiceReactivateUserResponse reactivateUser(BetaUserServiceReac /** - * RegisterPasskey - * Start the registration of passkey for a user Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start the registration of passkey for a user + * Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRegisterPasskeyRequest (required) * @return BetaUserServiceRegisterPasskeyResponse * @throws ApiException if fails to make API call @@ -1088,8 +1118,8 @@ public BetaUserServiceRegisterPasskeyResponse registerPasskey(BetaUserServiceReg /** - * RegisterPasskey - * Start the registration of passkey for a user Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start the registration of passkey for a user + * Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRegisterPasskeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRegisterPasskeyResponse @@ -1151,8 +1181,8 @@ private BetaUserServiceRegisterPasskeyResponse registerPasskey(BetaUserServiceRe /** - * RegisterTOTP - * Start the registration of a TOTP generator for a user Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start the registration of a TOTP generator for a user + * Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRegisterTOTPRequest (required) * @return BetaUserServiceRegisterTOTPResponse * @throws ApiException if fails to make API call @@ -1163,8 +1193,8 @@ public BetaUserServiceRegisterTOTPResponse registerTOTP(BetaUserServiceRegisterT /** - * RegisterTOTP - * Start the registration of a TOTP generator for a user Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start the registration of a TOTP generator for a user + * Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRegisterTOTPRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRegisterTOTPResponse @@ -1226,8 +1256,8 @@ private BetaUserServiceRegisterTOTPResponse registerTOTP(BetaUserServiceRegister /** - * RegisterU2F - * Start the registration of a u2f token for a user Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start the registration of a u2f token for a user + * Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRegisterU2FRequest (required) * @return BetaUserServiceRegisterU2FResponse * @throws ApiException if fails to make API call @@ -1238,8 +1268,8 @@ public BetaUserServiceRegisterU2FResponse registerU2F(BetaUserServiceRegisterU2F /** - * RegisterU2F - * Start the registration of a u2f token for a user Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start the registration of a u2f token for a user + * Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRegisterU2FRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRegisterU2FResponse @@ -1301,8 +1331,8 @@ private BetaUserServiceRegisterU2FResponse registerU2F(BetaUserServiceRegisterU2 /** - * RemoveOTPEmail - * Remove One-Time Password (OTP) Email from a user Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove One-Time Password (OTP) Email from a user + * Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemoveOTPEmailRequest (required) * @return BetaUserServiceRemoveOTPEmailResponse * @throws ApiException if fails to make API call @@ -1313,8 +1343,8 @@ public BetaUserServiceRemoveOTPEmailResponse removeOTPEmail(BetaUserServiceRemov /** - * RemoveOTPEmail - * Remove One-Time Password (OTP) Email from a user Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove One-Time Password (OTP) Email from a user + * Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemoveOTPEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRemoveOTPEmailResponse @@ -1376,8 +1406,8 @@ private BetaUserServiceRemoveOTPEmailResponse removeOTPEmail(BetaUserServiceRemo /** - * RemoveOTPSMS - * Remove One-Time Password (OTP) SMS from a user Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove One-Time Password (OTP) SMS from a user + * Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemoveOTPSMSRequest (required) * @return BetaUserServiceRemoveOTPSMSResponse * @throws ApiException if fails to make API call @@ -1388,8 +1418,8 @@ public BetaUserServiceRemoveOTPSMSResponse removeOTPSMS(BetaUserServiceRemoveOTP /** - * RemoveOTPSMS - * Remove One-Time Password (OTP) SMS from a user Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove One-Time Password (OTP) SMS from a user + * Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemoveOTPSMSRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRemoveOTPSMSResponse @@ -1451,8 +1481,8 @@ private BetaUserServiceRemoveOTPSMSResponse removeOTPSMS(BetaUserServiceRemoveOT /** - * RemovePhone - * Remove the user phone Remove the user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove the user phone + * Remove the user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemovePhoneRequest (required) * @return BetaUserServiceRemovePhoneResponse * @throws ApiException if fails to make API call @@ -1463,8 +1493,8 @@ public BetaUserServiceRemovePhoneResponse removePhone(BetaUserServiceRemovePhone /** - * RemovePhone - * Remove the user phone Remove the user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove the user phone + * Remove the user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemovePhoneRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRemovePhoneResponse @@ -1526,8 +1556,8 @@ private BetaUserServiceRemovePhoneResponse removePhone(BetaUserServiceRemovePhon /** - * RemoveTOTP - * Remove TOTP generator from a user Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove TOTP generator from a user + * Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemoveTOTPRequest (required) * @return BetaUserServiceRemoveTOTPResponse * @throws ApiException if fails to make API call @@ -1538,8 +1568,8 @@ public BetaUserServiceRemoveTOTPResponse removeTOTP(BetaUserServiceRemoveTOTPReq /** - * RemoveTOTP - * Remove TOTP generator from a user Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Remove TOTP generator from a user + * Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRemoveTOTPRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRemoveTOTPResponse @@ -1599,10 +1629,20 @@ private BetaUserServiceRemoveTOTPResponse removeTOTP(BetaUserServiceRemoveTOTPRe + /** + * Resend code to verify user email (Convenience Method) + * Resend code to verify user email Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServiceResendEmailCodeResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceResendEmailCodeResponse resendEmailCode() throws ApiException { + return this.resendEmailCode(new BetaUserServiceResendEmailCodeRequest()); + } + /** - * ResendEmailCode - * Resend code to verify user email Resend code to verify user email Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Resend code to verify user email + * Resend code to verify user email Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceResendEmailCodeRequest (required) * @return BetaUserServiceResendEmailCodeResponse * @throws ApiException if fails to make API call @@ -1613,8 +1653,8 @@ public BetaUserServiceResendEmailCodeResponse resendEmailCode(BetaUserServiceRes /** - * ResendEmailCode - * Resend code to verify user email Resend code to verify user email Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Resend code to verify user email + * Resend code to verify user email Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceResendEmailCodeRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceResendEmailCodeResponse @@ -1674,10 +1714,20 @@ private BetaUserServiceResendEmailCodeResponse resendEmailCode(BetaUserServiceRe + /** + * Resend code to verify user phone (Convenience Method) + * Resend code to verify user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServiceResendPhoneCodeResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceResendPhoneCodeResponse resendPhoneCode() throws ApiException { + return this.resendPhoneCode(new BetaUserServiceResendPhoneCodeRequest()); + } + /** - * ResendPhoneCode - * Resend code to verify user phone Resend code to verify user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Resend code to verify user phone + * Resend code to verify user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceResendPhoneCodeRequest (required) * @return BetaUserServiceResendPhoneCodeResponse * @throws ApiException if fails to make API call @@ -1688,8 +1738,8 @@ public BetaUserServiceResendPhoneCodeResponse resendPhoneCode(BetaUserServiceRes /** - * ResendPhoneCode - * Resend code to verify user phone Resend code to verify user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Resend code to verify user phone + * Resend code to verify user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceResendPhoneCodeRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceResendPhoneCodeResponse @@ -1751,8 +1801,8 @@ private BetaUserServiceResendPhoneCodeResponse resendPhoneCode(BetaUserServiceRe /** - * RetrieveIdentityProviderIntent - * Retrieve the information returned by the identity provider Retrieve the information returned by the identity provider for registration or updating an existing user with new information. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Retrieve the information returned by the identity provider + * Retrieve the information returned by the identity provider for registration or updating an existing user with new information. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRetrieveIdentityProviderIntentRequest (required) * @return BetaUserServiceRetrieveIdentityProviderIntentResponse * @throws ApiException if fails to make API call @@ -1763,8 +1813,8 @@ public BetaUserServiceRetrieveIdentityProviderIntentResponse retrieveIdentityPro /** - * RetrieveIdentityProviderIntent - * Retrieve the information returned by the identity provider Retrieve the information returned by the identity provider for registration or updating an existing user with new information. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Retrieve the information returned by the identity provider + * Retrieve the information returned by the identity provider for registration or updating an existing user with new information. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceRetrieveIdentityProviderIntentRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceRetrieveIdentityProviderIntentResponse @@ -1824,10 +1874,20 @@ private BetaUserServiceRetrieveIdentityProviderIntentResponse retrieveIdentityPr + /** + * Change the user email (Convenience Method) + * Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServiceSetEmailResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceSetEmailResponse setEmail() throws ApiException { + return this.setEmail(new BetaUserServiceSetEmailRequest()); + } + /** - * SetEmail - * Change the user email Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Change the user email + * Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceSetEmailRequest (required) * @return BetaUserServiceSetEmailResponse * @throws ApiException if fails to make API call @@ -1838,8 +1898,8 @@ public BetaUserServiceSetEmailResponse setEmail(BetaUserServiceSetEmailRequest b /** - * SetEmail - * Change the user email Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Change the user email + * Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceSetEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceSetEmailResponse @@ -1899,10 +1959,20 @@ private BetaUserServiceSetEmailResponse setEmail(BetaUserServiceSetEmailRequest + /** + * Change password (Convenience Method) + * Change the password of a user with either a verification code or the current password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServiceSetPasswordResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceSetPasswordResponse setPassword() throws ApiException { + return this.setPassword(new BetaUserServiceSetPasswordRequest()); + } + /** - * SetPassword - * Change password Change the password of a user with either a verification code or the current password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Change password + * Change the password of a user with either a verification code or the current password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceSetPasswordRequest (required) * @return BetaUserServiceSetPasswordResponse * @throws ApiException if fails to make API call @@ -1913,8 +1983,8 @@ public BetaUserServiceSetPasswordResponse setPassword(BetaUserServiceSetPassword /** - * SetPassword - * Change password Change the password of a user with either a verification code or the current password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Change password + * Change the password of a user with either a verification code or the current password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceSetPasswordRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceSetPasswordResponse @@ -1974,10 +2044,20 @@ private BetaUserServiceSetPasswordResponse setPassword(BetaUserServiceSetPasswor + /** + * Set the user phone (Convenience Method) + * Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServiceSetPhoneResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceSetPhoneResponse setPhone() throws ApiException { + return this.setPhone(new BetaUserServiceSetPhoneRequest()); + } + /** - * SetPhone - * Set the user phone Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Set the user phone + * Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceSetPhoneRequest (required) * @return BetaUserServiceSetPhoneResponse * @throws ApiException if fails to make API call @@ -1988,8 +2068,8 @@ public BetaUserServiceSetPhoneResponse setPhone(BetaUserServiceSetPhoneRequest b /** - * SetPhone - * Set the user phone Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Set the user phone + * Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceSetPhoneRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceSetPhoneResponse @@ -2049,10 +2129,20 @@ private BetaUserServiceSetPhoneResponse setPhone(BetaUserServiceSetPhoneRequest + /** + * Start flow with an identity provider (Convenience Method) + * Start a flow with an identity provider, for external login, registration or linking. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * @return BetaUserServiceStartIdentityProviderIntentResponse + * @throws ApiException if fails to make API call + */ + public BetaUserServiceStartIdentityProviderIntentResponse startIdentityProviderIntent() throws ApiException { + return this.startIdentityProviderIntent(new BetaUserServiceStartIdentityProviderIntentRequest()); + } + /** - * StartIdentityProviderIntent - * Start flow with an identity provider Start a flow with an identity provider, for external login, registration or linking. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start flow with an identity provider + * Start a flow with an identity provider, for external login, registration or linking. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceStartIdentityProviderIntentRequest (required) * @return BetaUserServiceStartIdentityProviderIntentResponse * @throws ApiException if fails to make API call @@ -2063,8 +2153,8 @@ public BetaUserServiceStartIdentityProviderIntentResponse startIdentityProviderI /** - * StartIdentityProviderIntent - * Start flow with an identity provider Start a flow with an identity provider, for external login, registration or linking. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Start flow with an identity provider + * Start a flow with an identity provider, for external login, registration or linking. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceStartIdentityProviderIntentRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceStartIdentityProviderIntentResponse @@ -2126,8 +2216,8 @@ private BetaUserServiceStartIdentityProviderIntentResponse startIdentityProvider /** - * UnlockUser - * Unlock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Unlock user + * The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceUnlockUserRequest (required) * @return BetaUserServiceUnlockUserResponse * @throws ApiException if fails to make API call @@ -2138,8 +2228,8 @@ public BetaUserServiceUnlockUserResponse unlockUser(BetaUserServiceUnlockUserReq /** - * UnlockUser - * Unlock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Unlock user + * The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceUnlockUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceUnlockUserResponse @@ -2201,8 +2291,8 @@ private BetaUserServiceUnlockUserResponse unlockUser(BetaUserServiceUnlockUserRe /** - * UpdateHumanUser - * Update User Update all information from a user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Update User + * Update all information from a user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceUpdateHumanUserRequest (required) * @return BetaUserServiceUpdateHumanUserResponse * @throws ApiException if fails to make API call @@ -2213,8 +2303,8 @@ public BetaUserServiceUpdateHumanUserResponse updateHumanUser(BetaUserServiceUpd /** - * UpdateHumanUser - * Update User Update all information from a user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Update User + * Update all information from a user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceUpdateHumanUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceUpdateHumanUserResponse @@ -2276,8 +2366,8 @@ private BetaUserServiceUpdateHumanUserResponse updateHumanUser(BetaUserServiceUp /** - * VerifyEmail - * Verify the email Verify the email with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify the email + * Verify the email with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyEmailRequest (required) * @return BetaUserServiceVerifyEmailResponse * @throws ApiException if fails to make API call @@ -2288,8 +2378,8 @@ public BetaUserServiceVerifyEmailResponse verifyEmail(BetaUserServiceVerifyEmail /** - * VerifyEmail - * Verify the email Verify the email with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify the email + * Verify the email with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceVerifyEmailResponse @@ -2351,8 +2441,8 @@ private BetaUserServiceVerifyEmailResponse verifyEmail(BetaUserServiceVerifyEmai /** - * VerifyPasskeyRegistration - * Verify a passkey for a user Verify the passkey registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify a passkey for a user + * Verify the passkey registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyPasskeyRegistrationRequest (required) * @return BetaUserServiceVerifyPasskeyRegistrationResponse * @throws ApiException if fails to make API call @@ -2363,8 +2453,8 @@ public BetaUserServiceVerifyPasskeyRegistrationResponse verifyPasskeyRegistratio /** - * VerifyPasskeyRegistration - * Verify a passkey for a user Verify the passkey registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify a passkey for a user + * Verify the passkey registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyPasskeyRegistrationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceVerifyPasskeyRegistrationResponse @@ -2426,8 +2516,8 @@ private BetaUserServiceVerifyPasskeyRegistrationResponse verifyPasskeyRegistrati /** - * VerifyPhone - * Verify the phone Verify the phone with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify the phone + * Verify the phone with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyPhoneRequest (required) * @return BetaUserServiceVerifyPhoneResponse * @throws ApiException if fails to make API call @@ -2438,8 +2528,8 @@ public BetaUserServiceVerifyPhoneResponse verifyPhone(BetaUserServiceVerifyPhone /** - * VerifyPhone - * Verify the phone Verify the phone with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify the phone + * Verify the phone with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyPhoneRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceVerifyPhoneResponse @@ -2501,8 +2591,8 @@ private BetaUserServiceVerifyPhoneResponse verifyPhone(BetaUserServiceVerifyPhon /** - * VerifyTOTPRegistration - * Verify a TOTP generator for a user Verify the TOTP registration with a generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify a TOTP generator for a user + * Verify the TOTP registration with a generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyTOTPRegistrationRequest (required) * @return BetaUserServiceVerifyTOTPRegistrationResponse * @throws ApiException if fails to make API call @@ -2513,8 +2603,8 @@ public BetaUserServiceVerifyTOTPRegistrationResponse verifyTOTPRegistration(Beta /** - * VerifyTOTPRegistration - * Verify a TOTP generator for a user Verify the TOTP registration with a generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify a TOTP generator for a user + * Verify the TOTP registration with a generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyTOTPRegistrationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceVerifyTOTPRegistrationResponse @@ -2576,8 +2666,8 @@ private BetaUserServiceVerifyTOTPRegistrationResponse verifyTOTPRegistration(Bet /** - * VerifyU2FRegistration - * Verify a u2f token for a user Verify the u2f token registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify a u2f token for a user + * Verify the u2f token registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyU2FRegistrationRequest (required) * @return BetaUserServiceVerifyU2FRegistrationResponse * @throws ApiException if fails to make API call @@ -2588,8 +2678,8 @@ public BetaUserServiceVerifyU2FRegistrationResponse verifyU2FRegistration(BetaUs /** - * VerifyU2FRegistration - * Verify a u2f token for a user Verify the u2f token registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + * Verify a u2f token for a user + * Verify the u2f token registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). * @param betaUserServiceVerifyU2FRegistrationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaUserServiceVerifyU2FRegistrationResponse diff --git a/src/main/java/com/zitadel/api/BetaWebKeyServiceApi.java b/src/main/java/com/zitadel/api/BetaWebKeyServiceApi.java index a1ba4c8..f9834e2 100644 --- a/src/main/java/com/zitadel/api/BetaWebKeyServiceApi.java +++ b/src/main/java/com/zitadel/api/BetaWebKeyServiceApi.java @@ -40,8 +40,8 @@ public BetaWebKeyServiceApi(ApiClient apiClient) { /** - * ActivateWebKey - * Activate Web Key Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Activate Web Key + * Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param betaWebKeyServiceActivateWebKeyRequest (required) * @return BetaWebKeyServiceActivateWebKeyResponse * @throws ApiException if fails to make API call @@ -52,8 +52,8 @@ public BetaWebKeyServiceActivateWebKeyResponse activateWebKey(BetaWebKeyServiceA /** - * ActivateWebKey - * Activate Web Key Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Activate Web Key + * Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param betaWebKeyServiceActivateWebKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaWebKeyServiceActivateWebKeyResponse @@ -115,8 +115,8 @@ private BetaWebKeyServiceActivateWebKeyResponse activateWebKey(BetaWebKeyService /** - * CreateWebKey - * Create Web Key Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Create Web Key + * Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param betaWebKeyServiceCreateWebKeyRequest (required) * @return BetaWebKeyServiceCreateWebKeyResponse * @throws ApiException if fails to make API call @@ -127,8 +127,8 @@ public BetaWebKeyServiceCreateWebKeyResponse createWebKey(BetaWebKeyServiceCreat /** - * CreateWebKey - * Create Web Key Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Create Web Key + * Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param betaWebKeyServiceCreateWebKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaWebKeyServiceCreateWebKeyResponse @@ -190,8 +190,8 @@ private BetaWebKeyServiceCreateWebKeyResponse createWebKey(BetaWebKeyServiceCrea /** - * DeleteWebKey - * Delete Web Key Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` + * Delete Web Key + * Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` * @param betaWebKeyServiceDeleteWebKeyRequest (required) * @return BetaWebKeyServiceDeleteWebKeyResponse * @throws ApiException if fails to make API call @@ -202,8 +202,8 @@ public BetaWebKeyServiceDeleteWebKeyResponse deleteWebKey(BetaWebKeyServiceDelet /** - * DeleteWebKey - * Delete Web Key Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` + * Delete Web Key + * Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` * @param betaWebKeyServiceDeleteWebKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return BetaWebKeyServiceDeleteWebKeyResponse @@ -264,8 +264,8 @@ private BetaWebKeyServiceDeleteWebKeyResponse deleteWebKey(BetaWebKeyServiceDele /** - * ListWebKeys (Convenience Method) - * List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + * List Web Keys (Convenience Method) + * List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` * @return BetaWebKeyServiceListWebKeysResponse * @throws ApiException if fails to make API call */ @@ -275,8 +275,8 @@ public BetaWebKeyServiceListWebKeysResponse listWebKeys() throws ApiException { /** - * ListWebKeys - * List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + * List Web Keys + * List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` * @param body (required) * @return BetaWebKeyServiceListWebKeysResponse * @throws ApiException if fails to make API call @@ -287,8 +287,8 @@ public BetaWebKeyServiceListWebKeysResponse listWebKeys(Object body) throws ApiE /** - * ListWebKeys - * List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + * List Web Keys + * List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return BetaWebKeyServiceListWebKeysResponse diff --git a/src/main/java/com/zitadel/api/FeatureServiceApi.java b/src/main/java/com/zitadel/api/FeatureServiceApi.java index 9199616..5ee21ab 100644 --- a/src/main/java/com/zitadel/api/FeatureServiceApi.java +++ b/src/main/java/com/zitadel/api/FeatureServiceApi.java @@ -54,8 +54,8 @@ public FeatureServiceApi(ApiClient apiClient) { /** - * GetInstanceFeatures - * Get Instance Features Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none + * Get Instance Features + * Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none * @param featureServiceGetInstanceFeaturesRequest (required) * @return FeatureServiceGetInstanceFeaturesResponse * @throws ApiException if fails to make API call @@ -66,8 +66,8 @@ public FeatureServiceGetInstanceFeaturesResponse getInstanceFeatures(FeatureServ /** - * GetInstanceFeatures - * Get Instance Features Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none + * Get Instance Features + * Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none * @param featureServiceGetInstanceFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceGetInstanceFeaturesResponse @@ -129,8 +129,8 @@ private FeatureServiceGetInstanceFeaturesResponse getInstanceFeatures(FeatureSer /** - * GetOrganizationFeatures - * Get Organization Features Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to + * Get Organization Features + * Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to * @param featureServiceGetOrganizationFeaturesRequest (required) * @return FeatureServiceGetOrganizationFeaturesResponse * @throws ApiException if fails to make API call @@ -141,8 +141,8 @@ public FeatureServiceGetOrganizationFeaturesResponse getOrganizationFeatures(Fea /** - * GetOrganizationFeatures - * Get Organization Features Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to + * Get Organization Features + * Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to * @param featureServiceGetOrganizationFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceGetOrganizationFeaturesResponse @@ -203,8 +203,8 @@ private FeatureServiceGetOrganizationFeaturesResponse getOrganizationFeatures(Fe /** - * GetSystemFeatures (Convenience Method) - * Get System Features Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none + * Get System Features (Convenience Method) + * Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none * @return FeatureServiceGetSystemFeaturesResponse * @throws ApiException if fails to make API call */ @@ -214,8 +214,8 @@ public FeatureServiceGetSystemFeaturesResponse getSystemFeatures() throws ApiExc /** - * GetSystemFeatures - * Get System Features Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none + * Get System Features + * Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none * @param body (required) * @return FeatureServiceGetSystemFeaturesResponse * @throws ApiException if fails to make API call @@ -226,8 +226,8 @@ public FeatureServiceGetSystemFeaturesResponse getSystemFeatures(Object body) th /** - * GetSystemFeatures - * Get System Features Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none + * Get System Features + * Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceGetSystemFeaturesResponse @@ -289,8 +289,8 @@ private FeatureServiceGetSystemFeaturesResponse getSystemFeatures(Object body, M /** - * GetUserFeatures - * Get User Features Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user + * Get User Features + * Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user * @param featureServiceGetUserFeaturesRequest (required) * @return FeatureServiceGetUserFeaturesResponse * @throws ApiException if fails to make API call @@ -301,8 +301,8 @@ public FeatureServiceGetUserFeaturesResponse getUserFeatures(FeatureServiceGetUs /** - * GetUserFeatures - * Get User Features Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user + * Get User Features + * Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user * @param featureServiceGetUserFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceGetUserFeaturesResponse @@ -363,8 +363,8 @@ private FeatureServiceGetUserFeaturesResponse getUserFeatures(FeatureServiceGetU /** - * ResetInstanceFeatures (Convenience Method) - * Reset Instance Features Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete + * Reset Instance Features (Convenience Method) + * Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete * @return FeatureServiceResetInstanceFeaturesResponse * @throws ApiException if fails to make API call */ @@ -374,8 +374,8 @@ public FeatureServiceResetInstanceFeaturesResponse resetInstanceFeatures() throw /** - * ResetInstanceFeatures - * Reset Instance Features Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete + * Reset Instance Features + * Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete * @param body (required) * @return FeatureServiceResetInstanceFeaturesResponse * @throws ApiException if fails to make API call @@ -386,8 +386,8 @@ public FeatureServiceResetInstanceFeaturesResponse resetInstanceFeatures(Object /** - * ResetInstanceFeatures - * Reset Instance Features Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete + * Reset Instance Features + * Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceResetInstanceFeaturesResponse @@ -449,8 +449,8 @@ private FeatureServiceResetInstanceFeaturesResponse resetInstanceFeatures(Object /** - * ResetOrganizationFeatures - * Reset Organization Features Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete + * Reset Organization Features + * Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete * @param featureServiceResetOrganizationFeaturesRequest (required) * @return FeatureServiceResetOrganizationFeaturesResponse * @throws ApiException if fails to make API call @@ -461,8 +461,8 @@ public FeatureServiceResetOrganizationFeaturesResponse resetOrganizationFeatures /** - * ResetOrganizationFeatures - * Reset Organization Features Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete + * Reset Organization Features + * Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete * @param featureServiceResetOrganizationFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceResetOrganizationFeaturesResponse @@ -523,8 +523,8 @@ private FeatureServiceResetOrganizationFeaturesResponse resetOrganizationFeature /** - * ResetSystemFeatures (Convenience Method) - * Reset System Features Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete + * Reset System Features (Convenience Method) + * Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete * @return FeatureServiceResetSystemFeaturesResponse * @throws ApiException if fails to make API call */ @@ -534,8 +534,8 @@ public FeatureServiceResetSystemFeaturesResponse resetSystemFeatures() throws Ap /** - * ResetSystemFeatures - * Reset System Features Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete + * Reset System Features + * Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete * @param body (required) * @return FeatureServiceResetSystemFeaturesResponse * @throws ApiException if fails to make API call @@ -546,8 +546,8 @@ public FeatureServiceResetSystemFeaturesResponse resetSystemFeatures(Object body /** - * ResetSystemFeatures - * Reset System Features Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete + * Reset System Features + * Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceResetSystemFeaturesResponse @@ -609,8 +609,8 @@ private FeatureServiceResetSystemFeaturesResponse resetSystemFeatures(Object bod /** - * ResetUserFeatures - * Reset User Features Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete + * Reset User Features + * Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete * @param featureServiceResetUserFeaturesRequest (required) * @return FeatureServiceResetUserFeaturesResponse * @throws ApiException if fails to make API call @@ -621,8 +621,8 @@ public FeatureServiceResetUserFeaturesResponse resetUserFeatures(FeatureServiceR /** - * ResetUserFeatures - * Reset User Features Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete + * Reset User Features + * Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete * @param featureServiceResetUserFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceResetUserFeaturesResponse @@ -684,8 +684,8 @@ private FeatureServiceResetUserFeaturesResponse resetUserFeatures(FeatureService /** - * SetInstanceFeatures - * Set Instance Features Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write + * Set Instance Features + * Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write * @param featureServiceSetInstanceFeaturesRequest (required) * @return FeatureServiceSetInstanceFeaturesResponse * @throws ApiException if fails to make API call @@ -696,8 +696,8 @@ public FeatureServiceSetInstanceFeaturesResponse setInstanceFeatures(FeatureServ /** - * SetInstanceFeatures - * Set Instance Features Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write + * Set Instance Features + * Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write * @param featureServiceSetInstanceFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceSetInstanceFeaturesResponse @@ -759,8 +759,8 @@ private FeatureServiceSetInstanceFeaturesResponse setInstanceFeatures(FeatureSer /** - * SetOrganizationFeatures - * Set Organization Features Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write + * Set Organization Features + * Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write * @param featureServiceSetOrganizationFeaturesRequest (required) * @return FeatureServiceSetOrganizationFeaturesResponse * @throws ApiException if fails to make API call @@ -771,8 +771,8 @@ public FeatureServiceSetOrganizationFeaturesResponse setOrganizationFeatures(Fea /** - * SetOrganizationFeatures - * Set Organization Features Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write + * Set Organization Features + * Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write * @param featureServiceSetOrganizationFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceSetOrganizationFeaturesResponse @@ -834,8 +834,8 @@ private FeatureServiceSetOrganizationFeaturesResponse setOrganizationFeatures(Fe /** - * SetSystemFeatures - * Set System Features Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write + * Set System Features + * Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write * @param featureServiceSetSystemFeaturesRequest (required) * @return FeatureServiceSetSystemFeaturesResponse * @throws ApiException if fails to make API call @@ -846,8 +846,8 @@ public FeatureServiceSetSystemFeaturesResponse setSystemFeatures(FeatureServiceS /** - * SetSystemFeatures - * Set System Features Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write + * Set System Features + * Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write * @param featureServiceSetSystemFeaturesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceSetSystemFeaturesResponse @@ -909,8 +909,8 @@ private FeatureServiceSetSystemFeaturesResponse setSystemFeatures(FeatureService /** - * SetUserFeatures - * Set User Features Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write + * Set User Features + * Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write * @param featureServiceSetUserFeatureRequest (required) * @return FeatureServiceSetUserFeaturesResponse * @throws ApiException if fails to make API call @@ -921,8 +921,8 @@ public FeatureServiceSetUserFeaturesResponse setUserFeatures(FeatureServiceSetUs /** - * SetUserFeatures - * Set User Features Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write + * Set User Features + * Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write * @param featureServiceSetUserFeatureRequest (required) * @param additionalHeaders additionalHeaders for this call * @return FeatureServiceSetUserFeaturesResponse diff --git a/src/main/java/com/zitadel/api/IdentityProviderServiceApi.java b/src/main/java/com/zitadel/api/IdentityProviderServiceApi.java index ad0f46d..2acd8a2 100644 --- a/src/main/java/com/zitadel/api/IdentityProviderServiceApi.java +++ b/src/main/java/com/zitadel/api/IdentityProviderServiceApi.java @@ -35,8 +35,8 @@ public IdentityProviderServiceApi(ApiClient apiClient) { /** - * GetIDPByID - * Get identity provider (IdP) by ID Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. + * Get identity provider (IdP) by ID + * Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. * @param identityProviderServiceGetIDPByIDRequest (required) * @return IdentityProviderServiceGetIDPByIDResponse * @throws ApiException if fails to make API call @@ -47,8 +47,8 @@ public IdentityProviderServiceGetIDPByIDResponse getIDPByID(IdentityProviderServ /** - * GetIDPByID - * Get identity provider (IdP) by ID Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. + * Get identity provider (IdP) by ID + * Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. * @param identityProviderServiceGetIDPByIDRequest (required) * @param additionalHeaders additionalHeaders for this call * @return IdentityProviderServiceGetIDPByIDResponse diff --git a/src/main/java/com/zitadel/api/OidcServiceApi.java b/src/main/java/com/zitadel/api/OidcServiceApi.java index 0dc1860..9766a7f 100644 --- a/src/main/java/com/zitadel/api/OidcServiceApi.java +++ b/src/main/java/com/zitadel/api/OidcServiceApi.java @@ -38,10 +38,20 @@ public OidcServiceApi(ApiClient apiClient) { + /** + * Authorize or deny device authorization (Convenience Method) + * Authorize or deny the device authorization request based on the provided device authorization id. + * @return Object + * @throws ApiException if fails to make API call + */ + public Object authorizeOrDenyDeviceAuthorization() throws ApiException { + return this.authorizeOrDenyDeviceAuthorization(new OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest()); + } + /** - * AuthorizeOrDenyDeviceAuthorization - * Authorize or deny device authorization Authorize or deny the device authorization request based on the provided device authorization id. + * Authorize or deny device authorization + * Authorize or deny the device authorization request based on the provided device authorization id. * @param oiDCServiceAuthorizeOrDenyDeviceAuthorizationRequest (required) * @return Object * @throws ApiException if fails to make API call @@ -52,8 +62,8 @@ public Object authorizeOrDenyDeviceAuthorization(OIDCServiceAuthorizeOrDenyDevic /** - * AuthorizeOrDenyDeviceAuthorization - * Authorize or deny device authorization Authorize or deny the device authorization request based on the provided device authorization id. + * Authorize or deny device authorization + * Authorize or deny the device authorization request based on the provided device authorization id. * @param oiDCServiceAuthorizeOrDenyDeviceAuthorizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return Object @@ -113,6 +123,16 @@ private Object authorizeOrDenyDeviceAuthorization(OIDCServiceAuthorizeOrDenyDevi + /** + * CreateCallback (Convenience Method) + * + * @return OIDCServiceCreateCallbackResponse + * @throws ApiException if fails to make API call + */ + public OIDCServiceCreateCallbackResponse createCallback() throws ApiException { + return this.createCallback(new OIDCServiceCreateCallbackRequest()); + } + /** * CreateCallback @@ -265,8 +285,8 @@ private OIDCServiceGetAuthRequestResponse getAuthRequest(OIDCServiceGetAuthReque /** - * GetDeviceAuthorizationRequest - * Get device authorization request Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. + * Get device authorization request + * Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. * @param oiDCServiceGetDeviceAuthorizationRequestRequest (required) * @return OIDCServiceGetDeviceAuthorizationRequestResponse * @throws ApiException if fails to make API call @@ -277,8 +297,8 @@ public OIDCServiceGetDeviceAuthorizationRequestResponse getDeviceAuthorizationRe /** - * GetDeviceAuthorizationRequest - * Get device authorization request Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. + * Get device authorization request + * Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. * @param oiDCServiceGetDeviceAuthorizationRequestRequest (required) * @param additionalHeaders additionalHeaders for this call * @return OIDCServiceGetDeviceAuthorizationRequestResponse diff --git a/src/main/java/com/zitadel/api/OrganizationServiceApi.java b/src/main/java/com/zitadel/api/OrganizationServiceApi.java index 9e468d2..1ef0440 100644 --- a/src/main/java/com/zitadel/api/OrganizationServiceApi.java +++ b/src/main/java/com/zitadel/api/OrganizationServiceApi.java @@ -37,8 +37,8 @@ public OrganizationServiceApi(ApiClient apiClient) { /** - * AddOrganization - * Create an Organization Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. + * Create an Organization + * Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. * @param organizationServiceAddOrganizationRequest (required) * @return OrganizationServiceAddOrganizationResponse * @throws ApiException if fails to make API call @@ -49,8 +49,8 @@ public OrganizationServiceAddOrganizationResponse addOrganization(OrganizationSe /** - * AddOrganization - * Create an Organization Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. + * Create an Organization + * Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. * @param organizationServiceAddOrganizationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return OrganizationServiceAddOrganizationResponse @@ -112,8 +112,8 @@ private OrganizationServiceAddOrganizationResponse addOrganization(OrganizationS /** - * ListOrganizations - * Search Organizations Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. + * Search Organizations + * Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. * @param organizationServiceListOrganizationsRequest (required) * @return OrganizationServiceListOrganizationsResponse * @throws ApiException if fails to make API call @@ -124,8 +124,8 @@ public OrganizationServiceListOrganizationsResponse listOrganizations(Organizati /** - * ListOrganizations - * Search Organizations Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. + * Search Organizations + * Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. * @param organizationServiceListOrganizationsRequest (required) * @param additionalHeaders additionalHeaders for this call * @return OrganizationServiceListOrganizationsResponse diff --git a/src/main/java/com/zitadel/api/SamlServiceApi.java b/src/main/java/com/zitadel/api/SamlServiceApi.java index 7596e53..0aa8503 100644 --- a/src/main/java/com/zitadel/api/SamlServiceApi.java +++ b/src/main/java/com/zitadel/api/SamlServiceApi.java @@ -35,6 +35,16 @@ public SamlServiceApi(ApiClient apiClient) { + /** + * CreateResponse (Convenience Method) + * + * @return SAMLServiceCreateResponseResponse + * @throws ApiException if fails to make API call + */ + public SAMLServiceCreateResponseResponse createResponse() throws ApiException { + return this.createResponse(new SAMLServiceCreateResponseRequest()); + } + /** * CreateResponse diff --git a/src/main/java/com/zitadel/api/SessionServiceApi.java b/src/main/java/com/zitadel/api/SessionServiceApi.java index c9ee647..ae76d13 100644 --- a/src/main/java/com/zitadel/api/SessionServiceApi.java +++ b/src/main/java/com/zitadel/api/SessionServiceApi.java @@ -43,7 +43,7 @@ public SessionServiceApi(ApiClient apiClient) { /** - * CreateSession + * Create a new session * Create a new session * @param sessionServiceCreateSessionRequest (required) * @return SessionServiceCreateSessionResponse @@ -55,7 +55,7 @@ public SessionServiceCreateSessionResponse createSession(SessionServiceCreateSes /** - * CreateSession + * Create a new session * Create a new session * @param sessionServiceCreateSessionRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -118,7 +118,7 @@ private SessionServiceCreateSessionResponse createSession(SessionServiceCreateSe /** - * DeleteSession + * Terminate a session * Terminate a session * @param sessionServiceDeleteSessionRequest (required) * @return SessionServiceDeleteSessionResponse @@ -130,7 +130,7 @@ public SessionServiceDeleteSessionResponse deleteSession(SessionServiceDeleteSes /** - * DeleteSession + * Terminate a session * Terminate a session * @param sessionServiceDeleteSessionRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -193,7 +193,7 @@ private SessionServiceDeleteSessionResponse deleteSession(SessionServiceDeleteSe /** - * GetSession + * GetSession a session * GetSession a session * @param sessionServiceGetSessionRequest (required) * @return SessionServiceGetSessionResponse @@ -205,7 +205,7 @@ public SessionServiceGetSessionResponse getSession(SessionServiceGetSessionReque /** - * GetSession + * GetSession a session * GetSession a session * @param sessionServiceGetSessionRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -268,7 +268,7 @@ private SessionServiceGetSessionResponse getSession(SessionServiceGetSessionRequ /** - * ListSessions + * Search sessions * Search sessions * @param sessionServiceListSessionsRequest (required) * @return SessionServiceListSessionsResponse @@ -280,7 +280,7 @@ public SessionServiceListSessionsResponse listSessions(SessionServiceListSession /** - * ListSessions + * Search sessions * Search sessions * @param sessionServiceListSessionsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -343,7 +343,7 @@ private SessionServiceListSessionsResponse listSessions(SessionServiceListSessio /** - * SetSession + * Update a session * Update a session * @param sessionServiceSetSessionRequest (required) * @return SessionServiceSetSessionResponse @@ -355,7 +355,7 @@ public SessionServiceSetSessionResponse setSession(SessionServiceSetSessionReque /** - * SetSession + * Update a session * Update a session * @param sessionServiceSetSessionRequest (required) * @param additionalHeaders additionalHeaders for this call diff --git a/src/main/java/com/zitadel/api/SettingsServiceApi.java b/src/main/java/com/zitadel/api/SettingsServiceApi.java index 8724bce..e857c80 100644 --- a/src/main/java/com/zitadel/api/SettingsServiceApi.java +++ b/src/main/java/com/zitadel/api/SettingsServiceApi.java @@ -57,7 +57,7 @@ public SettingsServiceApi(ApiClient apiClient) { /** - * GetActiveIdentityProviders + * Get the current active identity providers * Get the current active identity providers * @param settingsServiceGetActiveIdentityProvidersRequest (required) * @return SettingsServiceGetActiveIdentityProvidersResponse @@ -69,7 +69,7 @@ public SettingsServiceGetActiveIdentityProvidersResponse getActiveIdentityProvid /** - * GetActiveIdentityProviders + * Get the current active identity providers * Get the current active identity providers * @param settingsServiceGetActiveIdentityProvidersRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -132,7 +132,7 @@ private SettingsServiceGetActiveIdentityProvidersResponse getActiveIdentityProvi /** - * GetBrandingSettings + * Get the current active branding settings * Get the current active branding settings * @param settingsServiceGetBrandingSettingsRequest (required) * @return SettingsServiceGetBrandingSettingsResponse @@ -144,7 +144,7 @@ public SettingsServiceGetBrandingSettingsResponse getBrandingSettings(SettingsSe /** - * GetBrandingSettings + * Get the current active branding settings * Get the current active branding settings * @param settingsServiceGetBrandingSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -207,7 +207,7 @@ private SettingsServiceGetBrandingSettingsResponse getBrandingSettings(SettingsS /** - * GetDomainSettings + * Get the domain settings * Get the domain settings * @param settingsServiceGetDomainSettingsRequest (required) * @return SettingsServiceGetDomainSettingsResponse @@ -219,7 +219,7 @@ public SettingsServiceGetDomainSettingsResponse getDomainSettings(SettingsServic /** - * GetDomainSettings + * Get the domain settings * Get the domain settings * @param settingsServiceGetDomainSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -281,7 +281,7 @@ private SettingsServiceGetDomainSettingsResponse getDomainSettings(SettingsServi /** - * GetGeneralSettings (Convenience Method) + * Get basic information over the instance (Convenience Method) * Get basic information over the instance * @return SettingsServiceGetGeneralSettingsResponse * @throws ApiException if fails to make API call @@ -292,7 +292,7 @@ public SettingsServiceGetGeneralSettingsResponse getGeneralSettings() throws Api /** - * GetGeneralSettings + * Get basic information over the instance * Get basic information over the instance * @param body (required) * @return SettingsServiceGetGeneralSettingsResponse @@ -304,7 +304,7 @@ public SettingsServiceGetGeneralSettingsResponse getGeneralSettings(Object body) /** - * GetGeneralSettings + * Get basic information over the instance * Get basic information over the instance * @param body (required) * @param additionalHeaders additionalHeaders for this call @@ -365,10 +365,20 @@ private SettingsServiceGetGeneralSettingsResponse getGeneralSettings(Object body + /** + * Get Hosted Login Translation (Convenience Method) + * Returns the translations in the requested locale for the hosted login. The translations returned are based on the input level specified (system, instance or organization). If the requested level doesn't contain all translations, and ignore_inheritance is set to false, a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation, which could be in the default language if the one of the locale is missing on all levels. The etag returned in the response represents the hash of the translations as they are stored on DB and its reliable only if ignore_inheritance = true. Required permissions: - `iam.policy.read` + * @return SettingsServiceGetHostedLoginTranslationResponse + * @throws ApiException if fails to make API call + */ + public SettingsServiceGetHostedLoginTranslationResponse getHostedLoginTranslation() throws ApiException { + return this.getHostedLoginTranslation(new SettingsServiceGetHostedLoginTranslationRequest()); + } + /** - * GetHostedLoginTranslation - * Get Hosted Login Translation Returns the translations in the requested locale for the hosted login. The translations returned are based on the input level specified (system, instance or organization). If the requested level doesn't contain all translations, and ignore_inheritance is set to false, a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation, which could be in the default language if the one of the locale is missing on all levels. The etag returned in the response represents the hash of the translations as they are stored on DB and its reliable only if ignore_inheritance = true. Required permissions: - `iam.policy.read` + * Get Hosted Login Translation + * Returns the translations in the requested locale for the hosted login. The translations returned are based on the input level specified (system, instance or organization). If the requested level doesn't contain all translations, and ignore_inheritance is set to false, a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation, which could be in the default language if the one of the locale is missing on all levels. The etag returned in the response represents the hash of the translations as they are stored on DB and its reliable only if ignore_inheritance = true. Required permissions: - `iam.policy.read` * @param settingsServiceGetHostedLoginTranslationRequest (required) * @return SettingsServiceGetHostedLoginTranslationResponse * @throws ApiException if fails to make API call @@ -379,8 +389,8 @@ public SettingsServiceGetHostedLoginTranslationResponse getHostedLoginTranslatio /** - * GetHostedLoginTranslation - * Get Hosted Login Translation Returns the translations in the requested locale for the hosted login. The translations returned are based on the input level specified (system, instance or organization). If the requested level doesn't contain all translations, and ignore_inheritance is set to false, a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation, which could be in the default language if the one of the locale is missing on all levels. The etag returned in the response represents the hash of the translations as they are stored on DB and its reliable only if ignore_inheritance = true. Required permissions: - `iam.policy.read` + * Get Hosted Login Translation + * Returns the translations in the requested locale for the hosted login. The translations returned are based on the input level specified (system, instance or organization). If the requested level doesn't contain all translations, and ignore_inheritance is set to false, a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation, which could be in the default language if the one of the locale is missing on all levels. The etag returned in the response represents the hash of the translations as they are stored on DB and its reliable only if ignore_inheritance = true. Required permissions: - `iam.policy.read` * @param settingsServiceGetHostedLoginTranslationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return SettingsServiceGetHostedLoginTranslationResponse @@ -442,7 +452,7 @@ private SettingsServiceGetHostedLoginTranslationResponse getHostedLoginTranslati /** - * GetLegalAndSupportSettings + * Get the legal and support settings * Get the legal and support settings * @param settingsServiceGetLegalAndSupportSettingsRequest (required) * @return SettingsServiceGetLegalAndSupportSettingsResponse @@ -454,7 +464,7 @@ public SettingsServiceGetLegalAndSupportSettingsResponse getLegalAndSupportSetti /** - * GetLegalAndSupportSettings + * Get the legal and support settings * Get the legal and support settings * @param settingsServiceGetLegalAndSupportSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -517,7 +527,7 @@ private SettingsServiceGetLegalAndSupportSettingsResponse getLegalAndSupportSett /** - * GetLockoutSettings + * Get the lockout settings * Get the lockout settings * @param settingsServiceGetLockoutSettingsRequest (required) * @return SettingsServiceGetLockoutSettingsResponse @@ -529,7 +539,7 @@ public SettingsServiceGetLockoutSettingsResponse getLockoutSettings(SettingsServ /** - * GetLockoutSettings + * Get the lockout settings * Get the lockout settings * @param settingsServiceGetLockoutSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -592,7 +602,7 @@ private SettingsServiceGetLockoutSettingsResponse getLockoutSettings(SettingsSer /** - * GetLoginSettings + * Get the login settings * Get the login settings * @param settingsServiceGetLoginSettingsRequest (required) * @return SettingsServiceGetLoginSettingsResponse @@ -604,7 +614,7 @@ public SettingsServiceGetLoginSettingsResponse getLoginSettings(SettingsServiceG /** - * GetLoginSettings + * Get the login settings * Get the login settings * @param settingsServiceGetLoginSettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -667,7 +677,7 @@ private SettingsServiceGetLoginSettingsResponse getLoginSettings(SettingsService /** - * GetPasswordComplexitySettings + * Get the password complexity settings * Get the password complexity settings * @param settingsServiceGetPasswordComplexitySettingsRequest (required) * @return SettingsServiceGetPasswordComplexitySettingsResponse @@ -679,7 +689,7 @@ public SettingsServiceGetPasswordComplexitySettingsResponse getPasswordComplexit /** - * GetPasswordComplexitySettings + * Get the password complexity settings * Get the password complexity settings * @param settingsServiceGetPasswordComplexitySettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -742,7 +752,7 @@ private SettingsServiceGetPasswordComplexitySettingsResponse getPasswordComplexi /** - * GetPasswordExpirySettings + * Get the password expiry settings * Get the password expiry settings * @param settingsServiceGetPasswordExpirySettingsRequest (required) * @return SettingsServiceGetPasswordExpirySettingsResponse @@ -754,7 +764,7 @@ public SettingsServiceGetPasswordExpirySettingsResponse getPasswordExpirySetting /** - * GetPasswordExpirySettings + * Get the password expiry settings * Get the password expiry settings * @param settingsServiceGetPasswordExpirySettingsRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -816,7 +826,7 @@ private SettingsServiceGetPasswordExpirySettingsResponse getPasswordExpirySettin /** - * GetSecuritySettings (Convenience Method) + * Get the security settings (Convenience Method) * Get the security settings * @return SettingsServiceGetSecuritySettingsResponse * @throws ApiException if fails to make API call @@ -827,7 +837,7 @@ public SettingsServiceGetSecuritySettingsResponse getSecuritySettings() throws A /** - * GetSecuritySettings + * Get the security settings * Get the security settings * @param body (required) * @return SettingsServiceGetSecuritySettingsResponse @@ -839,7 +849,7 @@ public SettingsServiceGetSecuritySettingsResponse getSecuritySettings(Object bod /** - * GetSecuritySettings + * Get the security settings * Get the security settings * @param body (required) * @param additionalHeaders additionalHeaders for this call @@ -900,10 +910,20 @@ private SettingsServiceGetSecuritySettingsResponse getSecuritySettings(Object bo + /** + * Set Hosted Login Translation (Convenience Method) + * Sets the input translations at the specified level (instance or organization) for the input language. Required permissions: - `iam.policy.write` + * @return SettingsServiceSetHostedLoginTranslationResponse + * @throws ApiException if fails to make API call + */ + public SettingsServiceSetHostedLoginTranslationResponse setHostedLoginTranslation() throws ApiException { + return this.setHostedLoginTranslation(new SettingsServiceSetHostedLoginTranslationRequest()); + } + /** - * SetHostedLoginTranslation - * Set Hosted Login Translation Sets the input translations at the specified level (instance or organization) for the input language. Required permissions: - `iam.policy.write` + * Set Hosted Login Translation + * Sets the input translations at the specified level (instance or organization) for the input language. Required permissions: - `iam.policy.write` * @param settingsServiceSetHostedLoginTranslationRequest (required) * @return SettingsServiceSetHostedLoginTranslationResponse * @throws ApiException if fails to make API call @@ -914,8 +934,8 @@ public SettingsServiceSetHostedLoginTranslationResponse setHostedLoginTranslatio /** - * SetHostedLoginTranslation - * Set Hosted Login Translation Sets the input translations at the specified level (instance or organization) for the input language. Required permissions: - `iam.policy.write` + * Set Hosted Login Translation + * Sets the input translations at the specified level (instance or organization) for the input language. Required permissions: - `iam.policy.write` * @param settingsServiceSetHostedLoginTranslationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return SettingsServiceSetHostedLoginTranslationResponse @@ -977,7 +997,7 @@ private SettingsServiceSetHostedLoginTranslationResponse setHostedLoginTranslati /** - * SetSecuritySettings + * Set the security settings * Set the security settings * @param settingsServiceSetSecuritySettingsRequest (required) * @return SettingsServiceSetSecuritySettingsResponse @@ -989,7 +1009,7 @@ public SettingsServiceSetSecuritySettingsResponse setSecuritySettings(SettingsSe /** - * SetSecuritySettings + * Set the security settings * Set the security settings * @param settingsServiceSetSecuritySettingsRequest (required) * @param additionalHeaders additionalHeaders for this call diff --git a/src/main/java/com/zitadel/api/UserServiceApi.java b/src/main/java/com/zitadel/api/UserServiceApi.java index 8e169c3..0ae1114 100644 --- a/src/main/java/com/zitadel/api/UserServiceApi.java +++ b/src/main/java/com/zitadel/api/UserServiceApi.java @@ -147,10 +147,20 @@ public UserServiceApi(ApiClient apiClient) { + /** + * Create a new human user (Convenience Method) + * Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. + * @return UserServiceAddHumanUserResponse + * @throws ApiException if fails to make API call + */ + public UserServiceAddHumanUserResponse addHumanUser() throws ApiException { + return this.addHumanUser(new UserServiceAddHumanUserRequest()); + } + /** - * AddHumanUser - * Create a new human user Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. + * Create a new human user + * Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. * @param userServiceAddHumanUserRequest (required) * @return UserServiceAddHumanUserResponse * @throws ApiException if fails to make API call @@ -161,8 +171,8 @@ public UserServiceAddHumanUserResponse addHumanUser(UserServiceAddHumanUserReque /** - * AddHumanUser - * Create a new human user Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. + * Create a new human user + * Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. * @param userServiceAddHumanUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceAddHumanUserResponse @@ -224,8 +234,8 @@ private UserServiceAddHumanUserResponse addHumanUser(UserServiceAddHumanUserRequ /** - * AddIDPLink - * Add link to an identity provider to an user Add link to an identity provider to an user.. + * Add link to an identity provider to an user + * Add link to an identity provider to an user.. * @param userServiceAddIDPLinkRequest (required) * @return UserServiceAddIDPLinkResponse * @throws ApiException if fails to make API call @@ -236,8 +246,8 @@ public UserServiceAddIDPLinkResponse addIDPLink(UserServiceAddIDPLinkRequest use /** - * AddIDPLink - * Add link to an identity provider to an user Add link to an identity provider to an user.. + * Add link to an identity provider to an user + * Add link to an identity provider to an user.. * @param userServiceAddIDPLinkRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceAddIDPLinkResponse @@ -299,8 +309,8 @@ private UserServiceAddIDPLinkResponse addIDPLink(UserServiceAddIDPLinkRequest us /** - * AddKey - * Add a Key Add a keys that can be used to securely authenticate at the Zitadel APIs using JWT profile authentication using short-lived tokens. Make sure you store the returned key safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have keys. Required permission: - user.write + * Add a Key + * Add a keys that can be used to securely authenticate at the Zitadel APIs using JWT profile authentication using short-lived tokens. Make sure you store the returned key safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have keys. Required permission: - user.write * @param userServiceAddKeyRequest (required) * @return UserServiceAddKeyResponse * @throws ApiException if fails to make API call @@ -311,8 +321,8 @@ public UserServiceAddKeyResponse addKey(UserServiceAddKeyRequest userServiceAddK /** - * AddKey - * Add a Key Add a keys that can be used to securely authenticate at the Zitadel APIs using JWT profile authentication using short-lived tokens. Make sure you store the returned key safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have keys. Required permission: - user.write + * Add a Key + * Add a keys that can be used to securely authenticate at the Zitadel APIs using JWT profile authentication using short-lived tokens. Make sure you store the returned key safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have keys. Required permission: - user.write * @param userServiceAddKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceAddKeyResponse @@ -374,8 +384,8 @@ private UserServiceAddKeyResponse addKey(UserServiceAddKeyRequest userServiceAdd /** - * AddOTPEmail - * Add OTP Email for a user Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. + * Add OTP Email for a user + * Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. * @param userServiceAddOTPEmailRequest (required) * @return UserServiceAddOTPEmailResponse * @throws ApiException if fails to make API call @@ -386,8 +396,8 @@ public UserServiceAddOTPEmailResponse addOTPEmail(UserServiceAddOTPEmailRequest /** - * AddOTPEmail - * Add OTP Email for a user Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. + * Add OTP Email for a user + * Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. * @param userServiceAddOTPEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceAddOTPEmailResponse @@ -449,8 +459,8 @@ private UserServiceAddOTPEmailResponse addOTPEmail(UserServiceAddOTPEmailRequest /** - * AddOTPSMS - * Add OTP SMS for a user Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. + * Add OTP SMS for a user + * Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. * @param userServiceAddOTPSMSRequest (required) * @return UserServiceAddOTPSMSResponse * @throws ApiException if fails to make API call @@ -461,8 +471,8 @@ public UserServiceAddOTPSMSResponse addOTPSMS(UserServiceAddOTPSMSRequest userSe /** - * AddOTPSMS - * Add OTP SMS for a user Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. + * Add OTP SMS for a user + * Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. * @param userServiceAddOTPSMSRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceAddOTPSMSResponse @@ -524,8 +534,8 @@ private UserServiceAddOTPSMSResponse addOTPSMS(UserServiceAddOTPSMSRequest userS /** - * AddPersonalAccessToken - * Add a Personal Access Token Personal access tokens (PAT) are the easiest way to authenticate to the Zitadel APIs. Make sure you store the returned PAT safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have personal access tokens. Required permission: - user.write + * Add a Personal Access Token + * Personal access tokens (PAT) are the easiest way to authenticate to the Zitadel APIs. Make sure you store the returned PAT safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have personal access tokens. Required permission: - user.write * @param userServiceAddPersonalAccessTokenRequest (required) * @return UserServiceAddPersonalAccessTokenResponse * @throws ApiException if fails to make API call @@ -536,8 +546,8 @@ public UserServiceAddPersonalAccessTokenResponse addPersonalAccessToken(UserServ /** - * AddPersonalAccessToken - * Add a Personal Access Token Personal access tokens (PAT) are the easiest way to authenticate to the Zitadel APIs. Make sure you store the returned PAT safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have personal access tokens. Required permission: - user.write + * Add a Personal Access Token + * Personal access tokens (PAT) are the easiest way to authenticate to the Zitadel APIs. Make sure you store the returned PAT safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have personal access tokens. Required permission: - user.write * @param userServiceAddPersonalAccessTokenRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceAddPersonalAccessTokenResponse @@ -599,8 +609,8 @@ private UserServiceAddPersonalAccessTokenResponse addPersonalAccessToken(UserSer /** - * AddSecret - * Add a Users Secret Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret. Required permission: - user.write + * Add a Users Secret + * Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret. Required permission: - user.write * @param userServiceAddSecretRequest (required) * @return UserServiceAddSecretResponse * @throws ApiException if fails to make API call @@ -611,8 +621,8 @@ public UserServiceAddSecretResponse addSecret(UserServiceAddSecretRequest userSe /** - * AddSecret - * Add a Users Secret Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret. Required permission: - user.write + * Add a Users Secret + * Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret. Required permission: - user.write * @param userServiceAddSecretRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceAddSecretResponse @@ -672,10 +682,20 @@ private UserServiceAddSecretResponse addSecret(UserServiceAddSecretRequest userS + /** + * Create an invite code for a user (Convenience Method) + * Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification. + * @return UserServiceCreateInviteCodeResponse + * @throws ApiException if fails to make API call + */ + public UserServiceCreateInviteCodeResponse createInviteCode() throws ApiException { + return this.createInviteCode(new UserServiceCreateInviteCodeRequest()); + } + /** - * CreateInviteCode - * Create an invite code for a user Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification. + * Create an invite code for a user + * Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification. * @param userServiceCreateInviteCodeRequest (required) * @return UserServiceCreateInviteCodeResponse * @throws ApiException if fails to make API call @@ -686,8 +706,8 @@ public UserServiceCreateInviteCodeResponse createInviteCode(UserServiceCreateInv /** - * CreateInviteCode - * Create an invite code for a user Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification. + * Create an invite code for a user + * Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification. * @param userServiceCreateInviteCodeRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceCreateInviteCodeResponse @@ -747,10 +767,20 @@ private UserServiceCreateInviteCodeResponse createInviteCode(UserServiceCreateIn + /** + * Create a passkey registration link for a user (Convenience Method) + * Create a passkey registration link which includes a code and either return it or send it to the user.. + * @return UserServiceCreatePasskeyRegistrationLinkResponse + * @throws ApiException if fails to make API call + */ + public UserServiceCreatePasskeyRegistrationLinkResponse createPasskeyRegistrationLink() throws ApiException { + return this.createPasskeyRegistrationLink(new UserServiceCreatePasskeyRegistrationLinkRequest()); + } + /** - * CreatePasskeyRegistrationLink - * Create a passkey registration link for a user Create a passkey registration link which includes a code and either return it or send it to the user.. + * Create a passkey registration link for a user + * Create a passkey registration link which includes a code and either return it or send it to the user.. * @param userServiceCreatePasskeyRegistrationLinkRequest (required) * @return UserServiceCreatePasskeyRegistrationLinkResponse * @throws ApiException if fails to make API call @@ -761,8 +791,8 @@ public UserServiceCreatePasskeyRegistrationLinkResponse createPasskeyRegistratio /** - * CreatePasskeyRegistrationLink - * Create a passkey registration link for a user Create a passkey registration link which includes a code and either return it or send it to the user.. + * Create a passkey registration link for a user + * Create a passkey registration link which includes a code and either return it or send it to the user.. * @param userServiceCreatePasskeyRegistrationLinkRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceCreatePasskeyRegistrationLinkResponse @@ -822,10 +852,20 @@ private UserServiceCreatePasskeyRegistrationLinkResponse createPasskeyRegistrati + /** + * Create a User (Convenience Method) + * Create a new human or machine user in the specified organization. Required permission: - user.write + * @return UserServiceCreateUserResponse + * @throws ApiException if fails to make API call + */ + public UserServiceCreateUserResponse createUser() throws ApiException { + return this.createUser(new UserServiceCreateUserRequest()); + } + /** - * CreateUser - * Create a User Create a new human or machine user in the specified organization. Required permission: - user.write + * Create a User + * Create a new human or machine user in the specified organization. Required permission: - user.write * @param userServiceCreateUserRequest (required) * @return UserServiceCreateUserResponse * @throws ApiException if fails to make API call @@ -836,8 +876,8 @@ public UserServiceCreateUserResponse createUser(UserServiceCreateUserRequest use /** - * CreateUser - * Create a User Create a new human or machine user in the specified organization. Required permission: - user.write + * Create a User + * Create a new human or machine user in the specified organization. Required permission: - user.write * @param userServiceCreateUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceCreateUserResponse @@ -899,8 +939,8 @@ private UserServiceCreateUserResponse createUser(UserServiceCreateUserRequest us /** - * DeactivateUser - * Deactivate user The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. + * Deactivate user + * The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. * @param userServiceDeactivateUserRequest (required) * @return UserServiceDeactivateUserResponse * @throws ApiException if fails to make API call @@ -911,8 +951,8 @@ public UserServiceDeactivateUserResponse deactivateUser(UserServiceDeactivateUse /** - * DeactivateUser - * Deactivate user The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. + * Deactivate user + * The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. * @param userServiceDeactivateUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceDeactivateUserResponse @@ -974,8 +1014,8 @@ private UserServiceDeactivateUserResponse deactivateUser(UserServiceDeactivateUs /** - * DeleteUser - * Delete user The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. + * Delete user + * The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. * @param userServiceDeleteUserRequest (required) * @return UserServiceDeleteUserResponse * @throws ApiException if fails to make API call @@ -986,8 +1026,8 @@ public UserServiceDeleteUserResponse deleteUser(UserServiceDeleteUserRequest use /** - * DeleteUser - * Delete user The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. + * Delete user + * The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. * @param userServiceDeleteUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceDeleteUserResponse @@ -1049,8 +1089,8 @@ private UserServiceDeleteUserResponse deleteUser(UserServiceDeleteUserRequest us /** - * DeleteUserMetadata - * Delete User Metadata Delete metadata objects from an user with a specific key. Required permission: - `user.write` + * Delete User Metadata + * Delete metadata objects from an user with a specific key. Required permission: - `user.write` * @param userServiceDeleteUserMetadataRequest (required) * @return UserServiceDeleteUserMetadataResponse * @throws ApiException if fails to make API call @@ -1061,8 +1101,8 @@ public UserServiceDeleteUserMetadataResponse deleteUserMetadata(UserServiceDelet /** - * DeleteUserMetadata - * Delete User Metadata Delete metadata objects from an user with a specific key. Required permission: - `user.write` + * Delete User Metadata + * Delete metadata objects from an user with a specific key. Required permission: - `user.write` * @param userServiceDeleteUserMetadataRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceDeleteUserMetadataResponse @@ -1124,8 +1164,8 @@ private UserServiceDeleteUserMetadataResponse deleteUserMetadata(UserServiceDele /** - * GetUserByID - * User by ID Returns the full user object (human or machine) including the profile, email, etc.. + * User by ID + * Returns the full user object (human or machine) including the profile, email, etc.. * @param userServiceGetUserByIDRequest (required) * @return UserServiceGetUserByIDResponse * @throws ApiException if fails to make API call @@ -1136,8 +1176,8 @@ public UserServiceGetUserByIDResponse getUserByID(UserServiceGetUserByIDRequest /** - * GetUserByID - * User by ID Returns the full user object (human or machine) including the profile, email, etc.. + * User by ID + * Returns the full user object (human or machine) including the profile, email, etc.. * @param userServiceGetUserByIDRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceGetUserByIDResponse @@ -1199,8 +1239,8 @@ private UserServiceGetUserByIDResponse getUserByID(UserServiceGetUserByIDRequest /** - * HumanMFAInitSkipped - * MFA Init Skipped Update the last time the user has skipped MFA initialization. The server timestamp is used. + * MFA Init Skipped + * Update the last time the user has skipped MFA initialization. The server timestamp is used. * @param userServiceHumanMFAInitSkippedRequest (required) * @return UserServiceHumanMFAInitSkippedResponse * @throws ApiException if fails to make API call @@ -1211,8 +1251,8 @@ public UserServiceHumanMFAInitSkippedResponse humanMFAInitSkipped(UserServiceHum /** - * HumanMFAInitSkipped - * MFA Init Skipped Update the last time the user has skipped MFA initialization. The server timestamp is used. + * MFA Init Skipped + * Update the last time the user has skipped MFA initialization. The server timestamp is used. * @param userServiceHumanMFAInitSkippedRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceHumanMFAInitSkippedResponse @@ -1349,8 +1389,8 @@ private UserServiceListAuthenticationFactorsResponse listAuthenticationFactors(U /** - * ListAuthenticationMethodTypes - * List all possible authentication methods of a user List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. + * List all possible authentication methods of a user + * List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. * @param userServiceListAuthenticationMethodTypesRequest (required) * @return UserServiceListAuthenticationMethodTypesResponse * @throws ApiException if fails to make API call @@ -1361,8 +1401,8 @@ public UserServiceListAuthenticationMethodTypesResponse listAuthenticationMethod /** - * ListAuthenticationMethodTypes - * List all possible authentication methods of a user List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. + * List all possible authentication methods of a user + * List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. * @param userServiceListAuthenticationMethodTypesRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceListAuthenticationMethodTypesResponse @@ -1424,8 +1464,8 @@ private UserServiceListAuthenticationMethodTypesResponse listAuthenticationMetho /** - * ListIDPLinks - * List links to an identity provider of an user List links to an identity provider of an user. + * List links to an identity provider of an user + * List links to an identity provider of an user. * @param userServiceListIDPLinksRequest (required) * @return UserServiceListIDPLinksResponse * @throws ApiException if fails to make API call @@ -1436,8 +1476,8 @@ public UserServiceListIDPLinksResponse listIDPLinks(UserServiceListIDPLinksReque /** - * ListIDPLinks - * List links to an identity provider of an user List links to an identity provider of an user. + * List links to an identity provider of an user + * List links to an identity provider of an user. * @param userServiceListIDPLinksRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceListIDPLinksResponse @@ -1499,8 +1539,8 @@ private UserServiceListIDPLinksResponse listIDPLinks(UserServiceListIDPLinksRequ /** - * ListKeys - * Search Keys List all matching keys. By default all keys of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read + * Search Keys + * List all matching keys. By default all keys of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read * @param userServiceListKeysRequest (required) * @return UserServiceListKeysResponse * @throws ApiException if fails to make API call @@ -1511,8 +1551,8 @@ public UserServiceListKeysResponse listKeys(UserServiceListKeysRequest userServi /** - * ListKeys - * Search Keys List all matching keys. By default all keys of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read + * Search Keys + * List all matching keys. By default all keys of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read * @param userServiceListKeysRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceListKeysResponse @@ -1574,8 +1614,8 @@ private UserServiceListKeysResponse listKeys(UserServiceListKeysRequest userServ /** - * ListPasskeys - * List passkeys of an user List passkeys of an user + * List passkeys of an user + * List passkeys of an user * @param userServiceListPasskeysRequest (required) * @return UserServiceListPasskeysResponse * @throws ApiException if fails to make API call @@ -1586,8 +1626,8 @@ public UserServiceListPasskeysResponse listPasskeys(UserServiceListPasskeysReque /** - * ListPasskeys - * List passkeys of an user List passkeys of an user + * List passkeys of an user + * List passkeys of an user * @param userServiceListPasskeysRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceListPasskeysResponse @@ -1649,8 +1689,8 @@ private UserServiceListPasskeysResponse listPasskeys(UserServiceListPasskeysRequ /** - * ListPersonalAccessTokens - * Search Personal Access Tokens List all personal access tokens. By default all personal access tokens of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read + * Search Personal Access Tokens + * List all personal access tokens. By default all personal access tokens of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read * @param userServiceListPersonalAccessTokensRequest (required) * @return UserServiceListPersonalAccessTokensResponse * @throws ApiException if fails to make API call @@ -1661,8 +1701,8 @@ public UserServiceListPersonalAccessTokensResponse listPersonalAccessTokens(User /** - * ListPersonalAccessTokens - * Search Personal Access Tokens List all personal access tokens. By default all personal access tokens of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read + * Search Personal Access Tokens + * List all personal access tokens. By default all personal access tokens of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read * @param userServiceListPersonalAccessTokensRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceListPersonalAccessTokensResponse @@ -1724,8 +1764,8 @@ private UserServiceListPersonalAccessTokensResponse listPersonalAccessTokens(Use /** - * ListUserMetadata - * List User Metadata List metadata of an user filtered by query. Required permission: - `user.read` + * List User Metadata + * List metadata of an user filtered by query. Required permission: - `user.read` * @param userServiceListUserMetadataRequest (required) * @return UserServiceListUserMetadataResponse * @throws ApiException if fails to make API call @@ -1736,8 +1776,8 @@ public UserServiceListUserMetadataResponse listUserMetadata(UserServiceListUserM /** - * ListUserMetadata - * List User Metadata List metadata of an user filtered by query. Required permission: - `user.read` + * List User Metadata + * List metadata of an user filtered by query. Required permission: - `user.read` * @param userServiceListUserMetadataRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceListUserMetadataResponse @@ -1799,8 +1839,8 @@ private UserServiceListUserMetadataResponse listUserMetadata(UserServiceListUser /** - * ListUsers - * Search Users Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. + * Search Users + * Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. * @param userServiceListUsersRequest (required) * @return UserServiceListUsersResponse * @throws ApiException if fails to make API call @@ -1811,8 +1851,8 @@ public UserServiceListUsersResponse listUsers(UserServiceListUsersRequest userSe /** - * ListUsers - * Search Users Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. + * Search Users + * Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. * @param userServiceListUsersRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceListUsersResponse @@ -1874,8 +1914,8 @@ private UserServiceListUsersResponse listUsers(UserServiceListUsersRequest userS /** - * LockUser - * Lock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. + * Lock user + * The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. * @param userServiceLockUserRequest (required) * @return UserServiceLockUserResponse * @throws ApiException if fails to make API call @@ -1886,8 +1926,8 @@ public UserServiceLockUserResponse lockUser(UserServiceLockUserRequest userServi /** - * LockUser - * Lock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. + * Lock user + * The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. * @param userServiceLockUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceLockUserResponse @@ -1947,10 +1987,20 @@ private UserServiceLockUserResponse lockUser(UserServiceLockUserRequest userServ + /** + * Request a code to reset a password (Convenience Method) + * Request a code to reset a password.. + * @return UserServicePasswordResetResponse + * @throws ApiException if fails to make API call + */ + public UserServicePasswordResetResponse passwordReset() throws ApiException { + return this.passwordReset(new UserServicePasswordResetRequest()); + } + /** - * PasswordReset - * Request a code to reset a password Request a code to reset a password.. + * Request a code to reset a password + * Request a code to reset a password.. * @param userServicePasswordResetRequest (required) * @return UserServicePasswordResetResponse * @throws ApiException if fails to make API call @@ -1961,8 +2011,8 @@ public UserServicePasswordResetResponse passwordReset(UserServicePasswordResetRe /** - * PasswordReset - * Request a code to reset a password Request a code to reset a password.. + * Request a code to reset a password + * Request a code to reset a password.. * @param userServicePasswordResetRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServicePasswordResetResponse @@ -2024,8 +2074,8 @@ private UserServicePasswordResetResponse passwordReset(UserServicePasswordResetR /** - * ReactivateUser - * Reactivate user Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. + * Reactivate user + * Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. * @param userServiceReactivateUserRequest (required) * @return UserServiceReactivateUserResponse * @throws ApiException if fails to make API call @@ -2036,8 +2086,8 @@ public UserServiceReactivateUserResponse reactivateUser(UserServiceReactivateUse /** - * ReactivateUser - * Reactivate user Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. + * Reactivate user + * Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. * @param userServiceReactivateUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceReactivateUserResponse @@ -2099,8 +2149,8 @@ private UserServiceReactivateUserResponse reactivateUser(UserServiceReactivateUs /** - * RegisterPasskey - * Start the registration of passkey for a user Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. + * Start the registration of passkey for a user + * Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. * @param userServiceRegisterPasskeyRequest (required) * @return UserServiceRegisterPasskeyResponse * @throws ApiException if fails to make API call @@ -2111,8 +2161,8 @@ public UserServiceRegisterPasskeyResponse registerPasskey(UserServiceRegisterPas /** - * RegisterPasskey - * Start the registration of passkey for a user Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. + * Start the registration of passkey for a user + * Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. * @param userServiceRegisterPasskeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRegisterPasskeyResponse @@ -2174,8 +2224,8 @@ private UserServiceRegisterPasskeyResponse registerPasskey(UserServiceRegisterPa /** - * RegisterTOTP - * Start the registration of a TOTP generator for a user Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. + * Start the registration of a TOTP generator for a user + * Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. * @param userServiceRegisterTOTPRequest (required) * @return UserServiceRegisterTOTPResponse * @throws ApiException if fails to make API call @@ -2186,8 +2236,8 @@ public UserServiceRegisterTOTPResponse registerTOTP(UserServiceRegisterTOTPReque /** - * RegisterTOTP - * Start the registration of a TOTP generator for a user Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. + * Start the registration of a TOTP generator for a user + * Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. * @param userServiceRegisterTOTPRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRegisterTOTPResponse @@ -2249,8 +2299,8 @@ private UserServiceRegisterTOTPResponse registerTOTP(UserServiceRegisterTOTPRequ /** - * RegisterU2F - * Start the registration of a u2f token for a user Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. + * Start the registration of a u2f token for a user + * Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. * @param userServiceRegisterU2FRequest (required) * @return UserServiceRegisterU2FResponse * @throws ApiException if fails to make API call @@ -2261,8 +2311,8 @@ public UserServiceRegisterU2FResponse registerU2F(UserServiceRegisterU2FRequest /** - * RegisterU2F - * Start the registration of a u2f token for a user Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. + * Start the registration of a u2f token for a user + * Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. * @param userServiceRegisterU2FRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRegisterU2FResponse @@ -2324,8 +2374,8 @@ private UserServiceRegisterU2FResponse registerU2F(UserServiceRegisterU2FRequest /** - * RemoveIDPLink - * Remove link of an identity provider to an user Remove link of an identity provider to an user. + * Remove link of an identity provider to an user + * Remove link of an identity provider to an user. * @param userServiceRemoveIDPLinkRequest (required) * @return UserServiceRemoveIDPLinkResponse * @throws ApiException if fails to make API call @@ -2336,8 +2386,8 @@ public UserServiceRemoveIDPLinkResponse removeIDPLink(UserServiceRemoveIDPLinkRe /** - * RemoveIDPLink - * Remove link of an identity provider to an user Remove link of an identity provider to an user. + * Remove link of an identity provider to an user + * Remove link of an identity provider to an user. * @param userServiceRemoveIDPLinkRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemoveIDPLinkResponse @@ -2399,8 +2449,8 @@ private UserServiceRemoveIDPLinkResponse removeIDPLink(UserServiceRemoveIDPLinkR /** - * RemoveKey - * Remove a Key Remove a machine users key by the given key ID and an optionally given user ID. Required permission: - user.write + * Remove a Key + * Remove a machine users key by the given key ID and an optionally given user ID. Required permission: - user.write * @param userServiceRemoveKeyRequest (required) * @return UserServiceRemoveKeyResponse * @throws ApiException if fails to make API call @@ -2411,8 +2461,8 @@ public UserServiceRemoveKeyResponse removeKey(UserServiceRemoveKeyRequest userSe /** - * RemoveKey - * Remove a Key Remove a machine users key by the given key ID and an optionally given user ID. Required permission: - user.write + * Remove a Key + * Remove a machine users key by the given key ID and an optionally given user ID. Required permission: - user.write * @param userServiceRemoveKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemoveKeyResponse @@ -2474,8 +2524,8 @@ private UserServiceRemoveKeyResponse removeKey(UserServiceRemoveKeyRequest userS /** - * RemoveOTPEmail - * Remove One-Time Password (OTP) Email from a user Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. + * Remove One-Time Password (OTP) Email from a user + * Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. * @param userServiceRemoveOTPEmailRequest (required) * @return UserServiceRemoveOTPEmailResponse * @throws ApiException if fails to make API call @@ -2486,8 +2536,8 @@ public UserServiceRemoveOTPEmailResponse removeOTPEmail(UserServiceRemoveOTPEmai /** - * RemoveOTPEmail - * Remove One-Time Password (OTP) Email from a user Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. + * Remove One-Time Password (OTP) Email from a user + * Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. * @param userServiceRemoveOTPEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemoveOTPEmailResponse @@ -2549,8 +2599,8 @@ private UserServiceRemoveOTPEmailResponse removeOTPEmail(UserServiceRemoveOTPEma /** - * RemoveOTPSMS - * Remove One-Time Password (OTP) SMS from a user Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. + * Remove One-Time Password (OTP) SMS from a user + * Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. * @param userServiceRemoveOTPSMSRequest (required) * @return UserServiceRemoveOTPSMSResponse * @throws ApiException if fails to make API call @@ -2561,8 +2611,8 @@ public UserServiceRemoveOTPSMSResponse removeOTPSMS(UserServiceRemoveOTPSMSReque /** - * RemoveOTPSMS - * Remove One-Time Password (OTP) SMS from a user Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. + * Remove One-Time Password (OTP) SMS from a user + * Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. * @param userServiceRemoveOTPSMSRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemoveOTPSMSResponse @@ -2624,8 +2674,8 @@ private UserServiceRemoveOTPSMSResponse removeOTPSMS(UserServiceRemoveOTPSMSRequ /** - * RemovePasskey - * Remove passkey from a user Remove passkey from a user. + * Remove passkey from a user + * Remove passkey from a user. * @param userServiceRemovePasskeyRequest (required) * @return UserServiceRemovePasskeyResponse * @throws ApiException if fails to make API call @@ -2636,8 +2686,8 @@ public UserServiceRemovePasskeyResponse removePasskey(UserServiceRemovePasskeyRe /** - * RemovePasskey - * Remove passkey from a user Remove passkey from a user. + * Remove passkey from a user + * Remove passkey from a user. * @param userServiceRemovePasskeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemovePasskeyResponse @@ -2699,8 +2749,8 @@ private UserServiceRemovePasskeyResponse removePasskey(UserServiceRemovePasskeyR /** - * RemovePersonalAccessToken - * Remove a Personal Access Token Removes a machine users personal access token by the given token ID and an optionally given user ID. Required permission: - user.write + * Remove a Personal Access Token + * Removes a machine users personal access token by the given token ID and an optionally given user ID. Required permission: - user.write * @param userServiceRemovePersonalAccessTokenRequest (required) * @return UserServiceRemovePersonalAccessTokenResponse * @throws ApiException if fails to make API call @@ -2711,8 +2761,8 @@ public UserServiceRemovePersonalAccessTokenResponse removePersonalAccessToken(Us /** - * RemovePersonalAccessToken - * Remove a Personal Access Token Removes a machine users personal access token by the given token ID and an optionally given user ID. Required permission: - user.write + * Remove a Personal Access Token + * Removes a machine users personal access token by the given token ID and an optionally given user ID. Required permission: - user.write * @param userServiceRemovePersonalAccessTokenRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemovePersonalAccessTokenResponse @@ -2774,8 +2824,8 @@ private UserServiceRemovePersonalAccessTokenResponse removePersonalAccessToken(U /** - * RemovePhone - * Delete the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx) to remove the phone number. Delete the phone number of a user. + * Delete the user phone + * Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx) to remove the phone number. Delete the phone number of a user. * @param userServiceRemovePhoneRequest (required) * @return UserServiceRemovePhoneResponse * @throws ApiException if fails to make API call @@ -2786,8 +2836,8 @@ public UserServiceRemovePhoneResponse removePhone(UserServiceRemovePhoneRequest /** - * RemovePhone - * Delete the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx) to remove the phone number. Delete the phone number of a user. + * Delete the user phone + * Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx) to remove the phone number. Delete the phone number of a user. * @param userServiceRemovePhoneRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemovePhoneResponse @@ -2849,8 +2899,8 @@ private UserServiceRemovePhoneResponse removePhone(UserServiceRemovePhoneRequest /** - * RemoveSecret - * Remove a Users Secret Remove the current client ID and client secret from a machine user. Required permission: - user.write + * Remove a Users Secret + * Remove the current client ID and client secret from a machine user. Required permission: - user.write * @param userServiceRemoveSecretRequest (required) * @return UserServiceRemoveSecretResponse * @throws ApiException if fails to make API call @@ -2861,8 +2911,8 @@ public UserServiceRemoveSecretResponse removeSecret(UserServiceRemoveSecretReque /** - * RemoveSecret - * Remove a Users Secret Remove the current client ID and client secret from a machine user. Required permission: - user.write + * Remove a Users Secret + * Remove the current client ID and client secret from a machine user. Required permission: - user.write * @param userServiceRemoveSecretRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemoveSecretResponse @@ -2924,8 +2974,8 @@ private UserServiceRemoveSecretResponse removeSecret(UserServiceRemoveSecretRequ /** - * RemoveTOTP - * Remove TOTP generator from a user Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. + * Remove TOTP generator from a user + * Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. * @param userServiceRemoveTOTPRequest (required) * @return UserServiceRemoveTOTPResponse * @throws ApiException if fails to make API call @@ -2936,8 +2986,8 @@ public UserServiceRemoveTOTPResponse removeTOTP(UserServiceRemoveTOTPRequest use /** - * RemoveTOTP - * Remove TOTP generator from a user Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. + * Remove TOTP generator from a user + * Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. * @param userServiceRemoveTOTPRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemoveTOTPResponse @@ -2999,8 +3049,8 @@ private UserServiceRemoveTOTPResponse removeTOTP(UserServiceRemoveTOTPRequest us /** - * RemoveU2F - * Remove u2f token from a user Remove u2f token from a user. + * Remove u2f token from a user + * Remove u2f token from a user. * @param userServiceRemoveU2FRequest (required) * @return UserServiceRemoveU2FResponse * @throws ApiException if fails to make API call @@ -3011,8 +3061,8 @@ public UserServiceRemoveU2FResponse removeU2F(UserServiceRemoveU2FRequest userSe /** - * RemoveU2F - * Remove u2f token from a user Remove u2f token from a user. + * Remove u2f token from a user + * Remove u2f token from a user. * @param userServiceRemoveU2FRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRemoveU2FResponse @@ -3072,9 +3122,19 @@ private UserServiceRemoveU2FResponse removeU2F(UserServiceRemoveU2FRequest userS + /** + * Resend code to verify user email (Convenience Method) + * Resend code to verify user email + * @return UserServiceResendEmailCodeResponse + * @throws ApiException if fails to make API call + */ + public UserServiceResendEmailCodeResponse resendEmailCode() throws ApiException { + return this.resendEmailCode(new UserServiceResendEmailCodeRequest()); + } + /** - * ResendEmailCode + * Resend code to verify user email * Resend code to verify user email * @param userServiceResendEmailCodeRequest (required) * @return UserServiceResendEmailCodeResponse @@ -3086,7 +3146,7 @@ public UserServiceResendEmailCodeResponse resendEmailCode(UserServiceResendEmail /** - * ResendEmailCode + * Resend code to verify user email * Resend code to verify user email * @param userServiceResendEmailCodeRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -3149,8 +3209,8 @@ private UserServiceResendEmailCodeResponse resendEmailCode(UserServiceResendEmai /** - * ResendInviteCode - * Resend an invite code for a user Deprecated: Use [CreateInviteCode](apis/resources/user_service_v2/user-service-create-invite-code.api.mdx) instead. Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. + * Resend an invite code for a user + * Deprecated: Use [CreateInviteCode](apis/resources/user_service_v2/user-service-create-invite-code.api.mdx) instead. Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. * @param userServiceResendInviteCodeRequest (required) * @return UserServiceResendInviteCodeResponse * @throws ApiException if fails to make API call @@ -3161,8 +3221,8 @@ public UserServiceResendInviteCodeResponse resendInviteCode(UserServiceResendInv /** - * ResendInviteCode - * Resend an invite code for a user Deprecated: Use [CreateInviteCode](apis/resources/user_service_v2/user-service-create-invite-code.api.mdx) instead. Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. + * Resend an invite code for a user + * Deprecated: Use [CreateInviteCode](apis/resources/user_service_v2/user-service-create-invite-code.api.mdx) instead. Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. * @param userServiceResendInviteCodeRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceResendInviteCodeResponse @@ -3222,10 +3282,20 @@ private UserServiceResendInviteCodeResponse resendInviteCode(UserServiceResendIn + /** + * Resend code to verify user phone number (Convenience Method) + * Resend code to verify user phone number. + * @return UserServiceResendPhoneCodeResponse + * @throws ApiException if fails to make API call + */ + public UserServiceResendPhoneCodeResponse resendPhoneCode() throws ApiException { + return this.resendPhoneCode(new UserServiceResendPhoneCodeRequest()); + } + /** - * ResendPhoneCode - * Resend code to verify user phone number Resend code to verify user phone number. + * Resend code to verify user phone number + * Resend code to verify user phone number. * @param userServiceResendPhoneCodeRequest (required) * @return UserServiceResendPhoneCodeResponse * @throws ApiException if fails to make API call @@ -3236,8 +3306,8 @@ public UserServiceResendPhoneCodeResponse resendPhoneCode(UserServiceResendPhone /** - * ResendPhoneCode - * Resend code to verify user phone number Resend code to verify user phone number. + * Resend code to verify user phone number + * Resend code to verify user phone number. * @param userServiceResendPhoneCodeRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceResendPhoneCodeResponse @@ -3299,8 +3369,8 @@ private UserServiceResendPhoneCodeResponse resendPhoneCode(UserServiceResendPhon /** - * RetrieveIdentityProviderIntent - * Retrieve the information returned by the identity provider Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. + * Retrieve the information returned by the identity provider + * Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. * @param userServiceRetrieveIdentityProviderIntentRequest (required) * @return UserServiceRetrieveIdentityProviderIntentResponse * @throws ApiException if fails to make API call @@ -3311,8 +3381,8 @@ public UserServiceRetrieveIdentityProviderIntentResponse retrieveIdentityProvide /** - * RetrieveIdentityProviderIntent - * Retrieve the information returned by the identity provider Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. + * Retrieve the information returned by the identity provider + * Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. * @param userServiceRetrieveIdentityProviderIntentRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceRetrieveIdentityProviderIntentResponse @@ -3372,9 +3442,19 @@ private UserServiceRetrieveIdentityProviderIntentResponse retrieveIdentityProvid + /** + * Send code to verify user email (Convenience Method) + * Send code to verify user email + * @return UserServiceSendEmailCodeResponse + * @throws ApiException if fails to make API call + */ + public UserServiceSendEmailCodeResponse sendEmailCode() throws ApiException { + return this.sendEmailCode(new UserServiceSendEmailCodeRequest()); + } + /** - * SendEmailCode + * Send code to verify user email * Send code to verify user email * @param userServiceSendEmailCodeRequest (required) * @return UserServiceSendEmailCodeResponse @@ -3386,7 +3466,7 @@ public UserServiceSendEmailCodeResponse sendEmailCode(UserServiceSendEmailCodeRe /** - * SendEmailCode + * Send code to verify user email * Send code to verify user email * @param userServiceSendEmailCodeRequest (required) * @param additionalHeaders additionalHeaders for this call @@ -3447,10 +3527,20 @@ private UserServiceSendEmailCodeResponse sendEmailCode(UserServiceSendEmailCodeR + /** + * Change the user email (Convenience Method) + * Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. + * @return UserServiceSetEmailResponse + * @throws ApiException if fails to make API call + */ + public UserServiceSetEmailResponse setEmail() throws ApiException { + return this.setEmail(new UserServiceSetEmailRequest()); + } + /** - * SetEmail - * Change the user email Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. + * Change the user email + * Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. * @param userServiceSetEmailRequest (required) * @return UserServiceSetEmailResponse * @throws ApiException if fails to make API call @@ -3461,8 +3551,8 @@ public UserServiceSetEmailResponse setEmail(UserServiceSetEmailRequest userServi /** - * SetEmail - * Change the user email Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. + * Change the user email + * Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. * @param userServiceSetEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceSetEmailResponse @@ -3522,10 +3612,20 @@ private UserServiceSetEmailResponse setEmail(UserServiceSetEmailRequest userServ + /** + * Change password (Convenience Method) + * Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password.. + * @return UserServiceSetPasswordResponse + * @throws ApiException if fails to make API call + */ + public UserServiceSetPasswordResponse setPassword() throws ApiException { + return this.setPassword(new UserServiceSetPasswordRequest()); + } + /** - * SetPassword - * Change password Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password.. + * Change password + * Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password.. * @param userServiceSetPasswordRequest (required) * @return UserServiceSetPasswordResponse * @throws ApiException if fails to make API call @@ -3536,8 +3636,8 @@ public UserServiceSetPasswordResponse setPassword(UserServiceSetPasswordRequest /** - * SetPassword - * Change password Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password.. + * Change password + * Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password.. * @param userServiceSetPasswordRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceSetPasswordResponse @@ -3597,10 +3697,20 @@ private UserServiceSetPasswordResponse setPassword(UserServiceSetPasswordRequest + /** + * Set the user phone (Convenience Method) + * Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. + * @return UserServiceSetPhoneResponse + * @throws ApiException if fails to make API call + */ + public UserServiceSetPhoneResponse setPhone() throws ApiException { + return this.setPhone(new UserServiceSetPhoneRequest()); + } + /** - * SetPhone - * Set the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. + * Set the user phone + * Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. * @param userServiceSetPhoneRequest (required) * @return UserServiceSetPhoneResponse * @throws ApiException if fails to make API call @@ -3611,8 +3721,8 @@ public UserServiceSetPhoneResponse setPhone(UserServiceSetPhoneRequest userServi /** - * SetPhone - * Set the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. + * Set the user phone + * Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. * @param userServiceSetPhoneRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceSetPhoneResponse @@ -3674,8 +3784,8 @@ private UserServiceSetPhoneResponse setPhone(UserServiceSetPhoneRequest userServ /** - * SetUserMetadata - * Set User Metadata Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove metadata entries, use [DeleteUserMetadata](apis/resources/user_service_v2/user-service-delete-user-metadata.api.mdx). For HTTP requests, make sure the bytes array value is base64 encoded. Required permission: - `user.write` + * Set User Metadata + * Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove metadata entries, use [DeleteUserMetadata](apis/resources/user_service_v2/user-service-delete-user-metadata.api.mdx). For HTTP requests, make sure the bytes array value is base64 encoded. Required permission: - `user.write` * @param userServiceSetUserMetadataRequest (required) * @return UserServiceSetUserMetadataResponse * @throws ApiException if fails to make API call @@ -3686,8 +3796,8 @@ public UserServiceSetUserMetadataResponse setUserMetadata(UserServiceSetUserMeta /** - * SetUserMetadata - * Set User Metadata Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove metadata entries, use [DeleteUserMetadata](apis/resources/user_service_v2/user-service-delete-user-metadata.api.mdx). For HTTP requests, make sure the bytes array value is base64 encoded. Required permission: - `user.write` + * Set User Metadata + * Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove metadata entries, use [DeleteUserMetadata](apis/resources/user_service_v2/user-service-delete-user-metadata.api.mdx). For HTTP requests, make sure the bytes array value is base64 encoded. Required permission: - `user.write` * @param userServiceSetUserMetadataRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceSetUserMetadataResponse @@ -3747,10 +3857,20 @@ private UserServiceSetUserMetadataResponse setUserMetadata(UserServiceSetUserMet + /** + * Start flow with an identity provider (Convenience Method) + * Start a flow with an identity provider, for external login, registration or linking.. + * @return UserServiceStartIdentityProviderIntentResponse + * @throws ApiException if fails to make API call + */ + public UserServiceStartIdentityProviderIntentResponse startIdentityProviderIntent() throws ApiException { + return this.startIdentityProviderIntent(new UserServiceStartIdentityProviderIntentRequest()); + } + /** - * StartIdentityProviderIntent - * Start flow with an identity provider Start a flow with an identity provider, for external login, registration or linking.. + * Start flow with an identity provider + * Start a flow with an identity provider, for external login, registration or linking.. * @param userServiceStartIdentityProviderIntentRequest (required) * @return UserServiceStartIdentityProviderIntentResponse * @throws ApiException if fails to make API call @@ -3761,8 +3881,8 @@ public UserServiceStartIdentityProviderIntentResponse startIdentityProviderInten /** - * StartIdentityProviderIntent - * Start flow with an identity provider Start a flow with an identity provider, for external login, registration or linking.. + * Start flow with an identity provider + * Start a flow with an identity provider, for external login, registration or linking.. * @param userServiceStartIdentityProviderIntentRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceStartIdentityProviderIntentResponse @@ -3824,8 +3944,8 @@ private UserServiceStartIdentityProviderIntentResponse startIdentityProviderInte /** - * UnlockUser - * Unlock user The state of the user will be changed to 'active'. The user will be able to log in again. The endpoint returns an error if the user is not in the state 'locked'. + * Unlock user + * The state of the user will be changed to 'active'. The user will be able to log in again. The endpoint returns an error if the user is not in the state 'locked'. * @param userServiceUnlockUserRequest (required) * @return UserServiceUnlockUserResponse * @throws ApiException if fails to make API call @@ -3836,8 +3956,8 @@ public UserServiceUnlockUserResponse unlockUser(UserServiceUnlockUserRequest use /** - * UnlockUser - * Unlock user The state of the user will be changed to 'active'. The user will be able to log in again. The endpoint returns an error if the user is not in the state 'locked'. + * Unlock user + * The state of the user will be changed to 'active'. The user will be able to log in again. The endpoint returns an error if the user is not in the state 'locked'. * @param userServiceUnlockUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceUnlockUserResponse @@ -3899,8 +4019,8 @@ private UserServiceUnlockUserResponse unlockUser(UserServiceUnlockUserRequest us /** - * UpdateHumanUser - * Update Human User Deprecated: Use [UpdateUser](apis/resources/user_service_v2/user-service-update-user.api.mdx) to update a user of type human instead. Update all information from a user. + * Update Human User + * Deprecated: Use [UpdateUser](apis/resources/user_service_v2/user-service-update-user.api.mdx) to update a user of type human instead. Update all information from a user. * @param userServiceUpdateHumanUserRequest (required) * @return UserServiceUpdateHumanUserResponse * @throws ApiException if fails to make API call @@ -3911,8 +4031,8 @@ public UserServiceUpdateHumanUserResponse updateHumanUser(UserServiceUpdateHuman /** - * UpdateHumanUser - * Update Human User Deprecated: Use [UpdateUser](apis/resources/user_service_v2/user-service-update-user.api.mdx) to update a user of type human instead. Update all information from a user. + * Update Human User + * Deprecated: Use [UpdateUser](apis/resources/user_service_v2/user-service-update-user.api.mdx) to update a user of type human instead. Update all information from a user. * @param userServiceUpdateHumanUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceUpdateHumanUserResponse @@ -3972,10 +4092,20 @@ private UserServiceUpdateHumanUserResponse updateHumanUser(UserServiceUpdateHuma + /** + * Update a User (Convenience Method) + * Partially update an existing user. If you change the users email or phone, you can specify how the ownership should be verified. If you change the users password, you can specify if the password should be changed again on the users next login. Required permission: - user.write + * @return UserServiceUpdateUserResponse + * @throws ApiException if fails to make API call + */ + public UserServiceUpdateUserResponse updateUser() throws ApiException { + return this.updateUser(new UserServiceUpdateUserRequest()); + } + /** - * UpdateUser - * Update a User Partially update an existing user. If you change the users email or phone, you can specify how the ownership should be verified. If you change the users password, you can specify if the password should be changed again on the users next login. Required permission: - user.write + * Update a User + * Partially update an existing user. If you change the users email or phone, you can specify how the ownership should be verified. If you change the users password, you can specify if the password should be changed again on the users next login. Required permission: - user.write * @param userServiceUpdateUserRequest (required) * @return UserServiceUpdateUserResponse * @throws ApiException if fails to make API call @@ -3986,8 +4116,8 @@ public UserServiceUpdateUserResponse updateUser(UserServiceUpdateUserRequest use /** - * UpdateUser - * Update a User Partially update an existing user. If you change the users email or phone, you can specify how the ownership should be verified. If you change the users password, you can specify if the password should be changed again on the users next login. Required permission: - user.write + * Update a User + * Partially update an existing user. If you change the users email or phone, you can specify how the ownership should be verified. If you change the users password, you can specify if the password should be changed again on the users next login. Required permission: - user.write * @param userServiceUpdateUserRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceUpdateUserResponse @@ -4049,8 +4179,8 @@ private UserServiceUpdateUserResponse updateUser(UserServiceUpdateUserRequest us /** - * VerifyEmail - * Verify the email Verify the email with the generated code. + * Verify the email + * Verify the email with the generated code. * @param userServiceVerifyEmailRequest (required) * @return UserServiceVerifyEmailResponse * @throws ApiException if fails to make API call @@ -4061,8 +4191,8 @@ public UserServiceVerifyEmailResponse verifyEmail(UserServiceVerifyEmailRequest /** - * VerifyEmail - * Verify the email Verify the email with the generated code. + * Verify the email + * Verify the email with the generated code. * @param userServiceVerifyEmailRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceVerifyEmailResponse @@ -4124,8 +4254,8 @@ private UserServiceVerifyEmailResponse verifyEmail(UserServiceVerifyEmailRequest /** - * VerifyInviteCode - * Verify an invite code for a user Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. + * Verify an invite code for a user + * Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. * @param userServiceVerifyInviteCodeRequest (required) * @return UserServiceVerifyInviteCodeResponse * @throws ApiException if fails to make API call @@ -4136,8 +4266,8 @@ public UserServiceVerifyInviteCodeResponse verifyInviteCode(UserServiceVerifyInv /** - * VerifyInviteCode - * Verify an invite code for a user Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. + * Verify an invite code for a user + * Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. * @param userServiceVerifyInviteCodeRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceVerifyInviteCodeResponse @@ -4199,8 +4329,8 @@ private UserServiceVerifyInviteCodeResponse verifyInviteCode(UserServiceVerifyIn /** - * VerifyPasskeyRegistration - * Verify a passkey for a user Verify the passkey registration with the public key credential.. + * Verify a passkey for a user + * Verify the passkey registration with the public key credential.. * @param userServiceVerifyPasskeyRegistrationRequest (required) * @return UserServiceVerifyPasskeyRegistrationResponse * @throws ApiException if fails to make API call @@ -4211,8 +4341,8 @@ public UserServiceVerifyPasskeyRegistrationResponse verifyPasskeyRegistration(Us /** - * VerifyPasskeyRegistration - * Verify a passkey for a user Verify the passkey registration with the public key credential.. + * Verify a passkey for a user + * Verify the passkey registration with the public key credential.. * @param userServiceVerifyPasskeyRegistrationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceVerifyPasskeyRegistrationResponse @@ -4274,8 +4404,8 @@ private UserServiceVerifyPasskeyRegistrationResponse verifyPasskeyRegistration(U /** - * VerifyPhone - * Verify the phone number Verify the phone number with the generated code. + * Verify the phone number + * Verify the phone number with the generated code. * @param userServiceVerifyPhoneRequest (required) * @return UserServiceVerifyPhoneResponse * @throws ApiException if fails to make API call @@ -4286,8 +4416,8 @@ public UserServiceVerifyPhoneResponse verifyPhone(UserServiceVerifyPhoneRequest /** - * VerifyPhone - * Verify the phone number Verify the phone number with the generated code. + * Verify the phone number + * Verify the phone number with the generated code. * @param userServiceVerifyPhoneRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceVerifyPhoneResponse @@ -4349,8 +4479,8 @@ private UserServiceVerifyPhoneResponse verifyPhone(UserServiceVerifyPhoneRequest /** - * VerifyTOTPRegistration - * Verify a TOTP generator for a user Verify the TOTP registration with a generated code.. + * Verify a TOTP generator for a user + * Verify the TOTP registration with a generated code.. * @param userServiceVerifyTOTPRegistrationRequest (required) * @return UserServiceVerifyTOTPRegistrationResponse * @throws ApiException if fails to make API call @@ -4361,8 +4491,8 @@ public UserServiceVerifyTOTPRegistrationResponse verifyTOTPRegistration(UserServ /** - * VerifyTOTPRegistration - * Verify a TOTP generator for a user Verify the TOTP registration with a generated code.. + * Verify a TOTP generator for a user + * Verify the TOTP registration with a generated code.. * @param userServiceVerifyTOTPRegistrationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceVerifyTOTPRegistrationResponse @@ -4424,8 +4554,8 @@ private UserServiceVerifyTOTPRegistrationResponse verifyTOTPRegistration(UserSer /** - * VerifyU2FRegistration - * Verify a u2f token for a user Verify the u2f token registration with the public key credential.. + * Verify a u2f token for a user + * Verify the u2f token registration with the public key credential.. * @param userServiceVerifyU2FRegistrationRequest (required) * @return UserServiceVerifyU2FRegistrationResponse * @throws ApiException if fails to make API call @@ -4436,8 +4566,8 @@ public UserServiceVerifyU2FRegistrationResponse verifyU2FRegistration(UserServic /** - * VerifyU2FRegistration - * Verify a u2f token for a user Verify the u2f token registration with the public key credential.. + * Verify a u2f token for a user + * Verify the u2f token registration with the public key credential.. * @param userServiceVerifyU2FRegistrationRequest (required) * @param additionalHeaders additionalHeaders for this call * @return UserServiceVerifyU2FRegistrationResponse diff --git a/src/main/java/com/zitadel/api/WebKeyServiceApi.java b/src/main/java/com/zitadel/api/WebKeyServiceApi.java index d23a4f4..b8d83a4 100644 --- a/src/main/java/com/zitadel/api/WebKeyServiceApi.java +++ b/src/main/java/com/zitadel/api/WebKeyServiceApi.java @@ -40,8 +40,8 @@ public WebKeyServiceApi(ApiClient apiClient) { /** - * ActivateWebKey - * Activate Web Key Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Activate Web Key + * Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param webKeyServiceActivateWebKeyRequest (required) * @return WebKeyServiceActivateWebKeyResponse * @throws ApiException if fails to make API call @@ -52,8 +52,8 @@ public WebKeyServiceActivateWebKeyResponse activateWebKey(WebKeyServiceActivateW /** - * ActivateWebKey - * Activate Web Key Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Activate Web Key + * Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param webKeyServiceActivateWebKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return WebKeyServiceActivateWebKeyResponse @@ -115,8 +115,8 @@ private WebKeyServiceActivateWebKeyResponse activateWebKey(WebKeyServiceActivate /** - * CreateWebKey - * Create Web Key Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Create Web Key + * Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param webKeyServiceCreateWebKeyRequest (required) * @return WebKeyServiceCreateWebKeyResponse * @throws ApiException if fails to make API call @@ -127,8 +127,8 @@ public WebKeyServiceCreateWebKeyResponse createWebKey(WebKeyServiceCreateWebKeyR /** - * CreateWebKey - * Create Web Key Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + * Create Web Key + * Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` * @param webKeyServiceCreateWebKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return WebKeyServiceCreateWebKeyResponse @@ -190,8 +190,8 @@ private WebKeyServiceCreateWebKeyResponse createWebKey(WebKeyServiceCreateWebKey /** - * DeleteWebKey - * Delete Web Key Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` + * Delete Web Key + * Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` * @param webKeyServiceDeleteWebKeyRequest (required) * @return WebKeyServiceDeleteWebKeyResponse * @throws ApiException if fails to make API call @@ -202,8 +202,8 @@ public WebKeyServiceDeleteWebKeyResponse deleteWebKey(WebKeyServiceDeleteWebKeyR /** - * DeleteWebKey - * Delete Web Key Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` + * Delete Web Key + * Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` * @param webKeyServiceDeleteWebKeyRequest (required) * @param additionalHeaders additionalHeaders for this call * @return WebKeyServiceDeleteWebKeyResponse @@ -264,8 +264,8 @@ private WebKeyServiceDeleteWebKeyResponse deleteWebKey(WebKeyServiceDeleteWebKey /** - * ListWebKeys (Convenience Method) - * List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + * List Web Keys (Convenience Method) + * List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` * @return WebKeyServiceListWebKeysResponse * @throws ApiException if fails to make API call */ @@ -275,8 +275,8 @@ public WebKeyServiceListWebKeysResponse listWebKeys() throws ApiException { /** - * ListWebKeys - * List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + * List Web Keys + * List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` * @param body (required) * @return WebKeyServiceListWebKeysResponse * @throws ApiException if fails to make API call @@ -287,8 +287,8 @@ public WebKeyServiceListWebKeysResponse listWebKeys(Object body) throws ApiExcep /** - * ListWebKeys - * List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + * List Web Keys + * List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` * @param body (required) * @param additionalHeaders additionalHeaders for this call * @return WebKeyServiceListWebKeysResponse diff --git a/src/main/java/com/zitadel/model/ActionServiceAny.java b/src/main/java/com/zitadel/model/ActionServiceAny.java index 4cfccb7..babd135 100644 --- a/src/main/java/com/zitadel/model/ActionServiceAny.java +++ b/src/main/java/com/zitadel/model/ActionServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ ActionServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class ActionServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public ActionServiceAny() { @@ -62,7 +66,7 @@ public ActionServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public ActionServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public ActionServiceAny debug(@javax.annotation.Nullable Map debug) { + public ActionServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public ActionServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { ActionServiceAny actionServiceAny = (ActionServiceAny) o; return Objects.equals(this.type, actionServiceAny.type) && Objects.equals(this.value, actionServiceAny.value) && - Objects.equals(this.debug, actionServiceAny.debug) && + equalsNullable(this.debug, actionServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/ActionServiceConnectError.java b/src/main/java/com/zitadel/model/ActionServiceConnectError.java index ddc5b28..28f3f67 100644 --- a/src/main/java/com/zitadel/model/ActionServiceConnectError.java +++ b/src/main/java/com/zitadel/model/ActionServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.ActionServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ ActionServiceConnectError.JSON_PROPERTY_CODE, ActionServiceConnectError.JSON_PROPERTY_MESSAGE, - ActionServiceConnectError.JSON_PROPERTY_DETAIL + ActionServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class ActionServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private ActionServiceAny detail; + private List details = new ArrayList<>(); public ActionServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public ActionServiceConnectError detail(@javax.annotation.Nullable ActionServiceAny detail) { + public ActionServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public ActionServiceConnectError addDetailsItem(ActionServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ActionServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable ActionServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { ActionServiceConnectError actionServiceConnectError = (ActionServiceConnectError) o; return Objects.equals(this.code, actionServiceConnectError.code) && Objects.equals(this.message, actionServiceConnectError.message) && - Objects.equals(this.detail, actionServiceConnectError.detail) && + Objects.equals(this.details, actionServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/ActionServiceDeleteTargetRequest.java b/src/main/java/com/zitadel/model/ActionServiceDeleteTargetRequest.java index e2d0439..b98d02a 100644 --- a/src/main/java/com/zitadel/model/ActionServiceDeleteTargetRequest.java +++ b/src/main/java/com/zitadel/model/ActionServiceDeleteTargetRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class ActionServiceDeleteTargetRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public ActionServiceDeleteTargetRequest() { } - public ActionServiceDeleteTargetRequest id(@javax.annotation.Nonnull String id) { + public ActionServiceDeleteTargetRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public ActionServiceDeleteTargetRequest id(@javax.annotation.Nonnull String id) * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaActionServiceAny.java b/src/main/java/com/zitadel/model/BetaActionServiceAny.java index 29d33fe..759440e 100644 --- a/src/main/java/com/zitadel/model/BetaActionServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaActionServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaActionServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaActionServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaActionServiceAny() { @@ -62,7 +66,7 @@ public BetaActionServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaActionServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaActionServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaActionServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaActionServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaActionServiceAny betaActionServiceAny = (BetaActionServiceAny) o; return Objects.equals(this.type, betaActionServiceAny.type) && Objects.equals(this.value, betaActionServiceAny.value) && - Objects.equals(this.debug, betaActionServiceAny.debug) && + equalsNullable(this.debug, betaActionServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaActionServiceConnectError.java b/src/main/java/com/zitadel/model/BetaActionServiceConnectError.java index 59fe015..9436330 100644 --- a/src/main/java/com/zitadel/model/BetaActionServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaActionServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaActionServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaActionServiceConnectError.JSON_PROPERTY_CODE, BetaActionServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaActionServiceConnectError.JSON_PROPERTY_DETAIL + BetaActionServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaActionServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaActionServiceAny detail; + private List details = new ArrayList<>(); public BetaActionServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaActionServiceConnectError detail(@javax.annotation.Nullable BetaActionServiceAny detail) { + public BetaActionServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaActionServiceConnectError addDetailsItem(BetaActionServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaActionServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaActionServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaActionServiceConnectError betaActionServiceConnectError = (BetaActionServiceConnectError) o; return Objects.equals(this.code, betaActionServiceConnectError.code) && Objects.equals(this.message, betaActionServiceConnectError.message) && - Objects.equals(this.detail, betaActionServiceConnectError.detail) && + Objects.equals(this.details, betaActionServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaActionServiceDeleteTargetRequest.java b/src/main/java/com/zitadel/model/BetaActionServiceDeleteTargetRequest.java index 97ce136..984f6d4 100644 --- a/src/main/java/com/zitadel/model/BetaActionServiceDeleteTargetRequest.java +++ b/src/main/java/com/zitadel/model/BetaActionServiceDeleteTargetRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaActionServiceDeleteTargetRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaActionServiceDeleteTargetRequest() { } - public BetaActionServiceDeleteTargetRequest id(@javax.annotation.Nonnull String id) { + public BetaActionServiceDeleteTargetRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaActionServiceDeleteTargetRequest id(@javax.annotation.Nonnull String * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaAppServiceAny.java b/src/main/java/com/zitadel/model/BetaAppServiceAny.java index ac34977..b38c852 100644 --- a/src/main/java/com/zitadel/model/BetaAppServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaAppServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaAppServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaAppServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaAppServiceAny() { @@ -62,7 +66,7 @@ public BetaAppServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaAppServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaAppServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaAppServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaAppServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaAppServiceAny betaAppServiceAny = (BetaAppServiceAny) o; return Objects.equals(this.type, betaAppServiceAny.type) && Objects.equals(this.value, betaAppServiceAny.value) && - Objects.equals(this.debug, betaAppServiceAny.debug) && + equalsNullable(this.debug, betaAppServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaAppServiceConnectError.java b/src/main/java/com/zitadel/model/BetaAppServiceConnectError.java index 0fa7442..486b92b 100644 --- a/src/main/java/com/zitadel/model/BetaAppServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaAppServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaAppServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaAppServiceConnectError.JSON_PROPERTY_CODE, BetaAppServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaAppServiceConnectError.JSON_PROPERTY_DETAIL + BetaAppServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaAppServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaAppServiceAny detail; + private List details = new ArrayList<>(); public BetaAppServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaAppServiceConnectError detail(@javax.annotation.Nullable BetaAppServiceAny detail) { + public BetaAppServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaAppServiceConnectError addDetailsItem(BetaAppServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaAppServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaAppServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaAppServiceConnectError betaAppServiceConnectError = (BetaAppServiceConnectError) o; return Objects.equals(this.code, betaAppServiceConnectError.code) && Objects.equals(this.message, betaAppServiceConnectError.message) && - Objects.equals(this.detail, betaAppServiceConnectError.detail) && + Objects.equals(this.details, betaAppServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaAppServiceCreateApplicationRequest.java b/src/main/java/com/zitadel/model/BetaAppServiceCreateApplicationRequest.java index 024af4e..960bfa9 100644 --- a/src/main/java/com/zitadel/model/BetaAppServiceCreateApplicationRequest.java +++ b/src/main/java/com/zitadel/model/BetaAppServiceCreateApplicationRequest.java @@ -51,7 +51,7 @@ public class BetaAppServiceCreateApplicationRequest { private String id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_API_REQUEST = "apiRequest"; @@ -119,7 +119,7 @@ public void setId(@javax.annotation.Nullable String id) { this.id = id; } - public BetaAppServiceCreateApplicationRequest name(@javax.annotation.Nonnull String name) { + public BetaAppServiceCreateApplicationRequest name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -129,9 +129,9 @@ public BetaAppServiceCreateApplicationRequest name(@javax.annotation.Nonnull Str * Get name * @return name */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -139,8 +139,8 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull String name) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/src/main/java/com/zitadel/model/BetaAppServiceGetApplicationRequest.java b/src/main/java/com/zitadel/model/BetaAppServiceGetApplicationRequest.java index 054a169..ee4d7b1 100644 --- a/src/main/java/com/zitadel/model/BetaAppServiceGetApplicationRequest.java +++ b/src/main/java/com/zitadel/model/BetaAppServiceGetApplicationRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaAppServiceGetApplicationRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaAppServiceGetApplicationRequest() { } - public BetaAppServiceGetApplicationRequest id(@javax.annotation.Nonnull String id) { + public BetaAppServiceGetApplicationRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaAppServiceGetApplicationRequest id(@javax.annotation.Nonnull String i * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaAppServiceUpdateApplicationRequest.java b/src/main/java/com/zitadel/model/BetaAppServiceUpdateApplicationRequest.java index 415be37..70f9c33 100644 --- a/src/main/java/com/zitadel/model/BetaAppServiceUpdateApplicationRequest.java +++ b/src/main/java/com/zitadel/model/BetaAppServiceUpdateApplicationRequest.java @@ -47,7 +47,7 @@ public class BetaAppServiceUpdateApplicationRequest { private String projectId; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; @@ -94,7 +94,7 @@ public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaAppServiceUpdateApplicationRequest id(@javax.annotation.Nonnull String id) { + public BetaAppServiceUpdateApplicationRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -104,9 +104,9 @@ public BetaAppServiceUpdateApplicationRequest id(@javax.annotation.Nonnull Strin * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -114,8 +114,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaAuthorizationServiceAny.java b/src/main/java/com/zitadel/model/BetaAuthorizationServiceAny.java index cdaa6b4..b2b6ba5 100644 --- a/src/main/java/com/zitadel/model/BetaAuthorizationServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaAuthorizationServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaAuthorizationServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaAuthorizationServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaAuthorizationServiceAny() { @@ -62,7 +66,7 @@ public BetaAuthorizationServiceAny type(@javax.annotation.Nullable String type) } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaAuthorizationServiceAny value(@javax.annotation.Nullable File value) } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaAuthorizationServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaAuthorizationServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaAuthorizationServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaAuthorizationServiceAny betaAuthorizationServiceAny = (BetaAuthorizationServiceAny) o; return Objects.equals(this.type, betaAuthorizationServiceAny.type) && Objects.equals(this.value, betaAuthorizationServiceAny.value) && - Objects.equals(this.debug, betaAuthorizationServiceAny.debug) && + equalsNullable(this.debug, betaAuthorizationServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaAuthorizationServiceConnectError.java b/src/main/java/com/zitadel/model/BetaAuthorizationServiceConnectError.java index 14df96d..f8666d2 100644 --- a/src/main/java/com/zitadel/model/BetaAuthorizationServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaAuthorizationServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaAuthorizationServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaAuthorizationServiceConnectError.JSON_PROPERTY_CODE, BetaAuthorizationServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaAuthorizationServiceConnectError.JSON_PROPERTY_DETAIL + BetaAuthorizationServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaAuthorizationServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaAuthorizationServiceAny detail; + private List details = new ArrayList<>(); public BetaAuthorizationServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaAuthorizationServiceConnectError detail(@javax.annotation.Nullable BetaAuthorizationServiceAny detail) { + public BetaAuthorizationServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaAuthorizationServiceConnectError addDetailsItem(BetaAuthorizationServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaAuthorizationServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaAuthorizationServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaAuthorizationServiceConnectError betaAuthorizationServiceConnectError = (BetaAuthorizationServiceConnectError) o; return Objects.equals(this.code, betaAuthorizationServiceConnectError.code) && Objects.equals(this.message, betaAuthorizationServiceConnectError.message) && - Objects.equals(this.detail, betaAuthorizationServiceConnectError.detail) && + Objects.equals(this.details, betaAuthorizationServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaFeatureServiceAny.java b/src/main/java/com/zitadel/model/BetaFeatureServiceAny.java index 391c8d4..91e0246 100644 --- a/src/main/java/com/zitadel/model/BetaFeatureServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaFeatureServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaFeatureServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaFeatureServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaFeatureServiceAny() { @@ -62,7 +66,7 @@ public BetaFeatureServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaFeatureServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaFeatureServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaFeatureServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaFeatureServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaFeatureServiceAny betaFeatureServiceAny = (BetaFeatureServiceAny) o; return Objects.equals(this.type, betaFeatureServiceAny.type) && Objects.equals(this.value, betaFeatureServiceAny.value) && - Objects.equals(this.debug, betaFeatureServiceAny.debug) && + equalsNullable(this.debug, betaFeatureServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaFeatureServiceConnectError.java b/src/main/java/com/zitadel/model/BetaFeatureServiceConnectError.java index a47ddaa..02f106e 100644 --- a/src/main/java/com/zitadel/model/BetaFeatureServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaFeatureServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaFeatureServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaFeatureServiceConnectError.JSON_PROPERTY_CODE, BetaFeatureServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaFeatureServiceConnectError.JSON_PROPERTY_DETAIL + BetaFeatureServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaFeatureServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaFeatureServiceAny detail; + private List details = new ArrayList<>(); public BetaFeatureServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaFeatureServiceConnectError detail(@javax.annotation.Nullable BetaFeatureServiceAny detail) { + public BetaFeatureServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaFeatureServiceConnectError addDetailsItem(BetaFeatureServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaFeatureServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaFeatureServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaFeatureServiceConnectError betaFeatureServiceConnectError = (BetaFeatureServiceConnectError) o; return Objects.equals(this.code, betaFeatureServiceConnectError.code) && Objects.equals(this.message, betaFeatureServiceConnectError.message) && - Objects.equals(this.detail, betaFeatureServiceConnectError.detail) && + Objects.equals(this.details, betaFeatureServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaInstanceServiceAddTrustedDomainRequest.java b/src/main/java/com/zitadel/model/BetaInstanceServiceAddTrustedDomainRequest.java index c002316..48e4dc0 100644 --- a/src/main/java/com/zitadel/model/BetaInstanceServiceAddTrustedDomainRequest.java +++ b/src/main/java/com/zitadel/model/BetaInstanceServiceAddTrustedDomainRequest.java @@ -40,7 +40,7 @@ public class BetaInstanceServiceAddTrustedDomainRequest { private String instanceId; public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public BetaInstanceServiceAddTrustedDomainRequest() { @@ -71,7 +71,7 @@ public void setInstanceId(@javax.annotation.Nullable String instanceId) { this.instanceId = instanceId; } - public BetaInstanceServiceAddTrustedDomainRequest domain(@javax.annotation.Nonnull String domain) { + public BetaInstanceServiceAddTrustedDomainRequest domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -81,9 +81,9 @@ public BetaInstanceServiceAddTrustedDomainRequest domain(@javax.annotation.Nonnu * Get domain * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -91,8 +91,8 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } diff --git a/src/main/java/com/zitadel/model/BetaInstanceServiceAny.java b/src/main/java/com/zitadel/model/BetaInstanceServiceAny.java index f3df10d..7798181 100644 --- a/src/main/java/com/zitadel/model/BetaInstanceServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaInstanceServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaInstanceServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaInstanceServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaInstanceServiceAny() { @@ -62,7 +66,7 @@ public BetaInstanceServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaInstanceServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaInstanceServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaInstanceServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaInstanceServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaInstanceServiceAny betaInstanceServiceAny = (BetaInstanceServiceAny) o; return Objects.equals(this.type, betaInstanceServiceAny.type) && Objects.equals(this.value, betaInstanceServiceAny.value) && - Objects.equals(this.debug, betaInstanceServiceAny.debug) && + equalsNullable(this.debug, betaInstanceServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaInstanceServiceConnectError.java b/src/main/java/com/zitadel/model/BetaInstanceServiceConnectError.java index d19b672..b2ef077 100644 --- a/src/main/java/com/zitadel/model/BetaInstanceServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaInstanceServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaInstanceServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaInstanceServiceConnectError.JSON_PROPERTY_CODE, BetaInstanceServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaInstanceServiceConnectError.JSON_PROPERTY_DETAIL + BetaInstanceServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaInstanceServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaInstanceServiceAny detail; + private List details = new ArrayList<>(); public BetaInstanceServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaInstanceServiceConnectError detail(@javax.annotation.Nullable BetaInstanceServiceAny detail) { + public BetaInstanceServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaInstanceServiceConnectError addDetailsItem(BetaInstanceServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaInstanceServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaInstanceServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaInstanceServiceConnectError betaInstanceServiceConnectError = (BetaInstanceServiceConnectError) o; return Objects.equals(this.code, betaInstanceServiceConnectError.code) && Objects.equals(this.message, betaInstanceServiceConnectError.message) && - Objects.equals(this.detail, betaInstanceServiceConnectError.detail) && + Objects.equals(this.details, betaInstanceServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaInstanceServiceRemoveTrustedDomainRequest.java b/src/main/java/com/zitadel/model/BetaInstanceServiceRemoveTrustedDomainRequest.java index a051e1c..218a282 100644 --- a/src/main/java/com/zitadel/model/BetaInstanceServiceRemoveTrustedDomainRequest.java +++ b/src/main/java/com/zitadel/model/BetaInstanceServiceRemoveTrustedDomainRequest.java @@ -40,7 +40,7 @@ public class BetaInstanceServiceRemoveTrustedDomainRequest { private String instanceId; public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public BetaInstanceServiceRemoveTrustedDomainRequest() { @@ -71,7 +71,7 @@ public void setInstanceId(@javax.annotation.Nullable String instanceId) { this.instanceId = instanceId; } - public BetaInstanceServiceRemoveTrustedDomainRequest domain(@javax.annotation.Nonnull String domain) { + public BetaInstanceServiceRemoveTrustedDomainRequest domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -81,9 +81,9 @@ public BetaInstanceServiceRemoveTrustedDomainRequest domain(@javax.annotation.No * Get domain * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -91,8 +91,8 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } diff --git a/src/main/java/com/zitadel/model/BetaInternalPermissionServiceAny.java b/src/main/java/com/zitadel/model/BetaInternalPermissionServiceAny.java index 98689bb..c64af03 100644 --- a/src/main/java/com/zitadel/model/BetaInternalPermissionServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaInternalPermissionServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaInternalPermissionServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaInternalPermissionServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaInternalPermissionServiceAny() { @@ -62,7 +66,7 @@ public BetaInternalPermissionServiceAny type(@javax.annotation.Nullable String t } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaInternalPermissionServiceAny value(@javax.annotation.Nullable File va } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaInternalPermissionServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaInternalPermissionServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaInternalPermissionServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaInternalPermissionServiceAny betaInternalPermissionServiceAny = (BetaInternalPermissionServiceAny) o; return Objects.equals(this.type, betaInternalPermissionServiceAny.type) && Objects.equals(this.value, betaInternalPermissionServiceAny.value) && - Objects.equals(this.debug, betaInternalPermissionServiceAny.debug) && + equalsNullable(this.debug, betaInternalPermissionServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaInternalPermissionServiceConnectError.java b/src/main/java/com/zitadel/model/BetaInternalPermissionServiceConnectError.java index d319fb9..eb1ec54 100644 --- a/src/main/java/com/zitadel/model/BetaInternalPermissionServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaInternalPermissionServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaInternalPermissionServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaInternalPermissionServiceConnectError.JSON_PROPERTY_CODE, BetaInternalPermissionServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaInternalPermissionServiceConnectError.JSON_PROPERTY_DETAIL + BetaInternalPermissionServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaInternalPermissionServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaInternalPermissionServiceAny detail; + private List details = new ArrayList<>(); public BetaInternalPermissionServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaInternalPermissionServiceConnectError detail(@javax.annotation.Nullable BetaInternalPermissionServiceAny detail) { + public BetaInternalPermissionServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaInternalPermissionServiceConnectError addDetailsItem(BetaInternalPermissionServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaInternalPermissionServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaInternalPermissionServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaInternalPermissionServiceConnectError betaInternalPermissionServiceConnectError = (BetaInternalPermissionServiceConnectError) o; return Objects.equals(this.code, betaInternalPermissionServiceConnectError.code) && Objects.equals(this.message, betaInternalPermissionServiceConnectError.message) && - Objects.equals(this.detail, betaInternalPermissionServiceConnectError.detail) && + Objects.equals(this.details, betaInternalPermissionServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaOIDCServiceAny.java b/src/main/java/com/zitadel/model/BetaOIDCServiceAny.java index 711d903..ae5481b 100644 --- a/src/main/java/com/zitadel/model/BetaOIDCServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaOIDCServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaOIDCServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaOIDCServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaOIDCServiceAny() { @@ -62,7 +66,7 @@ public BetaOIDCServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaOIDCServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaOIDCServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaOIDCServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaOIDCServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaOIDCServiceAny betaOIDCServiceAny = (BetaOIDCServiceAny) o; return Objects.equals(this.type, betaOIDCServiceAny.type) && Objects.equals(this.value, betaOIDCServiceAny.value) && - Objects.equals(this.debug, betaOIDCServiceAny.debug) && + equalsNullable(this.debug, betaOIDCServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaOIDCServiceConnectError.java b/src/main/java/com/zitadel/model/BetaOIDCServiceConnectError.java index f54c1c2..c91fc38 100644 --- a/src/main/java/com/zitadel/model/BetaOIDCServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaOIDCServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaOIDCServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaOIDCServiceConnectError.JSON_PROPERTY_CODE, BetaOIDCServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaOIDCServiceConnectError.JSON_PROPERTY_DETAIL + BetaOIDCServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOIDCServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaOIDCServiceAny detail; + private List details = new ArrayList<>(); public BetaOIDCServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaOIDCServiceConnectError detail(@javax.annotation.Nullable BetaOIDCServiceAny detail) { + public BetaOIDCServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaOIDCServiceConnectError addDetailsItem(BetaOIDCServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaOIDCServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaOIDCServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaOIDCServiceConnectError betaOIDCServiceConnectError = (BetaOIDCServiceConnectError) o; return Objects.equals(this.code, betaOIDCServiceConnectError.code) && Objects.equals(this.message, betaOIDCServiceConnectError.message) && - Objects.equals(this.detail, betaOIDCServiceConnectError.detail) && + Objects.equals(this.details, betaOIDCServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceAddHumanUserRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceAddHumanUserRequest.java index f6ea124..6064d1c 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceAddHumanUserRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceAddHumanUserRequest.java @@ -72,11 +72,11 @@ public class BetaOrganizationServiceAddHumanUserRequest { private BetaOrganizationServiceOrganization organization; public static final String JSON_PROPERTY_PROFILE = "profile"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private BetaOrganizationServiceSetHumanProfile profile; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private BetaOrganizationServiceSetHumanEmail email; public static final String JSON_PROPERTY_PHONE = "phone"; @@ -197,7 +197,7 @@ public void setOrganization(@javax.annotation.Nullable BetaOrganizationServiceOr this.organization = organization; } - public BetaOrganizationServiceAddHumanUserRequest profile(@javax.annotation.Nonnull BetaOrganizationServiceSetHumanProfile profile) { + public BetaOrganizationServiceAddHumanUserRequest profile(@javax.annotation.Nullable BetaOrganizationServiceSetHumanProfile profile) { this.profile = profile; return this; @@ -207,9 +207,9 @@ public BetaOrganizationServiceAddHumanUserRequest profile(@javax.annotation.Nonn * Get profile * @return profile */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BetaOrganizationServiceSetHumanProfile getProfile() { return profile; @@ -217,12 +217,12 @@ public BetaOrganizationServiceSetHumanProfile getProfile() { @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProfile(@javax.annotation.Nonnull BetaOrganizationServiceSetHumanProfile profile) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProfile(@javax.annotation.Nullable BetaOrganizationServiceSetHumanProfile profile) { this.profile = profile; } - public BetaOrganizationServiceAddHumanUserRequest email(@javax.annotation.Nonnull BetaOrganizationServiceSetHumanEmail email) { + public BetaOrganizationServiceAddHumanUserRequest email(@javax.annotation.Nullable BetaOrganizationServiceSetHumanEmail email) { this.email = email; return this; @@ -232,9 +232,9 @@ public BetaOrganizationServiceAddHumanUserRequest email(@javax.annotation.Nonnul * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BetaOrganizationServiceSetHumanEmail getEmail() { return email; @@ -242,8 +242,8 @@ public BetaOrganizationServiceSetHumanEmail getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull BetaOrganizationServiceSetHumanEmail email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable BetaOrganizationServiceSetHumanEmail email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceAddOrganizationDomainRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceAddOrganizationDomainRequest.java index 6e27e1d..7b9735a 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceAddOrganizationDomainRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceAddOrganizationDomainRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceAddOrganizationDomainRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public BetaOrganizationServiceAddOrganizationDomainRequest() { } - public BetaOrganizationServiceAddOrganizationDomainRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceAddOrganizationDomainRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -56,9 +56,9 @@ public BetaOrganizationServiceAddOrganizationDomainRequest organizationId(@javax * Organization Id for the Organization for which the domain is to be added to. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -66,12 +66,12 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } - public BetaOrganizationServiceAddOrganizationDomainRequest domain(@javax.annotation.Nonnull String domain) { + public BetaOrganizationServiceAddOrganizationDomainRequest domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -81,9 +81,9 @@ public BetaOrganizationServiceAddOrganizationDomainRequest domain(@javax.annotat * The domain you want to add to the organization. * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -91,8 +91,8 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceAny.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceAny.java index 8b259b8..e37ad16 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaOrganizationServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaOrganizationServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaOrganizationServiceAny() { @@ -62,7 +66,7 @@ public BetaOrganizationServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaOrganizationServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaOrganizationServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaOrganizationServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaOrganizationServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaOrganizationServiceAny betaOrganizationServiceAny = (BetaOrganizationServiceAny) o; return Objects.equals(this.type, betaOrganizationServiceAny.type) && Objects.equals(this.value, betaOrganizationServiceAny.value) && - Objects.equals(this.debug, betaOrganizationServiceAny.debug) && + equalsNullable(this.debug, betaOrganizationServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceConnectError.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceConnectError.java index d73573d..cd82c8d 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaOrganizationServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaOrganizationServiceConnectError.JSON_PROPERTY_CODE, BetaOrganizationServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaOrganizationServiceConnectError.JSON_PROPERTY_DETAIL + BetaOrganizationServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaOrganizationServiceAny detail; + private List details = new ArrayList<>(); public BetaOrganizationServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaOrganizationServiceConnectError detail(@javax.annotation.Nullable BetaOrganizationServiceAny detail) { + public BetaOrganizationServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaOrganizationServiceConnectError addDetailsItem(BetaOrganizationServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaOrganizationServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaOrganizationServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaOrganizationServiceConnectError betaOrganizationServiceConnectError = (BetaOrganizationServiceConnectError) o; return Objects.equals(this.code, betaOrganizationServiceConnectError.code) && Objects.equals(this.message, betaOrganizationServiceConnectError.message) && - Objects.equals(this.detail, betaOrganizationServiceConnectError.detail) && + Objects.equals(this.details, betaOrganizationServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationRequest.java index 2882252..4f763b4 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationRequest.java @@ -45,7 +45,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceCreateOrganizationRequest { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_ID = "id"; @@ -59,7 +59,7 @@ public class BetaOrganizationServiceCreateOrganizationRequest { public BetaOrganizationServiceCreateOrganizationRequest() { } - public BetaOrganizationServiceCreateOrganizationRequest name(@javax.annotation.Nonnull String name) { + public BetaOrganizationServiceCreateOrganizationRequest name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -69,9 +69,9 @@ public BetaOrganizationServiceCreateOrganizationRequest name(@javax.annotation.N * name of the Organization to be created. * @return name */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -79,8 +79,8 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull String name) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationResponse.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationResponse.java index 252d759..f83ca3b 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationResponse.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceCreateOrganizationResponse.java @@ -46,7 +46,7 @@ public class BetaOrganizationServiceCreateOrganizationResponse { private OffsetDateTime creationDate; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public static final String JSON_PROPERTY_ORGANIZATION_ADMINS = "organizationAdmins"; @@ -81,7 +81,7 @@ public void setCreationDate(@javax.annotation.Nullable OffsetDateTime creationDa this.creationDate = creationDate; } - public BetaOrganizationServiceCreateOrganizationResponse id(@javax.annotation.Nonnull String id) { + public BetaOrganizationServiceCreateOrganizationResponse id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -91,9 +91,9 @@ public BetaOrganizationServiceCreateOrganizationResponse id(@javax.annotation.No * Organization ID of the newly created organization. * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -101,8 +101,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationDomainRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationDomainRequest.java index 8f84c08..0753921 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationDomainRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationDomainRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceDeleteOrganizationDomainRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public BetaOrganizationServiceDeleteOrganizationDomainRequest() { } - public BetaOrganizationServiceDeleteOrganizationDomainRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceDeleteOrganizationDomainRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -56,9 +56,9 @@ public BetaOrganizationServiceDeleteOrganizationDomainRequest organizationId(@ja * Organization Id for the Organization which domain is to be deleted. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -66,12 +66,12 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } - public BetaOrganizationServiceDeleteOrganizationDomainRequest domain(@javax.annotation.Nonnull String domain) { + public BetaOrganizationServiceDeleteOrganizationDomainRequest domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -81,9 +81,9 @@ public BetaOrganizationServiceDeleteOrganizationDomainRequest domain(@javax.anno * Get domain * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -91,8 +91,8 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationMetadataRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationMetadataRequest.java index 595f337..44cdf65 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationMetadataRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationMetadataRequest.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceDeleteOrganizationMetadataRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_KEYS = "keys"; @@ -49,7 +49,7 @@ public class BetaOrganizationServiceDeleteOrganizationMetadataRequest { public BetaOrganizationServiceDeleteOrganizationMetadataRequest() { } - public BetaOrganizationServiceDeleteOrganizationMetadataRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceDeleteOrganizationMetadataRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -59,9 +59,9 @@ public BetaOrganizationServiceDeleteOrganizationMetadataRequest organizationId(@ * Organization ID of Orgalization which metadata is to be deleted is stored on. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -69,8 +69,8 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationRequest.java index b634495..8977a43 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceDeleteOrganizationRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceDeleteOrganizationRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaOrganizationServiceDeleteOrganizationRequest() { } - public BetaOrganizationServiceDeleteOrganizationRequest id(@javax.annotation.Nonnull String id) { + public BetaOrganizationServiceDeleteOrganizationRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaOrganizationServiceDeleteOrganizationRequest id(@javax.annotation.Non * Organization Id for the Organization to be deleted * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceGenerateOrganizationDomainValidationRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceGenerateOrganizationDomainValidationRequest.java index 35317b6..cb10b5f 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceGenerateOrganizationDomainValidationRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceGenerateOrganizationDomainValidationRequest.java @@ -38,11 +38,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceGenerateOrganizationDomainValidationRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public static final String JSON_PROPERTY_TYPE = "type"; @@ -52,7 +52,7 @@ public class BetaOrganizationServiceGenerateOrganizationDomainValidationRequest public BetaOrganizationServiceGenerateOrganizationDomainValidationRequest() { } - public BetaOrganizationServiceGenerateOrganizationDomainValidationRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceGenerateOrganizationDomainValidationRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -62,9 +62,9 @@ public BetaOrganizationServiceGenerateOrganizationDomainValidationRequest organi * Organization Id for the Organization which doman to be validated. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -72,12 +72,12 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } - public BetaOrganizationServiceGenerateOrganizationDomainValidationRequest domain(@javax.annotation.Nonnull String domain) { + public BetaOrganizationServiceGenerateOrganizationDomainValidationRequest domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -87,9 +87,9 @@ public BetaOrganizationServiceGenerateOrganizationDomainValidationRequest domain * The domain which to be deleted. * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -97,8 +97,8 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceHashedPassword.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceHashedPassword.java index 65aeb29..607b872 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceHashedPassword.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceHashedPassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceHashedPassword { public static final String JSON_PROPERTY_HASH = "hash"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String hash; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class BetaOrganizationServiceHashedPassword { public BetaOrganizationServiceHashedPassword() { } - public BetaOrganizationServiceHashedPassword hash(@javax.annotation.Nonnull String hash) { + public BetaOrganizationServiceHashedPassword hash(@javax.annotation.Nullable String hash) { this.hash = hash; return this; @@ -56,9 +56,9 @@ public BetaOrganizationServiceHashedPassword hash(@javax.annotation.Nonnull Stri * Get hash * @return hash */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHash() { return hash; @@ -66,8 +66,8 @@ public String getHash() { @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHash(@javax.annotation.Nonnull String hash) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHash(@javax.annotation.Nullable String hash) { this.hash = hash; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationDomainsRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationDomainsRequest.java index d96784b..ef2da1d 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationDomainsRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationDomainsRequest.java @@ -42,7 +42,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceListOrganizationDomainsRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_PAGINATION = "pagination"; @@ -56,7 +56,7 @@ public class BetaOrganizationServiceListOrganizationDomainsRequest { public BetaOrganizationServiceListOrganizationDomainsRequest() { } - public BetaOrganizationServiceListOrganizationDomainsRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceListOrganizationDomainsRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -66,9 +66,9 @@ public BetaOrganizationServiceListOrganizationDomainsRequest organizationId(@jav * Organization Id for the Organization which domains are to be listed. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -76,8 +76,8 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationMetadataRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationMetadataRequest.java index a591032..f51dde9 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationMetadataRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceListOrganizationMetadataRequest.java @@ -42,7 +42,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceListOrganizationMetadataRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_PAGINATION = "pagination"; @@ -56,7 +56,7 @@ public class BetaOrganizationServiceListOrganizationMetadataRequest { public BetaOrganizationServiceListOrganizationMetadataRequest() { } - public BetaOrganizationServiceListOrganizationMetadataRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceListOrganizationMetadataRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -66,9 +66,9 @@ public BetaOrganizationServiceListOrganizationMetadataRequest organizationId(@ja * Organization ID of Orgalization which metadata is to be listed. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -76,8 +76,8 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServicePassword.java b/src/main/java/com/zitadel/model/BetaOrganizationServicePassword.java index e3aed4b..b07832c 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServicePassword.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServicePassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServicePassword { public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class BetaOrganizationServicePassword { public BetaOrganizationServicePassword() { } - public BetaOrganizationServicePassword password(@javax.annotation.Nonnull String password) { + public BetaOrganizationServicePassword password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -56,9 +56,9 @@ public BetaOrganizationServicePassword password(@javax.annotation.Nonnull String * Get password * @return password */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -66,8 +66,8 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(@javax.annotation.Nonnull String password) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanEmail.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanEmail.java index 9a53ef5..b0784f2 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanEmail.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanEmail.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceSetHumanEmail { public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -57,7 +57,7 @@ public class BetaOrganizationServiceSetHumanEmail { public BetaOrganizationServiceSetHumanEmail() { } - public BetaOrganizationServiceSetHumanEmail email(@javax.annotation.Nonnull String email) { + public BetaOrganizationServiceSetHumanEmail email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -67,9 +67,9 @@ public BetaOrganizationServiceSetHumanEmail email(@javax.annotation.Nonnull Stri * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -77,8 +77,8 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull String email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanProfile.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanProfile.java index f9e4178..48f4ee2 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanProfile.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetHumanProfile.java @@ -45,11 +45,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceSetHumanProfile { public static final String JSON_PROPERTY_GIVEN_NAME = "givenName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String givenName; public static final String JSON_PROPERTY_FAMILY_NAME = "familyName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String familyName; public static final String JSON_PROPERTY_NICK_NAME = "nickName"; @@ -71,7 +71,7 @@ public class BetaOrganizationServiceSetHumanProfile { public BetaOrganizationServiceSetHumanProfile() { } - public BetaOrganizationServiceSetHumanProfile givenName(@javax.annotation.Nonnull String givenName) { + public BetaOrganizationServiceSetHumanProfile givenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; return this; @@ -81,9 +81,9 @@ public BetaOrganizationServiceSetHumanProfile givenName(@javax.annotation.Nonnul * Get givenName * @return givenName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGivenName() { return givenName; @@ -91,12 +91,12 @@ public String getGivenName() { @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGivenName(@javax.annotation.Nonnull String givenName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGivenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; } - public BetaOrganizationServiceSetHumanProfile familyName(@javax.annotation.Nonnull String familyName) { + public BetaOrganizationServiceSetHumanProfile familyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; return this; @@ -106,9 +106,9 @@ public BetaOrganizationServiceSetHumanProfile familyName(@javax.annotation.Nonnu * Get familyName * @return familyName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFamilyName() { return familyName; @@ -116,8 +116,8 @@ public String getFamilyName() { @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFamilyName(@javax.annotation.Nonnull String familyName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFamilyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetMetadataEntry.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetMetadataEntry.java index 21f7628..77eb27c 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetMetadataEntry.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetMetadataEntry.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceSetMetadataEntry { public static final String JSON_PROPERTY_KEY = "key"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String key; public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private byte[] value; public BetaOrganizationServiceSetMetadataEntry() { } - public BetaOrganizationServiceSetMetadataEntry key(@javax.annotation.Nonnull String key) { + public BetaOrganizationServiceSetMetadataEntry key(@javax.annotation.Nullable String key) { this.key = key; return this; @@ -56,9 +56,9 @@ public BetaOrganizationServiceSetMetadataEntry key(@javax.annotation.Nonnull Str * Get key * @return key */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getKey() { return key; @@ -66,12 +66,12 @@ public String getKey() { @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKey(@javax.annotation.Nonnull String key) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKey(@javax.annotation.Nullable String key) { this.key = key; } - public BetaOrganizationServiceSetMetadataEntry value(@javax.annotation.Nonnull byte[] value) { + public BetaOrganizationServiceSetMetadataEntry value(@javax.annotation.Nullable byte[] value) { this.value = value; return this; @@ -81,9 +81,9 @@ public BetaOrganizationServiceSetMetadataEntry value(@javax.annotation.Nonnull b * Get value * @return value */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getValue() { return value; @@ -91,8 +91,8 @@ public byte[] getValue() { @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(@javax.annotation.Nonnull byte[] value) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValue(@javax.annotation.Nullable byte[] value) { this.value = value; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetOrganizationMetadataRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetOrganizationMetadataRequest.java index 8c6c044..ea9de0e 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceSetOrganizationMetadataRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceSetOrganizationMetadataRequest.java @@ -40,7 +40,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceSetOrganizationMetadataRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_METADATA = "metadata"; @@ -50,7 +50,7 @@ public class BetaOrganizationServiceSetOrganizationMetadataRequest { public BetaOrganizationServiceSetOrganizationMetadataRequest() { } - public BetaOrganizationServiceSetOrganizationMetadataRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceSetOrganizationMetadataRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -60,9 +60,9 @@ public BetaOrganizationServiceSetOrganizationMetadataRequest organizationId(@jav * Organization Id for the Organization doman to be verified. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -70,8 +70,8 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceUpdateOrganizationRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceUpdateOrganizationRequest.java index 665abbd..b61775e 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceUpdateOrganizationRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceUpdateOrganizationRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceUpdateOrganizationRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String name; public BetaOrganizationServiceUpdateOrganizationRequest() { } - public BetaOrganizationServiceUpdateOrganizationRequest id(@javax.annotation.Nonnull String id) { + public BetaOrganizationServiceUpdateOrganizationRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -56,9 +56,9 @@ public BetaOrganizationServiceUpdateOrganizationRequest id(@javax.annotation.Non * Organization Id for the Organization to be updated * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -66,12 +66,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } - public BetaOrganizationServiceUpdateOrganizationRequest name(@javax.annotation.Nonnull String name) { + public BetaOrganizationServiceUpdateOrganizationRequest name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -81,9 +81,9 @@ public BetaOrganizationServiceUpdateOrganizationRequest name(@javax.annotation.N * New Name for the Organization to be updated * @return name */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -91,8 +91,8 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull String name) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/src/main/java/com/zitadel/model/BetaOrganizationServiceVerifyOrganizationDomainRequest.java b/src/main/java/com/zitadel/model/BetaOrganizationServiceVerifyOrganizationDomainRequest.java index cad6328..1b126ad 100644 --- a/src/main/java/com/zitadel/model/BetaOrganizationServiceVerifyOrganizationDomainRequest.java +++ b/src/main/java/com/zitadel/model/BetaOrganizationServiceVerifyOrganizationDomainRequest.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaOrganizationServiceVerifyOrganizationDomainRequest { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public static final String JSON_PROPERTY_DOMAIN = "domain"; @@ -46,7 +46,7 @@ public class BetaOrganizationServiceVerifyOrganizationDomainRequest { public BetaOrganizationServiceVerifyOrganizationDomainRequest() { } - public BetaOrganizationServiceVerifyOrganizationDomainRequest organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaOrganizationServiceVerifyOrganizationDomainRequest organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -56,9 +56,9 @@ public BetaOrganizationServiceVerifyOrganizationDomainRequest organizationId(@ja * Organization Id for the Organization doman to be verified. * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -66,8 +66,8 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectGrantRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectGrantRequest.java index 2eb31ff..c7988c2 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectGrantRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectGrantRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceActivateProjectGrantRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_GRANTED_ORGANIZATION_ID = "grantedOrganizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String grantedOrganizationId; public BetaProjectServiceActivateProjectGrantRequest() { } - public BetaProjectServiceActivateProjectGrantRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceActivateProjectGrantRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -56,9 +56,9 @@ public BetaProjectServiceActivateProjectGrantRequest projectId(@javax.annotation * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -66,12 +66,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceActivateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + public BetaProjectServiceActivateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; return this; @@ -81,9 +81,9 @@ public BetaProjectServiceActivateProjectGrantRequest grantedOrganizationId(@java * Organization the project is granted to. * @return grantedOrganizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGrantedOrganizationId() { return grantedOrganizationId; @@ -91,8 +91,8 @@ public String getGrantedOrganizationId() { @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGrantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGrantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectRequest.java index 08e887c..bd640ec 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceActivateProjectRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceActivateProjectRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaProjectServiceActivateProjectRequest() { } - public BetaProjectServiceActivateProjectRequest id(@javax.annotation.Nonnull String id) { + public BetaProjectServiceActivateProjectRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaProjectServiceActivateProjectRequest id(@javax.annotation.Nonnull Str * The unique identifier of the project. * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceAddProjectRoleRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceAddProjectRoleRequest.java index 6d83207..a1548d3 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceAddProjectRoleRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceAddProjectRoleRequest.java @@ -42,15 +42,15 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceAddProjectRoleRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_ROLE_KEY = "roleKey"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String roleKey; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_GROUP = "group"; @@ -60,7 +60,7 @@ public class BetaProjectServiceAddProjectRoleRequest { public BetaProjectServiceAddProjectRoleRequest() { } - public BetaProjectServiceAddProjectRoleRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceAddProjectRoleRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -70,9 +70,9 @@ public BetaProjectServiceAddProjectRoleRequest projectId(@javax.annotation.Nonnu * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -80,12 +80,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceAddProjectRoleRequest roleKey(@javax.annotation.Nonnull String roleKey) { + public BetaProjectServiceAddProjectRoleRequest roleKey(@javax.annotation.Nullable String roleKey) { this.roleKey = roleKey; return this; @@ -95,9 +95,9 @@ public BetaProjectServiceAddProjectRoleRequest roleKey(@javax.annotation.Nonnull * The key is the only relevant attribute for ZITADEL regarding the authorization checks. * @return roleKey */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROLE_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRoleKey() { return roleKey; @@ -105,12 +105,12 @@ public String getRoleKey() { @JsonProperty(JSON_PROPERTY_ROLE_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoleKey(@javax.annotation.Nonnull String roleKey) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRoleKey(@javax.annotation.Nullable String roleKey) { this.roleKey = roleKey; } - public BetaProjectServiceAddProjectRoleRequest displayName(@javax.annotation.Nonnull String displayName) { + public BetaProjectServiceAddProjectRoleRequest displayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; return this; @@ -120,9 +120,9 @@ public BetaProjectServiceAddProjectRoleRequest displayName(@javax.annotation.Non * Name displayed for the role. * @return displayName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDisplayName() { return displayName; @@ -130,8 +130,8 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(@javax.annotation.Nonnull String displayName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDisplayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceAdmin.java b/src/main/java/com/zitadel/model/BetaProjectServiceAdmin.java new file mode 100644 index 0000000..846d59f --- /dev/null +++ b/src/main/java/com/zitadel/model/BetaProjectServiceAdmin.java @@ -0,0 +1,209 @@ +/* + * Zitadel SDK + * The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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.zitadel.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; + +/** + * BetaProjectServiceAdmin + */ +@JsonPropertyOrder({ + BetaProjectServiceAdmin.JSON_PROPERTY_USER_ID, + BetaProjectServiceAdmin.JSON_PROPERTY_ROLES +}) +@javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") +public class BetaProjectServiceAdmin { + public static final String JSON_PROPERTY_USER_ID = "userId"; + @javax.annotation.Nullable + private String userId; + + public static final String JSON_PROPERTY_ROLES = "roles"; + @javax.annotation.Nullable + private List roles = new ArrayList<>(); + + public BetaProjectServiceAdmin() { + } + + public BetaProjectServiceAdmin userId(@javax.annotation.Nullable String userId) { + + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + public BetaProjectServiceAdmin roles(@javax.annotation.Nullable List roles) { + + this.roles = roles; + return this; + } + + public BetaProjectServiceAdmin addRolesItem(String rolesItem) { + if (this.roles == null) { + this.roles = new ArrayList<>(); + } + this.roles.add(rolesItem); + return this; + } + + /** + * specify the Project Member Roles for the provided user (default is PROJECT_OWNER if roles are empty + * @return roles + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ROLES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRoles() { + return roles; + } + + + @JsonProperty(JSON_PROPERTY_ROLES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRoles(@javax.annotation.Nullable List roles) { + this.roles = roles; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BetaProjectServiceAdmin betaProjectServiceAdmin = (BetaProjectServiceAdmin) o; + return Objects.equals(this.userId, betaProjectServiceAdmin.userId) && + Objects.equals(this.roles, betaProjectServiceAdmin.roles); + } + + @Override + public int hashCode() { + return Objects.hash(userId, roles); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BetaProjectServiceAdmin {\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" roles: ").append(toIndentedString(roles)).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 "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `userId` to the URL query string + if (getUserId() != null) { + try { + joiner.add(String.format("%suserId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUserId()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `roles` to the URL query string + if (getRoles() != null) { + for (int i = 0; i < getRoles().size(); i++) { + try { + joiner.add(String.format("%sroles%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getRoles().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + + return joiner.toString(); + } + +} + diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceAny.java b/src/main/java/com/zitadel/model/BetaProjectServiceAny.java index 92ffa68..23225e7 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaProjectServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaProjectServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaProjectServiceAny() { @@ -62,7 +66,7 @@ public BetaProjectServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaProjectServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaProjectServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaProjectServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaProjectServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaProjectServiceAny betaProjectServiceAny = (BetaProjectServiceAny) o; return Objects.equals(this.type, betaProjectServiceAny.type) && Objects.equals(this.value, betaProjectServiceAny.value) && - Objects.equals(this.debug, betaProjectServiceAny.debug) && + equalsNullable(this.debug, betaProjectServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceConnectError.java b/src/main/java/com/zitadel/model/BetaProjectServiceConnectError.java index b456a6d..827d5fc 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaProjectServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaProjectServiceConnectError.JSON_PROPERTY_CODE, BetaProjectServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaProjectServiceConnectError.JSON_PROPERTY_DETAIL + BetaProjectServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaProjectServiceAny detail; + private List details = new ArrayList<>(); public BetaProjectServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaProjectServiceConnectError detail(@javax.annotation.Nullable BetaProjectServiceAny detail) { + public BetaProjectServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaProjectServiceConnectError addDetailsItem(BetaProjectServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaProjectServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaProjectServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaProjectServiceConnectError betaProjectServiceConnectError = (BetaProjectServiceConnectError) o; return Objects.equals(this.code, betaProjectServiceConnectError.code) && Objects.equals(this.message, betaProjectServiceConnectError.message) && - Objects.equals(this.detail, betaProjectServiceConnectError.detail) && + Objects.equals(this.details, betaProjectServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectGrantRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectGrantRequest.java index c47255e..0b2c800 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectGrantRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectGrantRequest.java @@ -40,11 +40,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceCreateProjectGrantRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_GRANTED_ORGANIZATION_ID = "grantedOrganizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String grantedOrganizationId; public static final String JSON_PROPERTY_ROLE_KEYS = "roleKeys"; @@ -54,7 +54,7 @@ public class BetaProjectServiceCreateProjectGrantRequest { public BetaProjectServiceCreateProjectGrantRequest() { } - public BetaProjectServiceCreateProjectGrantRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceCreateProjectGrantRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -64,9 +64,9 @@ public BetaProjectServiceCreateProjectGrantRequest projectId(@javax.annotation.N * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -74,12 +74,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceCreateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + public BetaProjectServiceCreateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; return this; @@ -89,9 +89,9 @@ public BetaProjectServiceCreateProjectGrantRequest grantedOrganizationId(@javax. * Organization the project is granted to. * @return grantedOrganizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGrantedOrganizationId() { return grantedOrganizationId; @@ -99,8 +99,8 @@ public String getGrantedOrganizationId() { @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGrantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGrantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectRequest.java index 1b40f93..08077a4 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceCreateProjectRequest.java @@ -20,7 +20,11 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.zitadel.model.BetaProjectServiceAdmin; import com.zitadel.model.BetaProjectServicePrivateLabelingSetting; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; @@ -41,7 +45,8 @@ BetaProjectServiceCreateProjectRequest.JSON_PROPERTY_PROJECT_ROLE_ASSERTION, BetaProjectServiceCreateProjectRequest.JSON_PROPERTY_AUTHORIZATION_REQUIRED, BetaProjectServiceCreateProjectRequest.JSON_PROPERTY_PROJECT_ACCESS_REQUIRED, - BetaProjectServiceCreateProjectRequest.JSON_PROPERTY_PRIVATE_LABELING_SETTING + BetaProjectServiceCreateProjectRequest.JSON_PROPERTY_PRIVATE_LABELING_SETTING, + BetaProjectServiceCreateProjectRequest.JSON_PROPERTY_ADMINS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceCreateProjectRequest { @@ -54,7 +59,7 @@ public class BetaProjectServiceCreateProjectRequest { private JsonNullable id = JsonNullable.undefined(); public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_PROJECT_ROLE_ASSERTION = "projectRoleAssertion"; @@ -73,6 +78,10 @@ public class BetaProjectServiceCreateProjectRequest { @javax.annotation.Nullable private BetaProjectServicePrivateLabelingSetting privateLabelingSetting; + public static final String JSON_PROPERTY_ADMINS = "admins"; + @javax.annotation.Nullable + private List admins = new ArrayList<>(); + public BetaProjectServiceCreateProjectRequest() { } @@ -134,7 +143,7 @@ public void setId(@javax.annotation.Nullable String id) { this.id = JsonNullable.of(id); } - public BetaProjectServiceCreateProjectRequest name(@javax.annotation.Nonnull String name) { + public BetaProjectServiceCreateProjectRequest name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -144,9 +153,9 @@ public BetaProjectServiceCreateProjectRequest name(@javax.annotation.Nonnull Str * Name of the project. * @return name */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -154,8 +163,8 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull String name) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { this.name = name; } @@ -259,6 +268,39 @@ public void setPrivateLabelingSetting(@javax.annotation.Nullable BetaProjectServ this.privateLabelingSetting = privateLabelingSetting; } + public BetaProjectServiceCreateProjectRequest admins(@javax.annotation.Nullable List admins) { + + this.admins = admins; + return this; + } + + public BetaProjectServiceCreateProjectRequest addAdminsItem(BetaProjectServiceAdmin adminsItem) { + if (this.admins == null) { + this.admins = new ArrayList<>(); + } + this.admins.add(adminsItem); + return this; + } + + /** + * List of users and Project Member roles (PROJECT_OWNER, by default) to be assigned to those users. + * @return admins + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADMINS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getAdmins() { + return admins; + } + + + @JsonProperty(JSON_PROPERTY_ADMINS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAdmins(@javax.annotation.Nullable List admins) { + this.admins = admins; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -274,7 +316,8 @@ public boolean equals(Object o) { Objects.equals(this.projectRoleAssertion, betaProjectServiceCreateProjectRequest.projectRoleAssertion) && Objects.equals(this.authorizationRequired, betaProjectServiceCreateProjectRequest.authorizationRequired) && Objects.equals(this.projectAccessRequired, betaProjectServiceCreateProjectRequest.projectAccessRequired) && - Objects.equals(this.privateLabelingSetting, betaProjectServiceCreateProjectRequest.privateLabelingSetting); + Objects.equals(this.privateLabelingSetting, betaProjectServiceCreateProjectRequest.privateLabelingSetting) && + Objects.equals(this.admins, betaProjectServiceCreateProjectRequest.admins); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -283,7 +326,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(organizationId, hashCodeNullable(id), name, projectRoleAssertion, authorizationRequired, projectAccessRequired, privateLabelingSetting); + return Objects.hash(organizationId, hashCodeNullable(id), name, projectRoleAssertion, authorizationRequired, projectAccessRequired, privateLabelingSetting, admins); } private static int hashCodeNullable(JsonNullable a) { @@ -304,6 +347,7 @@ public String toString() { sb.append(" authorizationRequired: ").append(toIndentedString(authorizationRequired)).append("\n"); sb.append(" projectAccessRequired: ").append(toIndentedString(projectAccessRequired)).append("\n"); sb.append(" privateLabelingSetting: ").append(toIndentedString(privateLabelingSetting)).append("\n"); + sb.append(" admins: ").append(toIndentedString(admins)).append("\n"); sb.append("}"); return sb.toString(); } @@ -421,6 +465,16 @@ public String toUrlQueryString(String prefix) { } } + // add `admins` to the URL query string + if (getAdmins() != null) { + for (int i = 0; i < getAdmins().size(); i++) { + if (getAdmins().get(i) != null) { + joiner.add(getAdmins().get(i).toUrlQueryString(String.format("%sadmins%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + return joiner.toString(); } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectGrantRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectGrantRequest.java index 2944775..bce6d01 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectGrantRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectGrantRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceDeactivateProjectGrantRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_GRANTED_ORGANIZATION_ID = "grantedOrganizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String grantedOrganizationId; public BetaProjectServiceDeactivateProjectGrantRequest() { } - public BetaProjectServiceDeactivateProjectGrantRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceDeactivateProjectGrantRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -56,9 +56,9 @@ public BetaProjectServiceDeactivateProjectGrantRequest projectId(@javax.annotati * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -66,12 +66,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceDeactivateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + public BetaProjectServiceDeactivateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; return this; @@ -81,9 +81,9 @@ public BetaProjectServiceDeactivateProjectGrantRequest grantedOrganizationId(@ja * Organization the project is granted to. * @return grantedOrganizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGrantedOrganizationId() { return grantedOrganizationId; @@ -91,8 +91,8 @@ public String getGrantedOrganizationId() { @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGrantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGrantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectRequest.java index 6b30866..01e2103 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceDeactivateProjectRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceDeactivateProjectRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaProjectServiceDeactivateProjectRequest() { } - public BetaProjectServiceDeactivateProjectRequest id(@javax.annotation.Nonnull String id) { + public BetaProjectServiceDeactivateProjectRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaProjectServiceDeactivateProjectRequest id(@javax.annotation.Nonnull S * The unique identifier of the project. * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectGrantRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectGrantRequest.java index ee9d7df..d2f6cc9 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectGrantRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectGrantRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceDeleteProjectGrantRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_GRANTED_ORGANIZATION_ID = "grantedOrganizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String grantedOrganizationId; public BetaProjectServiceDeleteProjectGrantRequest() { } - public BetaProjectServiceDeleteProjectGrantRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceDeleteProjectGrantRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -56,9 +56,9 @@ public BetaProjectServiceDeleteProjectGrantRequest projectId(@javax.annotation.N * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -66,12 +66,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceDeleteProjectGrantRequest grantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + public BetaProjectServiceDeleteProjectGrantRequest grantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; return this; @@ -81,9 +81,9 @@ public BetaProjectServiceDeleteProjectGrantRequest grantedOrganizationId(@javax. * Organization the project is granted to. * @return grantedOrganizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGrantedOrganizationId() { return grantedOrganizationId; @@ -91,8 +91,8 @@ public String getGrantedOrganizationId() { @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGrantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGrantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectRequest.java index 4c9d966..0f8cf44 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceDeleteProjectRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceDeleteProjectRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaProjectServiceDeleteProjectRequest() { } - public BetaProjectServiceDeleteProjectRequest id(@javax.annotation.Nonnull String id) { + public BetaProjectServiceDeleteProjectRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaProjectServiceDeleteProjectRequest id(@javax.annotation.Nonnull Strin * The unique identifier of the project. * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceListProjectRolesRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceListProjectRolesRequest.java index cb94b11..15b8fda 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceListProjectRolesRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceListProjectRolesRequest.java @@ -44,7 +44,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceListProjectRolesRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_PAGINATION = "pagination"; @@ -62,7 +62,7 @@ public class BetaProjectServiceListProjectRolesRequest { public BetaProjectServiceListProjectRolesRequest() { } - public BetaProjectServiceListProjectRolesRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceListProjectRolesRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -72,9 +72,9 @@ public BetaProjectServiceListProjectRolesRequest projectId(@javax.annotation.Non * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -82,8 +82,8 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceRemoveProjectRoleRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceRemoveProjectRoleRequest.java index 6647790..72a25ac 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceRemoveProjectRoleRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceRemoveProjectRoleRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceRemoveProjectRoleRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_ROLE_KEY = "roleKey"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String roleKey; public BetaProjectServiceRemoveProjectRoleRequest() { } - public BetaProjectServiceRemoveProjectRoleRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceRemoveProjectRoleRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -56,9 +56,9 @@ public BetaProjectServiceRemoveProjectRoleRequest projectId(@javax.annotation.No * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -66,12 +66,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceRemoveProjectRoleRequest roleKey(@javax.annotation.Nonnull String roleKey) { + public BetaProjectServiceRemoveProjectRoleRequest roleKey(@javax.annotation.Nullable String roleKey) { this.roleKey = roleKey; return this; @@ -81,9 +81,9 @@ public BetaProjectServiceRemoveProjectRoleRequest roleKey(@javax.annotation.Nonn * The key is the only relevant attribute for ZITADEL regarding the authorization checks. * @return roleKey */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROLE_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRoleKey() { return roleKey; @@ -91,8 +91,8 @@ public String getRoleKey() { @JsonProperty(JSON_PROPERTY_ROLE_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoleKey(@javax.annotation.Nonnull String roleKey) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRoleKey(@javax.annotation.Nullable String roleKey) { this.roleKey = roleKey; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectGrantRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectGrantRequest.java index 8d7f634..4ca4e44 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectGrantRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectGrantRequest.java @@ -40,11 +40,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceUpdateProjectGrantRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_GRANTED_ORGANIZATION_ID = "grantedOrganizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String grantedOrganizationId; public static final String JSON_PROPERTY_ROLE_KEYS = "roleKeys"; @@ -54,7 +54,7 @@ public class BetaProjectServiceUpdateProjectGrantRequest { public BetaProjectServiceUpdateProjectGrantRequest() { } - public BetaProjectServiceUpdateProjectGrantRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceUpdateProjectGrantRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -64,9 +64,9 @@ public BetaProjectServiceUpdateProjectGrantRequest projectId(@javax.annotation.N * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -74,12 +74,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceUpdateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + public BetaProjectServiceUpdateProjectGrantRequest grantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; return this; @@ -89,9 +89,9 @@ public BetaProjectServiceUpdateProjectGrantRequest grantedOrganizationId(@javax. * Organization the project is granted to. * @return grantedOrganizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGrantedOrganizationId() { return grantedOrganizationId; @@ -99,8 +99,8 @@ public String getGrantedOrganizationId() { @JsonProperty(JSON_PROPERTY_GRANTED_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGrantedOrganizationId(@javax.annotation.Nonnull String grantedOrganizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGrantedOrganizationId(@javax.annotation.Nullable String grantedOrganizationId) { this.grantedOrganizationId = grantedOrganizationId; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRequest.java index fa63381..c0dce8f 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRequest.java @@ -45,7 +45,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceUpdateProjectRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public static final String JSON_PROPERTY_NAME = "name"; @@ -71,7 +71,7 @@ public class BetaProjectServiceUpdateProjectRequest { public BetaProjectServiceUpdateProjectRequest() { } - public BetaProjectServiceUpdateProjectRequest id(@javax.annotation.Nonnull String id) { + public BetaProjectServiceUpdateProjectRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -81,9 +81,9 @@ public BetaProjectServiceUpdateProjectRequest id(@javax.annotation.Nonnull Strin * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -91,8 +91,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRoleRequest.java b/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRoleRequest.java index fd5c618..141989a 100644 --- a/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRoleRequest.java +++ b/src/main/java/com/zitadel/model/BetaProjectServiceUpdateProjectRoleRequest.java @@ -42,16 +42,16 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaProjectServiceUpdateProjectRoleRequest { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String projectId; public static final String JSON_PROPERTY_ROLE_KEY = "roleKey"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String roleKey; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; @javax.annotation.Nullable - private String displayName; + private JsonNullable displayName = JsonNullable.undefined(); public static final String JSON_PROPERTY_GROUP = "group"; @javax.annotation.Nullable @@ -60,7 +60,7 @@ public class BetaProjectServiceUpdateProjectRoleRequest { public BetaProjectServiceUpdateProjectRoleRequest() { } - public BetaProjectServiceUpdateProjectRoleRequest projectId(@javax.annotation.Nonnull String projectId) { + public BetaProjectServiceUpdateProjectRoleRequest projectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; return this; @@ -70,9 +70,9 @@ public BetaProjectServiceUpdateProjectRoleRequest projectId(@javax.annotation.No * ID of the project. * @return projectId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProjectId() { return projectId; @@ -80,12 +80,12 @@ public String getProjectId() { @JsonProperty(JSON_PROPERTY_PROJECT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProjectId(@javax.annotation.Nonnull String projectId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(@javax.annotation.Nullable String projectId) { this.projectId = projectId; } - public BetaProjectServiceUpdateProjectRoleRequest roleKey(@javax.annotation.Nonnull String roleKey) { + public BetaProjectServiceUpdateProjectRoleRequest roleKey(@javax.annotation.Nullable String roleKey) { this.roleKey = roleKey; return this; @@ -95,9 +95,9 @@ public BetaProjectServiceUpdateProjectRoleRequest roleKey(@javax.annotation.Nonn * The key is the only relevant attribute for ZITADEL regarding the authorization checks. * @return roleKey */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROLE_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRoleKey() { return roleKey; @@ -105,14 +105,14 @@ public String getRoleKey() { @JsonProperty(JSON_PROPERTY_ROLE_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoleKey(@javax.annotation.Nonnull String roleKey) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRoleKey(@javax.annotation.Nullable String roleKey) { this.roleKey = roleKey; } public BetaProjectServiceUpdateProjectRoleRequest displayName(@javax.annotation.Nullable String displayName) { + this.displayName = JsonNullable.of(displayName); - this.displayName = displayName; return this; } @@ -121,20 +121,28 @@ public BetaProjectServiceUpdateProjectRoleRequest displayName(@javax.annotation. * @return displayName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonIgnore public String getDisplayName() { - return displayName; + return displayName.orElse(null); } + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDisplayName_JsonNullable() { + return displayName; + } + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(@javax.annotation.Nullable String displayName) { + public void setDisplayName_JsonNullable(JsonNullable displayName) { this.displayName = displayName; } + public void setDisplayName(@javax.annotation.Nullable String displayName) { + this.displayName = JsonNullable.of(displayName); + } + public BetaProjectServiceUpdateProjectRoleRequest group(@javax.annotation.Nullable String group) { this.group = JsonNullable.of(group); @@ -179,7 +187,7 @@ public boolean equals(Object o) { BetaProjectServiceUpdateProjectRoleRequest betaProjectServiceUpdateProjectRoleRequest = (BetaProjectServiceUpdateProjectRoleRequest) o; return Objects.equals(this.projectId, betaProjectServiceUpdateProjectRoleRequest.projectId) && Objects.equals(this.roleKey, betaProjectServiceUpdateProjectRoleRequest.roleKey) && - Objects.equals(this.displayName, betaProjectServiceUpdateProjectRoleRequest.displayName) && + equalsNullable(this.displayName, betaProjectServiceUpdateProjectRoleRequest.displayName) && equalsNullable(this.group, betaProjectServiceUpdateProjectRoleRequest.group); } @@ -189,7 +197,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(projectId, roleKey, displayName, hashCodeNullable(group)); + return Objects.hash(projectId, roleKey, hashCodeNullable(displayName), hashCodeNullable(group)); } private static int hashCodeNullable(JsonNullable a) { diff --git a/src/main/java/com/zitadel/model/BetaSessionServiceAny.java b/src/main/java/com/zitadel/model/BetaSessionServiceAny.java index bcd6d3c..daba8dc 100644 --- a/src/main/java/com/zitadel/model/BetaSessionServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaSessionServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaSessionServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaSessionServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaSessionServiceAny() { @@ -62,7 +66,7 @@ public BetaSessionServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaSessionServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaSessionServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaSessionServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaSessionServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaSessionServiceAny betaSessionServiceAny = (BetaSessionServiceAny) o; return Objects.equals(this.type, betaSessionServiceAny.type) && Objects.equals(this.value, betaSessionServiceAny.value) && - Objects.equals(this.debug, betaSessionServiceAny.debug) && + equalsNullable(this.debug, betaSessionServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaSessionServiceCheckWebAuthN.java b/src/main/java/com/zitadel/model/BetaSessionServiceCheckWebAuthN.java index f4b0e84..aefddc1 100644 --- a/src/main/java/com/zitadel/model/BetaSessionServiceCheckWebAuthN.java +++ b/src/main/java/com/zitadel/model/BetaSessionServiceCheckWebAuthN.java @@ -37,19 +37,22 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaSessionServiceCheckWebAuthN { public static final String JSON_PROPERTY_CREDENTIAL_ASSERTION_DATA = "credentialAssertionData"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Map credentialAssertionData = new HashMap<>(); public BetaSessionServiceCheckWebAuthN() { } - public BetaSessionServiceCheckWebAuthN credentialAssertionData(@javax.annotation.Nonnull Map credentialAssertionData) { + public BetaSessionServiceCheckWebAuthN credentialAssertionData(@javax.annotation.Nullable Map credentialAssertionData) { this.credentialAssertionData = credentialAssertionData; return this; } public BetaSessionServiceCheckWebAuthN putCredentialAssertionDataItem(String key, Object credentialAssertionDataItem) { + if (this.credentialAssertionData == null) { + this.credentialAssertionData = new HashMap<>(); + } this.credentialAssertionData.put(key, credentialAssertionDataItem); return this; } @@ -58,9 +61,9 @@ public BetaSessionServiceCheckWebAuthN putCredentialAssertionDataItem(String key * `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. * @return credentialAssertionData */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREDENTIAL_ASSERTION_DATA) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getCredentialAssertionData() { return credentialAssertionData; @@ -68,8 +71,8 @@ public Map getCredentialAssertionData() { @JsonProperty(JSON_PROPERTY_CREDENTIAL_ASSERTION_DATA) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) - public void setCredentialAssertionData(@javax.annotation.Nonnull Map credentialAssertionData) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setCredentialAssertionData(@javax.annotation.Nullable Map credentialAssertionData) { this.credentialAssertionData = credentialAssertionData; } diff --git a/src/main/java/com/zitadel/model/BetaSessionServiceConnectError.java b/src/main/java/com/zitadel/model/BetaSessionServiceConnectError.java index 540ee11..48927c0 100644 --- a/src/main/java/com/zitadel/model/BetaSessionServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaSessionServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaSessionServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaSessionServiceConnectError.JSON_PROPERTY_CODE, BetaSessionServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaSessionServiceConnectError.JSON_PROPERTY_DETAIL + BetaSessionServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaSessionServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaSessionServiceAny detail; + private List details = new ArrayList<>(); public BetaSessionServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaSessionServiceConnectError detail(@javax.annotation.Nullable BetaSessionServiceAny detail) { + public BetaSessionServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaSessionServiceConnectError addDetailsItem(BetaSessionServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaSessionServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaSessionServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaSessionServiceConnectError betaSessionServiceConnectError = (BetaSessionServiceConnectError) o; return Objects.equals(this.code, betaSessionServiceConnectError.code) && Objects.equals(this.message, betaSessionServiceConnectError.message) && - Objects.equals(this.detail, betaSessionServiceConnectError.detail) && + Objects.equals(this.details, betaSessionServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaSessionServiceWebAuthN.java b/src/main/java/com/zitadel/model/BetaSessionServiceWebAuthN.java index f5bc140..d991230 100644 --- a/src/main/java/com/zitadel/model/BetaSessionServiceWebAuthN.java +++ b/src/main/java/com/zitadel/model/BetaSessionServiceWebAuthN.java @@ -37,17 +37,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaSessionServiceWebAuthN { public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public static final String JSON_PROPERTY_USER_VERIFICATION_REQUIREMENT = "userVerificationRequirement"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private BetaSessionServiceUserVerificationRequirement userVerificationRequirement; public BetaSessionServiceWebAuthN() { } - public BetaSessionServiceWebAuthN domain(@javax.annotation.Nonnull String domain) { + public BetaSessionServiceWebAuthN domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -57,9 +57,9 @@ public BetaSessionServiceWebAuthN domain(@javax.annotation.Nonnull String domain * Get domain * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -67,12 +67,12 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } - public BetaSessionServiceWebAuthN userVerificationRequirement(@javax.annotation.Nonnull BetaSessionServiceUserVerificationRequirement userVerificationRequirement) { + public BetaSessionServiceWebAuthN userVerificationRequirement(@javax.annotation.Nullable BetaSessionServiceUserVerificationRequirement userVerificationRequirement) { this.userVerificationRequirement = userVerificationRequirement; return this; @@ -82,9 +82,9 @@ public BetaSessionServiceWebAuthN userVerificationRequirement(@javax.annotation. * Get userVerificationRequirement * @return userVerificationRequirement */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_VERIFICATION_REQUIREMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BetaSessionServiceUserVerificationRequirement getUserVerificationRequirement() { return userVerificationRequirement; @@ -92,8 +92,8 @@ public BetaSessionServiceUserVerificationRequirement getUserVerificationRequirem @JsonProperty(JSON_PROPERTY_USER_VERIFICATION_REQUIREMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserVerificationRequirement(@javax.annotation.Nonnull BetaSessionServiceUserVerificationRequirement userVerificationRequirement) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserVerificationRequirement(@javax.annotation.Nullable BetaSessionServiceUserVerificationRequirement userVerificationRequirement) { this.userVerificationRequirement = userVerificationRequirement; } diff --git a/src/main/java/com/zitadel/model/BetaSettingsServiceAny.java b/src/main/java/com/zitadel/model/BetaSettingsServiceAny.java index 8f3c498..58b1d17 100644 --- a/src/main/java/com/zitadel/model/BetaSettingsServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaSettingsServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaSettingsServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaSettingsServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaSettingsServiceAny() { @@ -62,7 +66,7 @@ public BetaSettingsServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaSettingsServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaSettingsServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaSettingsServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaSettingsServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaSettingsServiceAny betaSettingsServiceAny = (BetaSettingsServiceAny) o; return Objects.equals(this.type, betaSettingsServiceAny.type) && Objects.equals(this.value, betaSettingsServiceAny.value) && - Objects.equals(this.debug, betaSettingsServiceAny.debug) && + equalsNullable(this.debug, betaSettingsServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaSettingsServiceConnectError.java b/src/main/java/com/zitadel/model/BetaSettingsServiceConnectError.java index 19803f4..89542eb 100644 --- a/src/main/java/com/zitadel/model/BetaSettingsServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaSettingsServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaSettingsServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaSettingsServiceConnectError.JSON_PROPERTY_CODE, BetaSettingsServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaSettingsServiceConnectError.JSON_PROPERTY_DETAIL + BetaSettingsServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaSettingsServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaSettingsServiceAny detail; + private List details = new ArrayList<>(); public BetaSettingsServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaSettingsServiceConnectError detail(@javax.annotation.Nullable BetaSettingsServiceAny detail) { + public BetaSettingsServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaSettingsServiceConnectError addDetailsItem(BetaSettingsServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaSettingsServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaSettingsServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaSettingsServiceConnectError betaSettingsServiceConnectError = (BetaSettingsServiceConnectError) o; return Objects.equals(this.code, betaSettingsServiceConnectError.code) && Objects.equals(this.message, betaSettingsServiceConnectError.message) && - Objects.equals(this.detail, betaSettingsServiceConnectError.detail) && + Objects.equals(this.details, betaSettingsServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaTelemetryServiceAny.java b/src/main/java/com/zitadel/model/BetaTelemetryServiceAny.java index 3ddfd9e..d64750b 100644 --- a/src/main/java/com/zitadel/model/BetaTelemetryServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaTelemetryServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaTelemetryServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaTelemetryServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaTelemetryServiceAny() { @@ -62,7 +66,7 @@ public BetaTelemetryServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaTelemetryServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaTelemetryServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaTelemetryServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaTelemetryServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaTelemetryServiceAny betaTelemetryServiceAny = (BetaTelemetryServiceAny) o; return Objects.equals(this.type, betaTelemetryServiceAny.type) && Objects.equals(this.value, betaTelemetryServiceAny.value) && - Objects.equals(this.debug, betaTelemetryServiceAny.debug) && + equalsNullable(this.debug, betaTelemetryServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaTelemetryServiceConnectError.java b/src/main/java/com/zitadel/model/BetaTelemetryServiceConnectError.java index ebe2a58..c9eddee 100644 --- a/src/main/java/com/zitadel/model/BetaTelemetryServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaTelemetryServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaTelemetryServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaTelemetryServiceConnectError.JSON_PROPERTY_CODE, BetaTelemetryServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaTelemetryServiceConnectError.JSON_PROPERTY_DETAIL + BetaTelemetryServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaTelemetryServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaTelemetryServiceAny detail; + private List details = new ArrayList<>(); public BetaTelemetryServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaTelemetryServiceConnectError detail(@javax.annotation.Nullable BetaTelemetryServiceAny detail) { + public BetaTelemetryServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaTelemetryServiceConnectError addDetailsItem(BetaTelemetryServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaTelemetryServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaTelemetryServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaTelemetryServiceConnectError betaTelemetryServiceConnectError = (BetaTelemetryServiceConnectError) o; return Objects.equals(this.code, betaTelemetryServiceConnectError.code) && Objects.equals(this.message, betaTelemetryServiceConnectError.message) && - Objects.equals(this.detail, betaTelemetryServiceConnectError.detail) && + Objects.equals(this.details, betaTelemetryServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceAddHumanUserRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceAddHumanUserRequest.java index 7738652..d0f3ab1 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceAddHumanUserRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceAddHumanUserRequest.java @@ -72,11 +72,11 @@ public class BetaUserServiceAddHumanUserRequest { private BetaUserServiceOrganization organization; public static final String JSON_PROPERTY_PROFILE = "profile"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private BetaUserServiceSetHumanProfile profile; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private BetaUserServiceSetHumanEmail email; public static final String JSON_PROPERTY_PHONE = "phone"; @@ -197,7 +197,7 @@ public void setOrganization(@javax.annotation.Nullable BetaUserServiceOrganizati this.organization = organization; } - public BetaUserServiceAddHumanUserRequest profile(@javax.annotation.Nonnull BetaUserServiceSetHumanProfile profile) { + public BetaUserServiceAddHumanUserRequest profile(@javax.annotation.Nullable BetaUserServiceSetHumanProfile profile) { this.profile = profile; return this; @@ -207,9 +207,9 @@ public BetaUserServiceAddHumanUserRequest profile(@javax.annotation.Nonnull Beta * Get profile * @return profile */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BetaUserServiceSetHumanProfile getProfile() { return profile; @@ -217,12 +217,12 @@ public BetaUserServiceSetHumanProfile getProfile() { @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProfile(@javax.annotation.Nonnull BetaUserServiceSetHumanProfile profile) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProfile(@javax.annotation.Nullable BetaUserServiceSetHumanProfile profile) { this.profile = profile; } - public BetaUserServiceAddHumanUserRequest email(@javax.annotation.Nonnull BetaUserServiceSetHumanEmail email) { + public BetaUserServiceAddHumanUserRequest email(@javax.annotation.Nullable BetaUserServiceSetHumanEmail email) { this.email = email; return this; @@ -232,9 +232,9 @@ public BetaUserServiceAddHumanUserRequest email(@javax.annotation.Nonnull BetaUs * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BetaUserServiceSetHumanEmail getEmail() { return email; @@ -242,8 +242,8 @@ public BetaUserServiceSetHumanEmail getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull BetaUserServiceSetHumanEmail email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable BetaUserServiceSetHumanEmail email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceAddIDPLinkRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceAddIDPLinkRequest.java index c35b04c..9831430 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceAddIDPLinkRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceAddIDPLinkRequest.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceAddIDPLinkRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_IDP_LINK = "idpLink"; @@ -47,7 +47,7 @@ public class BetaUserServiceAddIDPLinkRequest { public BetaUserServiceAddIDPLinkRequest() { } - public BetaUserServiceAddIDPLinkRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceAddIDPLinkRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -57,9 +57,9 @@ public BetaUserServiceAddIDPLinkRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -67,8 +67,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceAddOTPEmailRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceAddOTPEmailRequest.java index c62a574..ec3618c 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceAddOTPEmailRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceAddOTPEmailRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceAddOTPEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceAddOTPEmailRequest() { } - public BetaUserServiceAddOTPEmailRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceAddOTPEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceAddOTPEmailRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceAddOTPSMSRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceAddOTPSMSRequest.java index 7d5b104..db58e91 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceAddOTPSMSRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceAddOTPSMSRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceAddOTPSMSRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceAddOTPSMSRequest() { } - public BetaUserServiceAddOTPSMSRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceAddOTPSMSRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceAddOTPSMSRequest userId(@javax.annotation.Nonnull String u * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceAny.java b/src/main/java/com/zitadel/model/BetaUserServiceAny.java index ad248a6..a04d7b8 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaUserServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaUserServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaUserServiceAny() { @@ -62,7 +66,7 @@ public BetaUserServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaUserServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaUserServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaUserServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaUserServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaUserServiceAny betaUserServiceAny = (BetaUserServiceAny) o; return Objects.equals(this.type, betaUserServiceAny.type) && Objects.equals(this.value, betaUserServiceAny.value) && - Objects.equals(this.debug, betaUserServiceAny.debug) && + equalsNullable(this.debug, betaUserServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceConnectError.java b/src/main/java/com/zitadel/model/BetaUserServiceConnectError.java index 8e0b354..2a5fb54 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaUserServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaUserServiceConnectError.JSON_PROPERTY_CODE, BetaUserServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaUserServiceConnectError.JSON_PROPERTY_DETAIL + BetaUserServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaUserServiceAny detail; + private List details = new ArrayList<>(); public BetaUserServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaUserServiceConnectError detail(@javax.annotation.Nullable BetaUserServiceAny detail) { + public BetaUserServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaUserServiceConnectError addDetailsItem(BetaUserServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaUserServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaUserServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaUserServiceConnectError betaUserServiceConnectError = (BetaUserServiceConnectError) o; return Objects.equals(this.code, betaUserServiceConnectError.code) && Objects.equals(this.message, betaUserServiceConnectError.message) && - Objects.equals(this.detail, betaUserServiceConnectError.detail) && + Objects.equals(this.details, betaUserServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceCreatePasskeyRegistrationLinkRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceCreatePasskeyRegistrationLinkRequest.java index 17ea05f..be7a180 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceCreatePasskeyRegistrationLinkRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceCreatePasskeyRegistrationLinkRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceCreatePasskeyRegistrationLinkRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class BetaUserServiceCreatePasskeyRegistrationLinkRequest { public BetaUserServiceCreatePasskeyRegistrationLinkRequest() { } - public BetaUserServiceCreatePasskeyRegistrationLinkRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceCreatePasskeyRegistrationLinkRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public BetaUserServiceCreatePasskeyRegistrationLinkRequest userId(@javax.annotat * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceDeactivateUserRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceDeactivateUserRequest.java index 3d26973..7eb5dcd 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceDeactivateUserRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceDeactivateUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceDeactivateUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceDeactivateUserRequest() { } - public BetaUserServiceDeactivateUserRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceDeactivateUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceDeactivateUserRequest userId(@javax.annotation.Nonnull Str * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceDeleteUserRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceDeleteUserRequest.java index 8233954..406bf7f 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceDeleteUserRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceDeleteUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceDeleteUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceDeleteUserRequest() { } - public BetaUserServiceDeleteUserRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceDeleteUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceDeleteUserRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceDisplayNameQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceDisplayNameQuery.java index 06c0052..ff3ed03 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceDisplayNameQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceDisplayNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceDisplayNameQuery { public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServiceDisplayNameQuery { public BetaUserServiceDisplayNameQuery() { } - public BetaUserServiceDisplayNameQuery displayName(@javax.annotation.Nonnull String displayName) { + public BetaUserServiceDisplayNameQuery displayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; return this; @@ -57,9 +57,9 @@ public BetaUserServiceDisplayNameQuery displayName(@javax.annotation.Nonnull Str * Get displayName * @return displayName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDisplayName() { return displayName; @@ -67,8 +67,8 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(@javax.annotation.Nonnull String displayName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDisplayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceEmailQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceEmailQuery.java index e288fa5..2bdac21 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceEmailQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceEmailQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceEmailQuery { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "emailAddress"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServiceEmailQuery { public BetaUserServiceEmailQuery() { } - public BetaUserServiceEmailQuery emailAddress(@javax.annotation.Nonnull String emailAddress) { + public BetaUserServiceEmailQuery emailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; @@ -57,9 +57,9 @@ public BetaUserServiceEmailQuery emailAddress(@javax.annotation.Nonnull String e * Get emailAddress * @return emailAddress */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; @@ -67,8 +67,8 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceFirstNameQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceFirstNameQuery.java index 92cd040..23fe4a4 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceFirstNameQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceFirstNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceFirstNameQuery { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServiceFirstNameQuery { public BetaUserServiceFirstNameQuery() { } - public BetaUserServiceFirstNameQuery firstName(@javax.annotation.Nonnull String firstName) { + public BetaUserServiceFirstNameQuery firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -57,9 +57,9 @@ public BetaUserServiceFirstNameQuery firstName(@javax.annotation.Nonnull String * Get firstName * @return firstName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; @@ -67,8 +67,8 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFirstName(@javax.annotation.Nonnull String firstName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceGetUserByIDRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceGetUserByIDRequest.java index fd57c3f..ea55a18 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceGetUserByIDRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceGetUserByIDRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceGetUserByIDRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceGetUserByIDRequest() { } - public BetaUserServiceGetUserByIDRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceGetUserByIDRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceGetUserByIDRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceHashedPassword.java b/src/main/java/com/zitadel/model/BetaUserServiceHashedPassword.java index 7e05406..796c5ea 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceHashedPassword.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceHashedPassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceHashedPassword { public static final String JSON_PROPERTY_HASH = "hash"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String hash; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class BetaUserServiceHashedPassword { public BetaUserServiceHashedPassword() { } - public BetaUserServiceHashedPassword hash(@javax.annotation.Nonnull String hash) { + public BetaUserServiceHashedPassword hash(@javax.annotation.Nullable String hash) { this.hash = hash; return this; @@ -56,9 +56,9 @@ public BetaUserServiceHashedPassword hash(@javax.annotation.Nonnull String hash) * Get hash * @return hash */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHash() { return hash; @@ -66,8 +66,8 @@ public String getHash() { @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHash(@javax.annotation.Nonnull String hash) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHash(@javax.annotation.Nullable String hash) { this.hash = hash; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceLastNameQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceLastNameQuery.java index 0b91e8f..fd8843d 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceLastNameQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceLastNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceLastNameQuery { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServiceLastNameQuery { public BetaUserServiceLastNameQuery() { } - public BetaUserServiceLastNameQuery lastName(@javax.annotation.Nonnull String lastName) { + public BetaUserServiceLastNameQuery lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -57,9 +57,9 @@ public BetaUserServiceLastNameQuery lastName(@javax.annotation.Nonnull String la * Get lastName * @return lastName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; @@ -67,8 +67,8 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastName(@javax.annotation.Nonnull String lastName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceListAuthenticationMethodTypesRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceListAuthenticationMethodTypesRequest.java index 7c9856b..2e381db 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceListAuthenticationMethodTypesRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceListAuthenticationMethodTypesRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceListAuthenticationMethodTypesRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceListAuthenticationMethodTypesRequest() { } - public BetaUserServiceListAuthenticationMethodTypesRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceListAuthenticationMethodTypesRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceListAuthenticationMethodTypesRequest userId(@javax.annotat * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceLockUserRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceLockUserRequest.java index 340c593..a78b0a9 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceLockUserRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceLockUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceLockUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceLockUserRequest() { } - public BetaUserServiceLockUserRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceLockUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceLockUserRequest userId(@javax.annotation.Nonnull String us * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceLoginNameQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceLoginNameQuery.java index 188284e..1f976dc 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceLoginNameQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceLoginNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceLoginNameQuery { public static final String JSON_PROPERTY_LOGIN_NAME = "loginName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String loginName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServiceLoginNameQuery { public BetaUserServiceLoginNameQuery() { } - public BetaUserServiceLoginNameQuery loginName(@javax.annotation.Nonnull String loginName) { + public BetaUserServiceLoginNameQuery loginName(@javax.annotation.Nullable String loginName) { this.loginName = loginName; return this; @@ -57,9 +57,9 @@ public BetaUserServiceLoginNameQuery loginName(@javax.annotation.Nonnull String * Get loginName * @return loginName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOGIN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLoginName() { return loginName; @@ -67,8 +67,8 @@ public String getLoginName() { @JsonProperty(JSON_PROPERTY_LOGIN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLoginName(@javax.annotation.Nonnull String loginName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLoginName(@javax.annotation.Nullable String loginName) { this.loginName = loginName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceNickNameQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceNickNameQuery.java index 576ca31..dd7112d 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceNickNameQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceNickNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceNickNameQuery { public static final String JSON_PROPERTY_NICK_NAME = "nickName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String nickName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServiceNickNameQuery { public BetaUserServiceNickNameQuery() { } - public BetaUserServiceNickNameQuery nickName(@javax.annotation.Nonnull String nickName) { + public BetaUserServiceNickNameQuery nickName(@javax.annotation.Nullable String nickName) { this.nickName = nickName; return this; @@ -57,9 +57,9 @@ public BetaUserServiceNickNameQuery nickName(@javax.annotation.Nonnull String ni * Get nickName * @return nickName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NICK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNickName() { return nickName; @@ -67,8 +67,8 @@ public String getNickName() { @JsonProperty(JSON_PROPERTY_NICK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNickName(@javax.annotation.Nonnull String nickName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNickName(@javax.annotation.Nullable String nickName) { this.nickName = nickName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceOrganizationIdQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceOrganizationIdQuery.java index a53a09d..3fede75 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceOrganizationIdQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceOrganizationIdQuery.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceOrganizationIdQuery { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public BetaUserServiceOrganizationIdQuery() { } - public BetaUserServiceOrganizationIdQuery organizationId(@javax.annotation.Nonnull String organizationId) { + public BetaUserServiceOrganizationIdQuery organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceOrganizationIdQuery organizationId(@javax.annotation.Nonnu * Get organizationId * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -61,8 +61,8 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServicePasskeyRegistrationCode.java b/src/main/java/com/zitadel/model/BetaUserServicePasskeyRegistrationCode.java index 9974207..d9805a5 100644 --- a/src/main/java/com/zitadel/model/BetaUserServicePasskeyRegistrationCode.java +++ b/src/main/java/com/zitadel/model/BetaUserServicePasskeyRegistrationCode.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServicePasskeyRegistrationCode { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String code; public BetaUserServicePasskeyRegistrationCode() { } - public BetaUserServicePasskeyRegistrationCode id(@javax.annotation.Nonnull String id) { + public BetaUserServicePasskeyRegistrationCode id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -56,9 +56,9 @@ public BetaUserServicePasskeyRegistrationCode id(@javax.annotation.Nonnull Strin * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -66,12 +66,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } - public BetaUserServicePasskeyRegistrationCode code(@javax.annotation.Nonnull String code) { + public BetaUserServicePasskeyRegistrationCode code(@javax.annotation.Nullable String code) { this.code = code; return this; @@ -81,9 +81,9 @@ public BetaUserServicePasskeyRegistrationCode code(@javax.annotation.Nonnull Str * Get code * @return code */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCode() { return code; @@ -91,8 +91,8 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@javax.annotation.Nonnull String code) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(@javax.annotation.Nullable String code) { this.code = code; } diff --git a/src/main/java/com/zitadel/model/BetaUserServicePassword.java b/src/main/java/com/zitadel/model/BetaUserServicePassword.java index 4b0f6db..36a56de 100644 --- a/src/main/java/com/zitadel/model/BetaUserServicePassword.java +++ b/src/main/java/com/zitadel/model/BetaUserServicePassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServicePassword { public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class BetaUserServicePassword { public BetaUserServicePassword() { } - public BetaUserServicePassword password(@javax.annotation.Nonnull String password) { + public BetaUserServicePassword password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -56,9 +56,9 @@ public BetaUserServicePassword password(@javax.annotation.Nonnull String passwor * Get password * @return password */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -66,8 +66,8 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(@javax.annotation.Nonnull String password) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } diff --git a/src/main/java/com/zitadel/model/BetaUserServicePasswordResetRequest.java b/src/main/java/com/zitadel/model/BetaUserServicePasswordResetRequest.java index 9c6b8bc..c359e6c 100644 --- a/src/main/java/com/zitadel/model/BetaUserServicePasswordResetRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServicePasswordResetRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServicePasswordResetRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class BetaUserServicePasswordResetRequest { public BetaUserServicePasswordResetRequest() { } - public BetaUserServicePasswordResetRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServicePasswordResetRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public BetaUserServicePasswordResetRequest userId(@javax.annotation.Nonnull Stri * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServicePhoneQuery.java b/src/main/java/com/zitadel/model/BetaUserServicePhoneQuery.java index a3848fe..95d58a5 100644 --- a/src/main/java/com/zitadel/model/BetaUserServicePhoneQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServicePhoneQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServicePhoneQuery { public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String number; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServicePhoneQuery { public BetaUserServicePhoneQuery() { } - public BetaUserServicePhoneQuery number(@javax.annotation.Nonnull String number) { + public BetaUserServicePhoneQuery number(@javax.annotation.Nullable String number) { this.number = number; return this; @@ -57,9 +57,9 @@ public BetaUserServicePhoneQuery number(@javax.annotation.Nonnull String number) * Get number * @return number */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNumber() { return number; @@ -67,8 +67,8 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(@javax.annotation.Nonnull String number) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNumber(@javax.annotation.Nullable String number) { this.number = number; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceReactivateUserRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceReactivateUserRequest.java index 239a566..adb9404 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceReactivateUserRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceReactivateUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceReactivateUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceReactivateUserRequest() { } - public BetaUserServiceReactivateUserRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceReactivateUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceReactivateUserRequest userId(@javax.annotation.Nonnull Str * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceRegisterPasskeyRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceRegisterPasskeyRequest.java index 983b956..f7daa36 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceRegisterPasskeyRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceRegisterPasskeyRequest.java @@ -40,7 +40,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceRegisterPasskeyRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_CODE = "code"; @@ -58,7 +58,7 @@ public class BetaUserServiceRegisterPasskeyRequest { public BetaUserServiceRegisterPasskeyRequest() { } - public BetaUserServiceRegisterPasskeyRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceRegisterPasskeyRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -68,9 +68,9 @@ public BetaUserServiceRegisterPasskeyRequest userId(@javax.annotation.Nonnull St * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -78,8 +78,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceRegisterTOTPRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceRegisterTOTPRequest.java index 39d5c47..5d8405d 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceRegisterTOTPRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceRegisterTOTPRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceRegisterTOTPRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceRegisterTOTPRequest() { } - public BetaUserServiceRegisterTOTPRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceRegisterTOTPRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceRegisterTOTPRequest userId(@javax.annotation.Nonnull Strin * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceRegisterU2FRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceRegisterU2FRequest.java index 1fee432..160ad0f 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceRegisterU2FRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceRegisterU2FRequest.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceRegisterU2FRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_DOMAIN = "domain"; @@ -46,7 +46,7 @@ public class BetaUserServiceRegisterU2FRequest { public BetaUserServiceRegisterU2FRequest() { } - public BetaUserServiceRegisterU2FRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceRegisterU2FRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public BetaUserServiceRegisterU2FRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,8 +66,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPEmailRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPEmailRequest.java index c19804d..487a6a5 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPEmailRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPEmailRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceRemoveOTPEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceRemoveOTPEmailRequest() { } - public BetaUserServiceRemoveOTPEmailRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceRemoveOTPEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceRemoveOTPEmailRequest userId(@javax.annotation.Nonnull Str * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPSMSRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPSMSRequest.java index b48ccad..ecea832 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPSMSRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceRemoveOTPSMSRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceRemoveOTPSMSRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceRemoveOTPSMSRequest() { } - public BetaUserServiceRemoveOTPSMSRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceRemoveOTPSMSRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceRemoveOTPSMSRequest userId(@javax.annotation.Nonnull Strin * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceRemovePhoneRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceRemovePhoneRequest.java index 4cff0ae..16a3ec8 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceRemovePhoneRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceRemovePhoneRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceRemovePhoneRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceRemovePhoneRequest() { } - public BetaUserServiceRemovePhoneRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceRemovePhoneRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceRemovePhoneRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceRemoveTOTPRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceRemoveTOTPRequest.java index a749159..06f3207 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceRemoveTOTPRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceRemoveTOTPRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceRemoveTOTPRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceRemoveTOTPRequest() { } - public BetaUserServiceRemoveTOTPRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceRemoveTOTPRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceRemoveTOTPRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceResendEmailCodeRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceResendEmailCodeRequest.java index 934b063..755fda4 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceResendEmailCodeRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceResendEmailCodeRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceResendEmailCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class BetaUserServiceResendEmailCodeRequest { public BetaUserServiceResendEmailCodeRequest() { } - public BetaUserServiceResendEmailCodeRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceResendEmailCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public BetaUserServiceResendEmailCodeRequest userId(@javax.annotation.Nonnull St * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceResendPhoneCodeRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceResendPhoneCodeRequest.java index aaae7b5..be5304f 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceResendPhoneCodeRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceResendPhoneCodeRequest.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceResendPhoneCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -51,7 +51,7 @@ public class BetaUserServiceResendPhoneCodeRequest { public BetaUserServiceResendPhoneCodeRequest() { } - public BetaUserServiceResendPhoneCodeRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceResendPhoneCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -61,9 +61,9 @@ public BetaUserServiceResendPhoneCodeRequest userId(@javax.annotation.Nonnull St * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -71,8 +71,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceSetEmailRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceSetEmailRequest.java index 1bfc173..ace3fee 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceSetEmailRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceSetEmailRequest.java @@ -40,11 +40,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceSetEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -62,7 +62,7 @@ public class BetaUserServiceSetEmailRequest { public BetaUserServiceSetEmailRequest() { } - public BetaUserServiceSetEmailRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceSetEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -72,9 +72,9 @@ public BetaUserServiceSetEmailRequest userId(@javax.annotation.Nonnull String us * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -82,12 +82,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public BetaUserServiceSetEmailRequest email(@javax.annotation.Nonnull String email) { + public BetaUserServiceSetEmailRequest email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -97,9 +97,9 @@ public BetaUserServiceSetEmailRequest email(@javax.annotation.Nonnull String ema * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -107,8 +107,8 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull String email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceSetHumanEmail.java b/src/main/java/com/zitadel/model/BetaUserServiceSetHumanEmail.java index 5b56873..00a2a3a 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceSetHumanEmail.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceSetHumanEmail.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceSetHumanEmail { public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -57,7 +57,7 @@ public class BetaUserServiceSetHumanEmail { public BetaUserServiceSetHumanEmail() { } - public BetaUserServiceSetHumanEmail email(@javax.annotation.Nonnull String email) { + public BetaUserServiceSetHumanEmail email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -67,9 +67,9 @@ public BetaUserServiceSetHumanEmail email(@javax.annotation.Nonnull String email * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -77,8 +77,8 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull String email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceSetHumanProfile.java b/src/main/java/com/zitadel/model/BetaUserServiceSetHumanProfile.java index 3c91441..3f1ff9e 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceSetHumanProfile.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceSetHumanProfile.java @@ -45,11 +45,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceSetHumanProfile { public static final String JSON_PROPERTY_GIVEN_NAME = "givenName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String givenName; public static final String JSON_PROPERTY_FAMILY_NAME = "familyName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String familyName; public static final String JSON_PROPERTY_NICK_NAME = "nickName"; @@ -71,7 +71,7 @@ public class BetaUserServiceSetHumanProfile { public BetaUserServiceSetHumanProfile() { } - public BetaUserServiceSetHumanProfile givenName(@javax.annotation.Nonnull String givenName) { + public BetaUserServiceSetHumanProfile givenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; return this; @@ -81,9 +81,9 @@ public BetaUserServiceSetHumanProfile givenName(@javax.annotation.Nonnull String * Get givenName * @return givenName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGivenName() { return givenName; @@ -91,12 +91,12 @@ public String getGivenName() { @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGivenName(@javax.annotation.Nonnull String givenName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGivenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; } - public BetaUserServiceSetHumanProfile familyName(@javax.annotation.Nonnull String familyName) { + public BetaUserServiceSetHumanProfile familyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; return this; @@ -106,9 +106,9 @@ public BetaUserServiceSetHumanProfile familyName(@javax.annotation.Nonnull Strin * Get familyName * @return familyName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFamilyName() { return familyName; @@ -116,8 +116,8 @@ public String getFamilyName() { @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFamilyName(@javax.annotation.Nonnull String familyName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFamilyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceSetMetadataEntry.java b/src/main/java/com/zitadel/model/BetaUserServiceSetMetadataEntry.java index ec26ce8..3c527f5 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceSetMetadataEntry.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceSetMetadataEntry.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceSetMetadataEntry { public static final String JSON_PROPERTY_KEY = "key"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String key; public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private byte[] value; public BetaUserServiceSetMetadataEntry() { } - public BetaUserServiceSetMetadataEntry key(@javax.annotation.Nonnull String key) { + public BetaUserServiceSetMetadataEntry key(@javax.annotation.Nullable String key) { this.key = key; return this; @@ -56,9 +56,9 @@ public BetaUserServiceSetMetadataEntry key(@javax.annotation.Nonnull String key) * Get key * @return key */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getKey() { return key; @@ -66,12 +66,12 @@ public String getKey() { @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKey(@javax.annotation.Nonnull String key) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKey(@javax.annotation.Nullable String key) { this.key = key; } - public BetaUserServiceSetMetadataEntry value(@javax.annotation.Nonnull byte[] value) { + public BetaUserServiceSetMetadataEntry value(@javax.annotation.Nullable byte[] value) { this.value = value; return this; @@ -81,9 +81,9 @@ public BetaUserServiceSetMetadataEntry value(@javax.annotation.Nonnull byte[] va * Get value * @return value */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getValue() { return value; @@ -91,8 +91,8 @@ public byte[] getValue() { @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(@javax.annotation.Nonnull byte[] value) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValue(@javax.annotation.Nullable byte[] value) { this.value = value; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceSetPasswordRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceSetPasswordRequest.java index b4ee913..9cc4d70 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceSetPasswordRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceSetPasswordRequest.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceSetPasswordRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_NEW_PASSWORD = "newPassword"; @@ -57,7 +57,7 @@ public class BetaUserServiceSetPasswordRequest { public BetaUserServiceSetPasswordRequest() { } - public BetaUserServiceSetPasswordRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceSetPasswordRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -67,9 +67,9 @@ public BetaUserServiceSetPasswordRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -77,8 +77,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceSetPhoneRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceSetPhoneRequest.java index 2fa57b3..ecfa7ab 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceSetPhoneRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceSetPhoneRequest.java @@ -39,11 +39,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceSetPhoneRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -61,7 +61,7 @@ public class BetaUserServiceSetPhoneRequest { public BetaUserServiceSetPhoneRequest() { } - public BetaUserServiceSetPhoneRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceSetPhoneRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -71,9 +71,9 @@ public BetaUserServiceSetPhoneRequest userId(@javax.annotation.Nonnull String us * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -81,12 +81,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public BetaUserServiceSetPhoneRequest phone(@javax.annotation.Nonnull String phone) { + public BetaUserServiceSetPhoneRequest phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -96,9 +96,9 @@ public BetaUserServiceSetPhoneRequest phone(@javax.annotation.Nonnull String pho * Get phone * @return phone */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; @@ -106,8 +106,8 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhone(@javax.annotation.Nonnull String phone) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceStateQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceStateQuery.java index 841dc7d..a673f01 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceStateQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceStateQuery.java @@ -36,13 +36,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceStateQuery { public static final String JSON_PROPERTY_STATE = "state"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private BetaUserServiceUserState state; public BetaUserServiceStateQuery() { } - public BetaUserServiceStateQuery state(@javax.annotation.Nonnull BetaUserServiceUserState state) { + public BetaUserServiceStateQuery state(@javax.annotation.Nullable BetaUserServiceUserState state) { this.state = state; return this; @@ -52,9 +52,9 @@ public BetaUserServiceStateQuery state(@javax.annotation.Nonnull BetaUserService * Get state * @return state */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BetaUserServiceUserState getState() { return state; @@ -62,8 +62,8 @@ public BetaUserServiceUserState getState() { @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setState(@javax.annotation.Nonnull BetaUserServiceUserState state) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setState(@javax.annotation.Nullable BetaUserServiceUserState state) { this.state = state; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceTypeQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceTypeQuery.java index e7e820b..4406987 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceTypeQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceTypeQuery.java @@ -36,13 +36,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceTypeQuery { public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private BetaUserServiceType type; public BetaUserServiceTypeQuery() { } - public BetaUserServiceTypeQuery type(@javax.annotation.Nonnull BetaUserServiceType type) { + public BetaUserServiceTypeQuery type(@javax.annotation.Nullable BetaUserServiceType type) { this.type = type; return this; @@ -52,9 +52,9 @@ public BetaUserServiceTypeQuery type(@javax.annotation.Nonnull BetaUserServiceTy * Get type * @return type */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BetaUserServiceType getType() { return type; @@ -62,8 +62,8 @@ public BetaUserServiceType getType() { @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@javax.annotation.Nonnull BetaUserServiceType type) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(@javax.annotation.Nullable BetaUserServiceType type) { this.type = type; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceUnlockUserRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceUnlockUserRequest.java index 86916c4..71154ac 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceUnlockUserRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceUnlockUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceUnlockUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public BetaUserServiceUnlockUserRequest() { } - public BetaUserServiceUnlockUserRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceUnlockUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public BetaUserServiceUnlockUserRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceUserNameQuery.java b/src/main/java/com/zitadel/model/BetaUserServiceUserNameQuery.java index 489a84b..ad37f3c 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceUserNameQuery.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceUserNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceUserNameQuery { public static final String JSON_PROPERTY_USER_NAME = "userName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class BetaUserServiceUserNameQuery { public BetaUserServiceUserNameQuery() { } - public BetaUserServiceUserNameQuery userName(@javax.annotation.Nonnull String userName) { + public BetaUserServiceUserNameQuery userName(@javax.annotation.Nullable String userName) { this.userName = userName; return this; @@ -57,9 +57,9 @@ public BetaUserServiceUserNameQuery userName(@javax.annotation.Nonnull String us * Get userName * @return userName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserName() { return userName; @@ -67,8 +67,8 @@ public String getUserName() { @JsonProperty(JSON_PROPERTY_USER_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserName(@javax.annotation.Nonnull String userName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserName(@javax.annotation.Nullable String userName) { this.userName = userName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceVerifyEmailRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceVerifyEmailRequest.java index b6a6505..eee198d 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceVerifyEmailRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceVerifyEmailRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceVerifyEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_VERIFICATION_CODE = "verificationCode"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String verificationCode; public BetaUserServiceVerifyEmailRequest() { } - public BetaUserServiceVerifyEmailRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceVerifyEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public BetaUserServiceVerifyEmailRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public BetaUserServiceVerifyEmailRequest verificationCode(@javax.annotation.Nonnull String verificationCode) { + public BetaUserServiceVerifyEmailRequest verificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; return this; @@ -81,9 +81,9 @@ public BetaUserServiceVerifyEmailRequest verificationCode(@javax.annotation.Nonn * Get verificationCode * @return verificationCode */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getVerificationCode() { return verificationCode; @@ -91,8 +91,8 @@ public String getVerificationCode() { @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerificationCode(@javax.annotation.Nonnull String verificationCode) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVerificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceVerifyPasskeyRegistrationRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceVerifyPasskeyRegistrationRequest.java index 1972224..8e651e1 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceVerifyPasskeyRegistrationRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceVerifyPasskeyRegistrationRequest.java @@ -40,25 +40,25 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceVerifyPasskeyRegistrationRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_PASSKEY_ID = "passkeyId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String passkeyId; public static final String JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL = "publicKeyCredential"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Map publicKeyCredential = new HashMap<>(); public static final String JSON_PROPERTY_PASSKEY_NAME = "passkeyName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String passkeyName; public BetaUserServiceVerifyPasskeyRegistrationRequest() { } - public BetaUserServiceVerifyPasskeyRegistrationRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceVerifyPasskeyRegistrationRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -68,9 +68,9 @@ public BetaUserServiceVerifyPasskeyRegistrationRequest userId(@javax.annotation. * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -78,12 +78,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public BetaUserServiceVerifyPasskeyRegistrationRequest passkeyId(@javax.annotation.Nonnull String passkeyId) { + public BetaUserServiceVerifyPasskeyRegistrationRequest passkeyId(@javax.annotation.Nullable String passkeyId) { this.passkeyId = passkeyId; return this; @@ -93,9 +93,9 @@ public BetaUserServiceVerifyPasskeyRegistrationRequest passkeyId(@javax.annotati * Get passkeyId * @return passkeyId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSKEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPasskeyId() { return passkeyId; @@ -103,18 +103,21 @@ public String getPasskeyId() { @JsonProperty(JSON_PROPERTY_PASSKEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPasskeyId(@javax.annotation.Nonnull String passkeyId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPasskeyId(@javax.annotation.Nullable String passkeyId) { this.passkeyId = passkeyId; } - public BetaUserServiceVerifyPasskeyRegistrationRequest publicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + public BetaUserServiceVerifyPasskeyRegistrationRequest publicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; return this; } public BetaUserServiceVerifyPasskeyRegistrationRequest putPublicKeyCredentialItem(String key, Object publicKeyCredentialItem) { + if (this.publicKeyCredential == null) { + this.publicKeyCredential = new HashMap<>(); + } this.publicKeyCredential.put(key, publicKeyCredentialItem); return this; } @@ -123,9 +126,9 @@ public BetaUserServiceVerifyPasskeyRegistrationRequest putPublicKeyCredentialIte * `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. * @return publicKeyCredential */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getPublicKeyCredential() { return publicKeyCredential; @@ -133,12 +136,12 @@ public Map getPublicKeyCredential() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) - public void setPublicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setPublicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; } - public BetaUserServiceVerifyPasskeyRegistrationRequest passkeyName(@javax.annotation.Nonnull String passkeyName) { + public BetaUserServiceVerifyPasskeyRegistrationRequest passkeyName(@javax.annotation.Nullable String passkeyName) { this.passkeyName = passkeyName; return this; @@ -148,9 +151,9 @@ public BetaUserServiceVerifyPasskeyRegistrationRequest passkeyName(@javax.annota * Get passkeyName * @return passkeyName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSKEY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPasskeyName() { return passkeyName; @@ -158,8 +161,8 @@ public String getPasskeyName() { @JsonProperty(JSON_PROPERTY_PASSKEY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPasskeyName(@javax.annotation.Nonnull String passkeyName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPasskeyName(@javax.annotation.Nullable String passkeyName) { this.passkeyName = passkeyName; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceVerifyPhoneRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceVerifyPhoneRequest.java index 597da0b..9557a54 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceVerifyPhoneRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceVerifyPhoneRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceVerifyPhoneRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_VERIFICATION_CODE = "verificationCode"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String verificationCode; public BetaUserServiceVerifyPhoneRequest() { } - public BetaUserServiceVerifyPhoneRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceVerifyPhoneRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public BetaUserServiceVerifyPhoneRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public BetaUserServiceVerifyPhoneRequest verificationCode(@javax.annotation.Nonnull String verificationCode) { + public BetaUserServiceVerifyPhoneRequest verificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; return this; @@ -81,9 +81,9 @@ public BetaUserServiceVerifyPhoneRequest verificationCode(@javax.annotation.Nonn * Get verificationCode * @return verificationCode */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getVerificationCode() { return verificationCode; @@ -91,8 +91,8 @@ public String getVerificationCode() { @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerificationCode(@javax.annotation.Nonnull String verificationCode) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVerificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceVerifyTOTPRegistrationRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceVerifyTOTPRegistrationRequest.java index 4cc91bf..fae4d6e 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceVerifyTOTPRegistrationRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceVerifyTOTPRegistrationRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceVerifyTOTPRegistrationRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String code; public BetaUserServiceVerifyTOTPRegistrationRequest() { } - public BetaUserServiceVerifyTOTPRegistrationRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceVerifyTOTPRegistrationRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public BetaUserServiceVerifyTOTPRegistrationRequest userId(@javax.annotation.Non * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public BetaUserServiceVerifyTOTPRegistrationRequest code(@javax.annotation.Nonnull String code) { + public BetaUserServiceVerifyTOTPRegistrationRequest code(@javax.annotation.Nullable String code) { this.code = code; return this; @@ -81,9 +81,9 @@ public BetaUserServiceVerifyTOTPRegistrationRequest code(@javax.annotation.Nonnu * Get code * @return code */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCode() { return code; @@ -91,8 +91,8 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@javax.annotation.Nonnull String code) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(@javax.annotation.Nullable String code) { this.code = code; } diff --git a/src/main/java/com/zitadel/model/BetaUserServiceVerifyU2FRegistrationRequest.java b/src/main/java/com/zitadel/model/BetaUserServiceVerifyU2FRegistrationRequest.java index d307eff..f65a5f1 100644 --- a/src/main/java/com/zitadel/model/BetaUserServiceVerifyU2FRegistrationRequest.java +++ b/src/main/java/com/zitadel/model/BetaUserServiceVerifyU2FRegistrationRequest.java @@ -40,25 +40,25 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaUserServiceVerifyU2FRegistrationRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_U2F_ID = "u2fId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String u2fId; public static final String JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL = "publicKeyCredential"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Map publicKeyCredential = new HashMap<>(); public static final String JSON_PROPERTY_TOKEN_NAME = "tokenName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String tokenName; public BetaUserServiceVerifyU2FRegistrationRequest() { } - public BetaUserServiceVerifyU2FRegistrationRequest userId(@javax.annotation.Nonnull String userId) { + public BetaUserServiceVerifyU2FRegistrationRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -68,9 +68,9 @@ public BetaUserServiceVerifyU2FRegistrationRequest userId(@javax.annotation.Nonn * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -78,12 +78,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public BetaUserServiceVerifyU2FRegistrationRequest u2fId(@javax.annotation.Nonnull String u2fId) { + public BetaUserServiceVerifyU2FRegistrationRequest u2fId(@javax.annotation.Nullable String u2fId) { this.u2fId = u2fId; return this; @@ -93,9 +93,9 @@ public BetaUserServiceVerifyU2FRegistrationRequest u2fId(@javax.annotation.Nonnu * Get u2fId * @return u2fId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_U2F_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getU2fId() { return u2fId; @@ -103,18 +103,21 @@ public String getU2fId() { @JsonProperty(JSON_PROPERTY_U2F_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setU2fId(@javax.annotation.Nonnull String u2fId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setU2fId(@javax.annotation.Nullable String u2fId) { this.u2fId = u2fId; } - public BetaUserServiceVerifyU2FRegistrationRequest publicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + public BetaUserServiceVerifyU2FRegistrationRequest publicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; return this; } public BetaUserServiceVerifyU2FRegistrationRequest putPublicKeyCredentialItem(String key, Object publicKeyCredentialItem) { + if (this.publicKeyCredential == null) { + this.publicKeyCredential = new HashMap<>(); + } this.publicKeyCredential.put(key, publicKeyCredentialItem); return this; } @@ -123,9 +126,9 @@ public BetaUserServiceVerifyU2FRegistrationRequest putPublicKeyCredentialItem(St * `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. * @return publicKeyCredential */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getPublicKeyCredential() { return publicKeyCredential; @@ -133,12 +136,12 @@ public Map getPublicKeyCredential() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) - public void setPublicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setPublicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; } - public BetaUserServiceVerifyU2FRegistrationRequest tokenName(@javax.annotation.Nonnull String tokenName) { + public BetaUserServiceVerifyU2FRegistrationRequest tokenName(@javax.annotation.Nullable String tokenName) { this.tokenName = tokenName; return this; @@ -148,9 +151,9 @@ public BetaUserServiceVerifyU2FRegistrationRequest tokenName(@javax.annotation.N * Get tokenName * @return tokenName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOKEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTokenName() { return tokenName; @@ -158,8 +161,8 @@ public String getTokenName() { @JsonProperty(JSON_PROPERTY_TOKEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenName(@javax.annotation.Nonnull String tokenName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTokenName(@javax.annotation.Nullable String tokenName) { this.tokenName = tokenName; } diff --git a/src/main/java/com/zitadel/model/BetaWebKeyServiceActivateWebKeyRequest.java b/src/main/java/com/zitadel/model/BetaWebKeyServiceActivateWebKeyRequest.java index f348104..61eefbf 100644 --- a/src/main/java/com/zitadel/model/BetaWebKeyServiceActivateWebKeyRequest.java +++ b/src/main/java/com/zitadel/model/BetaWebKeyServiceActivateWebKeyRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaWebKeyServiceActivateWebKeyRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaWebKeyServiceActivateWebKeyRequest() { } - public BetaWebKeyServiceActivateWebKeyRequest id(@javax.annotation.Nonnull String id) { + public BetaWebKeyServiceActivateWebKeyRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaWebKeyServiceActivateWebKeyRequest id(@javax.annotation.Nonnull Strin * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/BetaWebKeyServiceAny.java b/src/main/java/com/zitadel/model/BetaWebKeyServiceAny.java index 8984e6c..d8f5baa 100644 --- a/src/main/java/com/zitadel/model/BetaWebKeyServiceAny.java +++ b/src/main/java/com/zitadel/model/BetaWebKeyServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ BetaWebKeyServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class BetaWebKeyServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public BetaWebKeyServiceAny() { @@ -62,7 +66,7 @@ public BetaWebKeyServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public BetaWebKeyServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public BetaWebKeyServiceAny debug(@javax.annotation.Nullable Map debug) { + public BetaWebKeyServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public BetaWebKeyServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { BetaWebKeyServiceAny betaWebKeyServiceAny = (BetaWebKeyServiceAny) o; return Objects.equals(this.type, betaWebKeyServiceAny.type) && Objects.equals(this.value, betaWebKeyServiceAny.value) && - Objects.equals(this.debug, betaWebKeyServiceAny.debug) && + equalsNullable(this.debug, betaWebKeyServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/BetaWebKeyServiceConnectError.java b/src/main/java/com/zitadel/model/BetaWebKeyServiceConnectError.java index 2fd2aa6..91d6348 100644 --- a/src/main/java/com/zitadel/model/BetaWebKeyServiceConnectError.java +++ b/src/main/java/com/zitadel/model/BetaWebKeyServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.BetaWebKeyServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ BetaWebKeyServiceConnectError.JSON_PROPERTY_CODE, BetaWebKeyServiceConnectError.JSON_PROPERTY_MESSAGE, - BetaWebKeyServiceConnectError.JSON_PROPERTY_DETAIL + BetaWebKeyServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaWebKeyServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private BetaWebKeyServiceAny detail; + private List details = new ArrayList<>(); public BetaWebKeyServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public BetaWebKeyServiceConnectError detail(@javax.annotation.Nullable BetaWebKeyServiceAny detail) { + public BetaWebKeyServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public BetaWebKeyServiceConnectError addDetailsItem(BetaWebKeyServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BetaWebKeyServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable BetaWebKeyServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { BetaWebKeyServiceConnectError betaWebKeyServiceConnectError = (BetaWebKeyServiceConnectError) o; return Objects.equals(this.code, betaWebKeyServiceConnectError.code) && Objects.equals(this.message, betaWebKeyServiceConnectError.message) && - Objects.equals(this.detail, betaWebKeyServiceConnectError.detail) && + Objects.equals(this.details, betaWebKeyServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/BetaWebKeyServiceDeleteWebKeyRequest.java b/src/main/java/com/zitadel/model/BetaWebKeyServiceDeleteWebKeyRequest.java index b1e2124..301a814 100644 --- a/src/main/java/com/zitadel/model/BetaWebKeyServiceDeleteWebKeyRequest.java +++ b/src/main/java/com/zitadel/model/BetaWebKeyServiceDeleteWebKeyRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class BetaWebKeyServiceDeleteWebKeyRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public BetaWebKeyServiceDeleteWebKeyRequest() { } - public BetaWebKeyServiceDeleteWebKeyRequest id(@javax.annotation.Nonnull String id) { + public BetaWebKeyServiceDeleteWebKeyRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public BetaWebKeyServiceDeleteWebKeyRequest id(@javax.annotation.Nonnull String * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/FeatureServiceAny.java b/src/main/java/com/zitadel/model/FeatureServiceAny.java index 6829441..f64a112 100644 --- a/src/main/java/com/zitadel/model/FeatureServiceAny.java +++ b/src/main/java/com/zitadel/model/FeatureServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ FeatureServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class FeatureServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public FeatureServiceAny() { @@ -62,7 +66,7 @@ public FeatureServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public FeatureServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public FeatureServiceAny debug(@javax.annotation.Nullable Map debug) { + public FeatureServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public FeatureServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { FeatureServiceAny featureServiceAny = (FeatureServiceAny) o; return Objects.equals(this.type, featureServiceAny.type) && Objects.equals(this.value, featureServiceAny.value) && - Objects.equals(this.debug, featureServiceAny.debug) && + equalsNullable(this.debug, featureServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/FeatureServiceConnectError.java b/src/main/java/com/zitadel/model/FeatureServiceConnectError.java index feb34d5..b40019e 100644 --- a/src/main/java/com/zitadel/model/FeatureServiceConnectError.java +++ b/src/main/java/com/zitadel/model/FeatureServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.FeatureServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ FeatureServiceConnectError.JSON_PROPERTY_CODE, FeatureServiceConnectError.JSON_PROPERTY_MESSAGE, - FeatureServiceConnectError.JSON_PROPERTY_DETAIL + FeatureServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class FeatureServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private FeatureServiceAny detail; + private List details = new ArrayList<>(); public FeatureServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public FeatureServiceConnectError detail(@javax.annotation.Nullable FeatureServiceAny detail) { + public FeatureServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public FeatureServiceConnectError addDetailsItem(FeatureServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeatureServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable FeatureServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { FeatureServiceConnectError featureServiceConnectError = (FeatureServiceConnectError) o; return Objects.equals(this.code, featureServiceConnectError.code) && Objects.equals(this.message, featureServiceConnectError.message) && - Objects.equals(this.detail, featureServiceConnectError.detail) && + Objects.equals(this.details, featureServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/IdentityProviderServiceAny.java b/src/main/java/com/zitadel/model/IdentityProviderServiceAny.java index bb9a2f6..4079785 100644 --- a/src/main/java/com/zitadel/model/IdentityProviderServiceAny.java +++ b/src/main/java/com/zitadel/model/IdentityProviderServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ IdentityProviderServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class IdentityProviderServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public IdentityProviderServiceAny() { @@ -62,7 +66,7 @@ public IdentityProviderServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public IdentityProviderServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public IdentityProviderServiceAny debug(@javax.annotation.Nullable Map debug) { + public IdentityProviderServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public IdentityProviderServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { IdentityProviderServiceAny identityProviderServiceAny = (IdentityProviderServiceAny) o; return Objects.equals(this.type, identityProviderServiceAny.type) && Objects.equals(this.value, identityProviderServiceAny.value) && - Objects.equals(this.debug, identityProviderServiceAny.debug) && + equalsNullable(this.debug, identityProviderServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/IdentityProviderServiceConnectError.java b/src/main/java/com/zitadel/model/IdentityProviderServiceConnectError.java index 1d6ec3d..afa6343 100644 --- a/src/main/java/com/zitadel/model/IdentityProviderServiceConnectError.java +++ b/src/main/java/com/zitadel/model/IdentityProviderServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.IdentityProviderServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ IdentityProviderServiceConnectError.JSON_PROPERTY_CODE, IdentityProviderServiceConnectError.JSON_PROPERTY_MESSAGE, - IdentityProviderServiceConnectError.JSON_PROPERTY_DETAIL + IdentityProviderServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class IdentityProviderServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private IdentityProviderServiceAny detail; + private List details = new ArrayList<>(); public IdentityProviderServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public IdentityProviderServiceConnectError detail(@javax.annotation.Nullable IdentityProviderServiceAny detail) { + public IdentityProviderServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public IdentityProviderServiceConnectError addDetailsItem(IdentityProviderServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IdentityProviderServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable IdentityProviderServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { IdentityProviderServiceConnectError identityProviderServiceConnectError = (IdentityProviderServiceConnectError) o; return Objects.equals(this.code, identityProviderServiceConnectError.code) && Objects.equals(this.message, identityProviderServiceConnectError.message) && - Objects.equals(this.detail, identityProviderServiceConnectError.detail) && + Objects.equals(this.details, identityProviderServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/OIDCServiceAny.java b/src/main/java/com/zitadel/model/OIDCServiceAny.java index e5b8f08..ea88f07 100644 --- a/src/main/java/com/zitadel/model/OIDCServiceAny.java +++ b/src/main/java/com/zitadel/model/OIDCServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ OIDCServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class OIDCServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public OIDCServiceAny() { @@ -62,7 +66,7 @@ public OIDCServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public OIDCServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public OIDCServiceAny debug(@javax.annotation.Nullable Map debug) { + public OIDCServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public OIDCServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { OIDCServiceAny oiDCServiceAny = (OIDCServiceAny) o; return Objects.equals(this.type, oiDCServiceAny.type) && Objects.equals(this.value, oiDCServiceAny.value) && - Objects.equals(this.debug, oiDCServiceAny.debug) && + equalsNullable(this.debug, oiDCServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/OIDCServiceConnectError.java b/src/main/java/com/zitadel/model/OIDCServiceConnectError.java index 9a6d0a6..ecccbee 100644 --- a/src/main/java/com/zitadel/model/OIDCServiceConnectError.java +++ b/src/main/java/com/zitadel/model/OIDCServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.OIDCServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ OIDCServiceConnectError.JSON_PROPERTY_CODE, OIDCServiceConnectError.JSON_PROPERTY_MESSAGE, - OIDCServiceConnectError.JSON_PROPERTY_DETAIL + OIDCServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OIDCServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private OIDCServiceAny detail; + private List details = new ArrayList<>(); public OIDCServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public OIDCServiceConnectError detail(@javax.annotation.Nullable OIDCServiceAny detail) { + public OIDCServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public OIDCServiceConnectError addDetailsItem(OIDCServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OIDCServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable OIDCServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { OIDCServiceConnectError oiDCServiceConnectError = (OIDCServiceConnectError) o; return Objects.equals(this.code, oiDCServiceConnectError.code) && Objects.equals(this.message, oiDCServiceConnectError.message) && - Objects.equals(this.detail, oiDCServiceConnectError.detail) && + Objects.equals(this.details, oiDCServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceAddHumanUserRequest.java b/src/main/java/com/zitadel/model/OrganizationServiceAddHumanUserRequest.java index 06201bc..45c43a5 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceAddHumanUserRequest.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceAddHumanUserRequest.java @@ -72,11 +72,11 @@ public class OrganizationServiceAddHumanUserRequest { private OrganizationServiceOrganization organization; public static final String JSON_PROPERTY_PROFILE = "profile"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private OrganizationServiceSetHumanProfile profile; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private OrganizationServiceSetHumanEmail email; public static final String JSON_PROPERTY_PHONE = "phone"; @@ -197,7 +197,7 @@ public void setOrganization(@javax.annotation.Nullable OrganizationServiceOrgani this.organization = organization; } - public OrganizationServiceAddHumanUserRequest profile(@javax.annotation.Nonnull OrganizationServiceSetHumanProfile profile) { + public OrganizationServiceAddHumanUserRequest profile(@javax.annotation.Nullable OrganizationServiceSetHumanProfile profile) { this.profile = profile; return this; @@ -207,9 +207,9 @@ public OrganizationServiceAddHumanUserRequest profile(@javax.annotation.Nonnull * Get profile * @return profile */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OrganizationServiceSetHumanProfile getProfile() { return profile; @@ -217,12 +217,12 @@ public OrganizationServiceSetHumanProfile getProfile() { @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProfile(@javax.annotation.Nonnull OrganizationServiceSetHumanProfile profile) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProfile(@javax.annotation.Nullable OrganizationServiceSetHumanProfile profile) { this.profile = profile; } - public OrganizationServiceAddHumanUserRequest email(@javax.annotation.Nonnull OrganizationServiceSetHumanEmail email) { + public OrganizationServiceAddHumanUserRequest email(@javax.annotation.Nullable OrganizationServiceSetHumanEmail email) { this.email = email; return this; @@ -232,9 +232,9 @@ public OrganizationServiceAddHumanUserRequest email(@javax.annotation.Nonnull Or * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OrganizationServiceSetHumanEmail getEmail() { return email; @@ -242,8 +242,8 @@ public OrganizationServiceSetHumanEmail getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull OrganizationServiceSetHumanEmail email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable OrganizationServiceSetHumanEmail email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceAddOrganizationRequest.java b/src/main/java/com/zitadel/model/OrganizationServiceAddOrganizationRequest.java index 043a6e3..ae71661 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceAddOrganizationRequest.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceAddOrganizationRequest.java @@ -45,7 +45,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceAddOrganizationRequest { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_ADMINS = "admins"; @@ -59,7 +59,7 @@ public class OrganizationServiceAddOrganizationRequest { public OrganizationServiceAddOrganizationRequest() { } - public OrganizationServiceAddOrganizationRequest name(@javax.annotation.Nonnull String name) { + public OrganizationServiceAddOrganizationRequest name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -69,9 +69,9 @@ public OrganizationServiceAddOrganizationRequest name(@javax.annotation.Nonnull * Get name * @return name */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -79,8 +79,8 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull String name) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceAny.java b/src/main/java/com/zitadel/model/OrganizationServiceAny.java index ce76e6b..71cd908 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceAny.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ OrganizationServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class OrganizationServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public OrganizationServiceAny() { @@ -62,7 +66,7 @@ public OrganizationServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public OrganizationServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public OrganizationServiceAny debug(@javax.annotation.Nullable Map debug) { + public OrganizationServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public OrganizationServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { OrganizationServiceAny organizationServiceAny = (OrganizationServiceAny) o; return Objects.equals(this.type, organizationServiceAny.type) && Objects.equals(this.value, organizationServiceAny.value) && - Objects.equals(this.debug, organizationServiceAny.debug) && + equalsNullable(this.debug, organizationServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceConnectError.java b/src/main/java/com/zitadel/model/OrganizationServiceConnectError.java index d97ddd7..a2b6c82 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceConnectError.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.OrganizationServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ OrganizationServiceConnectError.JSON_PROPERTY_CODE, OrganizationServiceConnectError.JSON_PROPERTY_MESSAGE, - OrganizationServiceConnectError.JSON_PROPERTY_DETAIL + OrganizationServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private OrganizationServiceAny detail; + private List details = new ArrayList<>(); public OrganizationServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public OrganizationServiceConnectError detail(@javax.annotation.Nullable OrganizationServiceAny detail) { + public OrganizationServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public OrganizationServiceConnectError addDetailsItem(OrganizationServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrganizationServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable OrganizationServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { OrganizationServiceConnectError organizationServiceConnectError = (OrganizationServiceConnectError) o; return Objects.equals(this.code, organizationServiceConnectError.code) && Objects.equals(this.message, organizationServiceConnectError.message) && - Objects.equals(this.detail, organizationServiceConnectError.detail) && + Objects.equals(this.details, organizationServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceHashedPassword.java b/src/main/java/com/zitadel/model/OrganizationServiceHashedPassword.java index fd8ccab..0ff5173 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceHashedPassword.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceHashedPassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceHashedPassword { public static final String JSON_PROPERTY_HASH = "hash"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String hash; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class OrganizationServiceHashedPassword { public OrganizationServiceHashedPassword() { } - public OrganizationServiceHashedPassword hash(@javax.annotation.Nonnull String hash) { + public OrganizationServiceHashedPassword hash(@javax.annotation.Nullable String hash) { this.hash = hash; return this; @@ -56,9 +56,9 @@ public OrganizationServiceHashedPassword hash(@javax.annotation.Nonnull String h * Get hash * @return hash */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHash() { return hash; @@ -66,8 +66,8 @@ public String getHash() { @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHash(@javax.annotation.Nonnull String hash) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHash(@javax.annotation.Nullable String hash) { this.hash = hash; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceOrganizationDomainQuery.java b/src/main/java/com/zitadel/model/OrganizationServiceOrganizationDomainQuery.java index cf6fa09..edfb6d7 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceOrganizationDomainQuery.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceOrganizationDomainQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceOrganizationDomainQuery { public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class OrganizationServiceOrganizationDomainQuery { public OrganizationServiceOrganizationDomainQuery() { } - public OrganizationServiceOrganizationDomainQuery domain(@javax.annotation.Nonnull String domain) { + public OrganizationServiceOrganizationDomainQuery domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -57,9 +57,9 @@ public OrganizationServiceOrganizationDomainQuery domain(@javax.annotation.Nonnu * Domain used in organization, not necessary primary domain. * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -67,8 +67,8 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceOrganizationIDQuery.java b/src/main/java/com/zitadel/model/OrganizationServiceOrganizationIDQuery.java index 3f9bea9..b8d4267 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceOrganizationIDQuery.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceOrganizationIDQuery.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceOrganizationIDQuery { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public OrganizationServiceOrganizationIDQuery() { } - public OrganizationServiceOrganizationIDQuery id(@javax.annotation.Nonnull String id) { + public OrganizationServiceOrganizationIDQuery id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public OrganizationServiceOrganizationIDQuery id(@javax.annotation.Nonnull Strin * Unique identifier of the organization. * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceOrganizationNameQuery.java b/src/main/java/com/zitadel/model/OrganizationServiceOrganizationNameQuery.java index f9985a7..baf4a09 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceOrganizationNameQuery.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceOrganizationNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceOrganizationNameQuery { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class OrganizationServiceOrganizationNameQuery { public OrganizationServiceOrganizationNameQuery() { } - public OrganizationServiceOrganizationNameQuery name(@javax.annotation.Nonnull String name) { + public OrganizationServiceOrganizationNameQuery name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -57,9 +57,9 @@ public OrganizationServiceOrganizationNameQuery name(@javax.annotation.Nonnull S * Name of the organization. * @return name */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -67,8 +67,8 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@javax.annotation.Nonnull String name) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/src/main/java/com/zitadel/model/OrganizationServicePassword.java b/src/main/java/com/zitadel/model/OrganizationServicePassword.java index d5ff2b0..5c97fa8 100644 --- a/src/main/java/com/zitadel/model/OrganizationServicePassword.java +++ b/src/main/java/com/zitadel/model/OrganizationServicePassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServicePassword { public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class OrganizationServicePassword { public OrganizationServicePassword() { } - public OrganizationServicePassword password(@javax.annotation.Nonnull String password) { + public OrganizationServicePassword password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -56,9 +56,9 @@ public OrganizationServicePassword password(@javax.annotation.Nonnull String pas * Get password * @return password */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -66,8 +66,8 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(@javax.annotation.Nonnull String password) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceSetHumanEmail.java b/src/main/java/com/zitadel/model/OrganizationServiceSetHumanEmail.java index baf9a99..a9f8ec4 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceSetHumanEmail.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceSetHumanEmail.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceSetHumanEmail { public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -57,7 +57,7 @@ public class OrganizationServiceSetHumanEmail { public OrganizationServiceSetHumanEmail() { } - public OrganizationServiceSetHumanEmail email(@javax.annotation.Nonnull String email) { + public OrganizationServiceSetHumanEmail email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -67,9 +67,9 @@ public OrganizationServiceSetHumanEmail email(@javax.annotation.Nonnull String e * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -77,8 +77,8 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull String email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceSetHumanProfile.java b/src/main/java/com/zitadel/model/OrganizationServiceSetHumanProfile.java index 7232223..7397668 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceSetHumanProfile.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceSetHumanProfile.java @@ -45,11 +45,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceSetHumanProfile { public static final String JSON_PROPERTY_GIVEN_NAME = "givenName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String givenName; public static final String JSON_PROPERTY_FAMILY_NAME = "familyName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String familyName; public static final String JSON_PROPERTY_NICK_NAME = "nickName"; @@ -71,7 +71,7 @@ public class OrganizationServiceSetHumanProfile { public OrganizationServiceSetHumanProfile() { } - public OrganizationServiceSetHumanProfile givenName(@javax.annotation.Nonnull String givenName) { + public OrganizationServiceSetHumanProfile givenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; return this; @@ -81,9 +81,9 @@ public OrganizationServiceSetHumanProfile givenName(@javax.annotation.Nonnull St * Get givenName * @return givenName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGivenName() { return givenName; @@ -91,12 +91,12 @@ public String getGivenName() { @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGivenName(@javax.annotation.Nonnull String givenName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGivenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; } - public OrganizationServiceSetHumanProfile familyName(@javax.annotation.Nonnull String familyName) { + public OrganizationServiceSetHumanProfile familyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; return this; @@ -106,9 +106,9 @@ public OrganizationServiceSetHumanProfile familyName(@javax.annotation.Nonnull S * Get familyName * @return familyName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFamilyName() { return familyName; @@ -116,8 +116,8 @@ public String getFamilyName() { @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFamilyName(@javax.annotation.Nonnull String familyName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFamilyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; } diff --git a/src/main/java/com/zitadel/model/OrganizationServiceSetMetadataEntry.java b/src/main/java/com/zitadel/model/OrganizationServiceSetMetadataEntry.java index c11a2b0..06b1af6 100644 --- a/src/main/java/com/zitadel/model/OrganizationServiceSetMetadataEntry.java +++ b/src/main/java/com/zitadel/model/OrganizationServiceSetMetadataEntry.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class OrganizationServiceSetMetadataEntry { public static final String JSON_PROPERTY_KEY = "key"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String key; public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private byte[] value; public OrganizationServiceSetMetadataEntry() { } - public OrganizationServiceSetMetadataEntry key(@javax.annotation.Nonnull String key) { + public OrganizationServiceSetMetadataEntry key(@javax.annotation.Nullable String key) { this.key = key; return this; @@ -56,9 +56,9 @@ public OrganizationServiceSetMetadataEntry key(@javax.annotation.Nonnull String * Get key * @return key */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getKey() { return key; @@ -66,12 +66,12 @@ public String getKey() { @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKey(@javax.annotation.Nonnull String key) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKey(@javax.annotation.Nullable String key) { this.key = key; } - public OrganizationServiceSetMetadataEntry value(@javax.annotation.Nonnull byte[] value) { + public OrganizationServiceSetMetadataEntry value(@javax.annotation.Nullable byte[] value) { this.value = value; return this; @@ -81,9 +81,9 @@ public OrganizationServiceSetMetadataEntry value(@javax.annotation.Nonnull byte[ * Get value * @return value */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getValue() { return value; @@ -91,8 +91,8 @@ public byte[] getValue() { @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(@javax.annotation.Nonnull byte[] value) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValue(@javax.annotation.Nullable byte[] value) { this.value = value; } diff --git a/src/main/java/com/zitadel/model/SAMLServiceAny.java b/src/main/java/com/zitadel/model/SAMLServiceAny.java index a42d1b1..4f1a19d 100644 --- a/src/main/java/com/zitadel/model/SAMLServiceAny.java +++ b/src/main/java/com/zitadel/model/SAMLServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ SAMLServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class SAMLServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public SAMLServiceAny() { @@ -62,7 +66,7 @@ public SAMLServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public SAMLServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public SAMLServiceAny debug(@javax.annotation.Nullable Map debug) { + public SAMLServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public SAMLServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { SAMLServiceAny saMLServiceAny = (SAMLServiceAny) o; return Objects.equals(this.type, saMLServiceAny.type) && Objects.equals(this.value, saMLServiceAny.value) && - Objects.equals(this.debug, saMLServiceAny.debug) && + equalsNullable(this.debug, saMLServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/SAMLServiceConnectError.java b/src/main/java/com/zitadel/model/SAMLServiceConnectError.java index 498f9e0..1ca61f2 100644 --- a/src/main/java/com/zitadel/model/SAMLServiceConnectError.java +++ b/src/main/java/com/zitadel/model/SAMLServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.SAMLServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ SAMLServiceConnectError.JSON_PROPERTY_CODE, SAMLServiceConnectError.JSON_PROPERTY_MESSAGE, - SAMLServiceConnectError.JSON_PROPERTY_DETAIL + SAMLServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class SAMLServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private SAMLServiceAny detail; + private List details = new ArrayList<>(); public SAMLServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public SAMLServiceConnectError detail(@javax.annotation.Nullable SAMLServiceAny detail) { + public SAMLServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public SAMLServiceConnectError addDetailsItem(SAMLServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SAMLServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable SAMLServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { SAMLServiceConnectError saMLServiceConnectError = (SAMLServiceConnectError) o; return Objects.equals(this.code, saMLServiceConnectError.code) && Objects.equals(this.message, saMLServiceConnectError.message) && - Objects.equals(this.detail, saMLServiceConnectError.detail) && + Objects.equals(this.details, saMLServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/SessionServiceAny.java b/src/main/java/com/zitadel/model/SessionServiceAny.java index eabca14..84a600c 100644 --- a/src/main/java/com/zitadel/model/SessionServiceAny.java +++ b/src/main/java/com/zitadel/model/SessionServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ SessionServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class SessionServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public SessionServiceAny() { @@ -62,7 +66,7 @@ public SessionServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public SessionServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public SessionServiceAny debug(@javax.annotation.Nullable Map debug) { + public SessionServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public SessionServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { SessionServiceAny sessionServiceAny = (SessionServiceAny) o; return Objects.equals(this.type, sessionServiceAny.type) && Objects.equals(this.value, sessionServiceAny.value) && - Objects.equals(this.debug, sessionServiceAny.debug) && + equalsNullable(this.debug, sessionServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/SessionServiceCheckWebAuthN.java b/src/main/java/com/zitadel/model/SessionServiceCheckWebAuthN.java index d80aad2..0d11ea7 100644 --- a/src/main/java/com/zitadel/model/SessionServiceCheckWebAuthN.java +++ b/src/main/java/com/zitadel/model/SessionServiceCheckWebAuthN.java @@ -37,19 +37,22 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class SessionServiceCheckWebAuthN { public static final String JSON_PROPERTY_CREDENTIAL_ASSERTION_DATA = "credentialAssertionData"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Map credentialAssertionData = new HashMap<>(); public SessionServiceCheckWebAuthN() { } - public SessionServiceCheckWebAuthN credentialAssertionData(@javax.annotation.Nonnull Map credentialAssertionData) { + public SessionServiceCheckWebAuthN credentialAssertionData(@javax.annotation.Nullable Map credentialAssertionData) { this.credentialAssertionData = credentialAssertionData; return this; } public SessionServiceCheckWebAuthN putCredentialAssertionDataItem(String key, Object credentialAssertionDataItem) { + if (this.credentialAssertionData == null) { + this.credentialAssertionData = new HashMap<>(); + } this.credentialAssertionData.put(key, credentialAssertionDataItem); return this; } @@ -58,9 +61,9 @@ public SessionServiceCheckWebAuthN putCredentialAssertionDataItem(String key, Ob * `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. * @return credentialAssertionData */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREDENTIAL_ASSERTION_DATA) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getCredentialAssertionData() { return credentialAssertionData; @@ -68,8 +71,8 @@ public Map getCredentialAssertionData() { @JsonProperty(JSON_PROPERTY_CREDENTIAL_ASSERTION_DATA) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) - public void setCredentialAssertionData(@javax.annotation.Nonnull Map credentialAssertionData) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setCredentialAssertionData(@javax.annotation.Nullable Map credentialAssertionData) { this.credentialAssertionData = credentialAssertionData; } diff --git a/src/main/java/com/zitadel/model/SessionServiceConnectError.java b/src/main/java/com/zitadel/model/SessionServiceConnectError.java index df0050a..5ddfbbe 100644 --- a/src/main/java/com/zitadel/model/SessionServiceConnectError.java +++ b/src/main/java/com/zitadel/model/SessionServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.SessionServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ SessionServiceConnectError.JSON_PROPERTY_CODE, SessionServiceConnectError.JSON_PROPERTY_MESSAGE, - SessionServiceConnectError.JSON_PROPERTY_DETAIL + SessionServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class SessionServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private SessionServiceAny detail; + private List details = new ArrayList<>(); public SessionServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public SessionServiceConnectError detail(@javax.annotation.Nullable SessionServiceAny detail) { + public SessionServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public SessionServiceConnectError addDetailsItem(SessionServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SessionServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable SessionServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { SessionServiceConnectError sessionServiceConnectError = (SessionServiceConnectError) o; return Objects.equals(this.code, sessionServiceConnectError.code) && Objects.equals(this.message, sessionServiceConnectError.message) && - Objects.equals(this.detail, sessionServiceConnectError.detail) && + Objects.equals(this.details, sessionServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/SessionServiceWebAuthN.java b/src/main/java/com/zitadel/model/SessionServiceWebAuthN.java index 501ee8e..2cd2362 100644 --- a/src/main/java/com/zitadel/model/SessionServiceWebAuthN.java +++ b/src/main/java/com/zitadel/model/SessionServiceWebAuthN.java @@ -37,17 +37,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class SessionServiceWebAuthN { public static final String JSON_PROPERTY_DOMAIN = "domain"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String domain; public static final String JSON_PROPERTY_USER_VERIFICATION_REQUIREMENT = "userVerificationRequirement"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private SessionServiceUserVerificationRequirement userVerificationRequirement; public SessionServiceWebAuthN() { } - public SessionServiceWebAuthN domain(@javax.annotation.Nonnull String domain) { + public SessionServiceWebAuthN domain(@javax.annotation.Nullable String domain) { this.domain = domain; return this; @@ -57,9 +57,9 @@ public SessionServiceWebAuthN domain(@javax.annotation.Nonnull String domain) { * Get domain * @return domain */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDomain() { return domain; @@ -67,12 +67,12 @@ public String getDomain() { @JsonProperty(JSON_PROPERTY_DOMAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomain(@javax.annotation.Nonnull String domain) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { this.domain = domain; } - public SessionServiceWebAuthN userVerificationRequirement(@javax.annotation.Nonnull SessionServiceUserVerificationRequirement userVerificationRequirement) { + public SessionServiceWebAuthN userVerificationRequirement(@javax.annotation.Nullable SessionServiceUserVerificationRequirement userVerificationRequirement) { this.userVerificationRequirement = userVerificationRequirement; return this; @@ -82,9 +82,9 @@ public SessionServiceWebAuthN userVerificationRequirement(@javax.annotation.Nonn * Get userVerificationRequirement * @return userVerificationRequirement */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_VERIFICATION_REQUIREMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SessionServiceUserVerificationRequirement getUserVerificationRequirement() { return userVerificationRequirement; @@ -92,8 +92,8 @@ public SessionServiceUserVerificationRequirement getUserVerificationRequirement( @JsonProperty(JSON_PROPERTY_USER_VERIFICATION_REQUIREMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserVerificationRequirement(@javax.annotation.Nonnull SessionServiceUserVerificationRequirement userVerificationRequirement) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserVerificationRequirement(@javax.annotation.Nullable SessionServiceUserVerificationRequirement userVerificationRequirement) { this.userVerificationRequirement = userVerificationRequirement; } diff --git a/src/main/java/com/zitadel/model/SettingsServiceAny.java b/src/main/java/com/zitadel/model/SettingsServiceAny.java index 912a701..de1fe72 100644 --- a/src/main/java/com/zitadel/model/SettingsServiceAny.java +++ b/src/main/java/com/zitadel/model/SettingsServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ SettingsServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class SettingsServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public SettingsServiceAny() { @@ -62,7 +66,7 @@ public SettingsServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public SettingsServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public SettingsServiceAny debug(@javax.annotation.Nullable Map debug) { + public SettingsServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public SettingsServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { SettingsServiceAny settingsServiceAny = (SettingsServiceAny) o; return Objects.equals(this.type, settingsServiceAny.type) && Objects.equals(this.value, settingsServiceAny.value) && - Objects.equals(this.debug, settingsServiceAny.debug) && + equalsNullable(this.debug, settingsServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/SettingsServiceConnectError.java b/src/main/java/com/zitadel/model/SettingsServiceConnectError.java index 9a62c81..49102bd 100644 --- a/src/main/java/com/zitadel/model/SettingsServiceConnectError.java +++ b/src/main/java/com/zitadel/model/SettingsServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.SettingsServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ SettingsServiceConnectError.JSON_PROPERTY_CODE, SettingsServiceConnectError.JSON_PROPERTY_MESSAGE, - SettingsServiceConnectError.JSON_PROPERTY_DETAIL + SettingsServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class SettingsServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private SettingsServiceAny detail; + private List details = new ArrayList<>(); public SettingsServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public SettingsServiceConnectError detail(@javax.annotation.Nullable SettingsServiceAny detail) { + public SettingsServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public SettingsServiceConnectError addDetailsItem(SettingsServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SettingsServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable SettingsServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { SettingsServiceConnectError settingsServiceConnectError = (SettingsServiceConnectError) o; return Objects.equals(this.code, settingsServiceConnectError.code) && Objects.equals(this.message, settingsServiceConnectError.message) && - Objects.equals(this.detail, settingsServiceConnectError.detail) && + Objects.equals(this.details, settingsServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/UserServiceAddHumanUserRequest.java b/src/main/java/com/zitadel/model/UserServiceAddHumanUserRequest.java index a139e04..3a4813f 100644 --- a/src/main/java/com/zitadel/model/UserServiceAddHumanUserRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceAddHumanUserRequest.java @@ -72,11 +72,11 @@ public class UserServiceAddHumanUserRequest { private UserServiceOrganization organization; public static final String JSON_PROPERTY_PROFILE = "profile"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private UserServiceSetHumanProfile profile; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private UserServiceSetHumanEmail email; public static final String JSON_PROPERTY_PHONE = "phone"; @@ -197,7 +197,7 @@ public void setOrganization(@javax.annotation.Nullable UserServiceOrganization o this.organization = organization; } - public UserServiceAddHumanUserRequest profile(@javax.annotation.Nonnull UserServiceSetHumanProfile profile) { + public UserServiceAddHumanUserRequest profile(@javax.annotation.Nullable UserServiceSetHumanProfile profile) { this.profile = profile; return this; @@ -207,9 +207,9 @@ public UserServiceAddHumanUserRequest profile(@javax.annotation.Nonnull UserServ * Get profile * @return profile */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UserServiceSetHumanProfile getProfile() { return profile; @@ -217,12 +217,12 @@ public UserServiceSetHumanProfile getProfile() { @JsonProperty(JSON_PROPERTY_PROFILE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProfile(@javax.annotation.Nonnull UserServiceSetHumanProfile profile) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProfile(@javax.annotation.Nullable UserServiceSetHumanProfile profile) { this.profile = profile; } - public UserServiceAddHumanUserRequest email(@javax.annotation.Nonnull UserServiceSetHumanEmail email) { + public UserServiceAddHumanUserRequest email(@javax.annotation.Nullable UserServiceSetHumanEmail email) { this.email = email; return this; @@ -232,9 +232,9 @@ public UserServiceAddHumanUserRequest email(@javax.annotation.Nonnull UserServic * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UserServiceSetHumanEmail getEmail() { return email; @@ -242,8 +242,8 @@ public UserServiceSetHumanEmail getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull UserServiceSetHumanEmail email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable UserServiceSetHumanEmail email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/UserServiceAddIDPLinkRequest.java b/src/main/java/com/zitadel/model/UserServiceAddIDPLinkRequest.java index 69fafd2..6212441 100644 --- a/src/main/java/com/zitadel/model/UserServiceAddIDPLinkRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceAddIDPLinkRequest.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceAddIDPLinkRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_IDP_LINK = "idpLink"; @@ -47,7 +47,7 @@ public class UserServiceAddIDPLinkRequest { public UserServiceAddIDPLinkRequest() { } - public UserServiceAddIDPLinkRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceAddIDPLinkRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -57,9 +57,9 @@ public UserServiceAddIDPLinkRequest userId(@javax.annotation.Nonnull String user * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -67,8 +67,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceAddOTPEmailRequest.java b/src/main/java/com/zitadel/model/UserServiceAddOTPEmailRequest.java index 85ee0ed..71580fd 100644 --- a/src/main/java/com/zitadel/model/UserServiceAddOTPEmailRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceAddOTPEmailRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceAddOTPEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceAddOTPEmailRequest() { } - public UserServiceAddOTPEmailRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceAddOTPEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceAddOTPEmailRequest userId(@javax.annotation.Nonnull String use * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceAddOTPSMSRequest.java b/src/main/java/com/zitadel/model/UserServiceAddOTPSMSRequest.java index 2d19dcd..1902435 100644 --- a/src/main/java/com/zitadel/model/UserServiceAddOTPSMSRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceAddOTPSMSRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceAddOTPSMSRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceAddOTPSMSRequest() { } - public UserServiceAddOTPSMSRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceAddOTPSMSRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceAddOTPSMSRequest userId(@javax.annotation.Nonnull String userI * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceAny.java b/src/main/java/com/zitadel/model/UserServiceAny.java index e7c5954..b838281 100644 --- a/src/main/java/com/zitadel/model/UserServiceAny.java +++ b/src/main/java/com/zitadel/model/UserServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ UserServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class UserServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public UserServiceAny() { @@ -62,7 +66,7 @@ public UserServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public UserServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public UserServiceAny debug(@javax.annotation.Nullable Map debug) { + public UserServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public UserServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { UserServiceAny userServiceAny = (UserServiceAny) o; return Objects.equals(this.type, userServiceAny.type) && Objects.equals(this.value, userServiceAny.value) && - Objects.equals(this.debug, userServiceAny.debug) && + equalsNullable(this.debug, userServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/UserServiceConnectError.java b/src/main/java/com/zitadel/model/UserServiceConnectError.java index b79e938..c622339 100644 --- a/src/main/java/com/zitadel/model/UserServiceConnectError.java +++ b/src/main/java/com/zitadel/model/UserServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.UserServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ UserServiceConnectError.JSON_PROPERTY_CODE, UserServiceConnectError.JSON_PROPERTY_MESSAGE, - UserServiceConnectError.JSON_PROPERTY_DETAIL + UserServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private UserServiceAny detail; + private List details = new ArrayList<>(); public UserServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public UserServiceConnectError detail(@javax.annotation.Nullable UserServiceAny detail) { + public UserServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public UserServiceConnectError addDetailsItem(UserServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UserServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable UserServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { UserServiceConnectError userServiceConnectError = (UserServiceConnectError) o; return Objects.equals(this.code, userServiceConnectError.code) && Objects.equals(this.message, userServiceConnectError.message) && - Objects.equals(this.detail, userServiceConnectError.detail) && + Objects.equals(this.details, userServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/UserServiceCreateInviteCodeRequest.java b/src/main/java/com/zitadel/model/UserServiceCreateInviteCodeRequest.java index 982cede..4e8c432 100644 --- a/src/main/java/com/zitadel/model/UserServiceCreateInviteCodeRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceCreateInviteCodeRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceCreateInviteCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class UserServiceCreateInviteCodeRequest { public UserServiceCreateInviteCodeRequest() { } - public UserServiceCreateInviteCodeRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceCreateInviteCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public UserServiceCreateInviteCodeRequest userId(@javax.annotation.Nonnull Strin * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceCreatePasskeyRegistrationLinkRequest.java b/src/main/java/com/zitadel/model/UserServiceCreatePasskeyRegistrationLinkRequest.java index d7c4ad3..72b117a 100644 --- a/src/main/java/com/zitadel/model/UserServiceCreatePasskeyRegistrationLinkRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceCreatePasskeyRegistrationLinkRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceCreatePasskeyRegistrationLinkRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class UserServiceCreatePasskeyRegistrationLinkRequest { public UserServiceCreatePasskeyRegistrationLinkRequest() { } - public UserServiceCreatePasskeyRegistrationLinkRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceCreatePasskeyRegistrationLinkRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public UserServiceCreatePasskeyRegistrationLinkRequest userId(@javax.annotation. * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceDeactivateUserRequest.java b/src/main/java/com/zitadel/model/UserServiceDeactivateUserRequest.java index efb5878..b2efa79 100644 --- a/src/main/java/com/zitadel/model/UserServiceDeactivateUserRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceDeactivateUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceDeactivateUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceDeactivateUserRequest() { } - public UserServiceDeactivateUserRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceDeactivateUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceDeactivateUserRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceDeleteUserRequest.java b/src/main/java/com/zitadel/model/UserServiceDeleteUserRequest.java index 6628aa2..3720c5a 100644 --- a/src/main/java/com/zitadel/model/UserServiceDeleteUserRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceDeleteUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceDeleteUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceDeleteUserRequest() { } - public UserServiceDeleteUserRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceDeleteUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceDeleteUserRequest userId(@javax.annotation.Nonnull String user * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceDisplayNameQuery.java b/src/main/java/com/zitadel/model/UserServiceDisplayNameQuery.java index 370e867..402602d 100644 --- a/src/main/java/com/zitadel/model/UserServiceDisplayNameQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceDisplayNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceDisplayNameQuery { public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String displayName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServiceDisplayNameQuery { public UserServiceDisplayNameQuery() { } - public UserServiceDisplayNameQuery displayName(@javax.annotation.Nonnull String displayName) { + public UserServiceDisplayNameQuery displayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; return this; @@ -57,9 +57,9 @@ public UserServiceDisplayNameQuery displayName(@javax.annotation.Nonnull String * Get displayName * @return displayName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDisplayName() { return displayName; @@ -67,8 +67,8 @@ public String getDisplayName() { @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(@javax.annotation.Nonnull String displayName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDisplayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; } diff --git a/src/main/java/com/zitadel/model/UserServiceEmailQuery.java b/src/main/java/com/zitadel/model/UserServiceEmailQuery.java index 5bed9bc..626a5cc 100644 --- a/src/main/java/com/zitadel/model/UserServiceEmailQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceEmailQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceEmailQuery { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "emailAddress"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServiceEmailQuery { public UserServiceEmailQuery() { } - public UserServiceEmailQuery emailAddress(@javax.annotation.Nonnull String emailAddress) { + public UserServiceEmailQuery emailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; @@ -57,9 +57,9 @@ public UserServiceEmailQuery emailAddress(@javax.annotation.Nonnull String email * Get emailAddress * @return emailAddress */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; @@ -67,8 +67,8 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } diff --git a/src/main/java/com/zitadel/model/UserServiceFirstNameQuery.java b/src/main/java/com/zitadel/model/UserServiceFirstNameQuery.java index 4cd9859..34b28a7 100644 --- a/src/main/java/com/zitadel/model/UserServiceFirstNameQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceFirstNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceFirstNameQuery { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServiceFirstNameQuery { public UserServiceFirstNameQuery() { } - public UserServiceFirstNameQuery firstName(@javax.annotation.Nonnull String firstName) { + public UserServiceFirstNameQuery firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -57,9 +57,9 @@ public UserServiceFirstNameQuery firstName(@javax.annotation.Nonnull String firs * Get firstName * @return firstName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; @@ -67,8 +67,8 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFirstName(@javax.annotation.Nonnull String firstName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } diff --git a/src/main/java/com/zitadel/model/UserServiceGetUserByIDRequest.java b/src/main/java/com/zitadel/model/UserServiceGetUserByIDRequest.java index 60eb89b..26dda2c 100644 --- a/src/main/java/com/zitadel/model/UserServiceGetUserByIDRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceGetUserByIDRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceGetUserByIDRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceGetUserByIDRequest() { } - public UserServiceGetUserByIDRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceGetUserByIDRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceGetUserByIDRequest userId(@javax.annotation.Nonnull String use * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceHashedPassword.java b/src/main/java/com/zitadel/model/UserServiceHashedPassword.java index f9d6a2e..2ab9a6b 100644 --- a/src/main/java/com/zitadel/model/UserServiceHashedPassword.java +++ b/src/main/java/com/zitadel/model/UserServiceHashedPassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceHashedPassword { public static final String JSON_PROPERTY_HASH = "hash"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String hash; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class UserServiceHashedPassword { public UserServiceHashedPassword() { } - public UserServiceHashedPassword hash(@javax.annotation.Nonnull String hash) { + public UserServiceHashedPassword hash(@javax.annotation.Nullable String hash) { this.hash = hash; return this; @@ -56,9 +56,9 @@ public UserServiceHashedPassword hash(@javax.annotation.Nonnull String hash) { * Get hash * @return hash */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHash() { return hash; @@ -66,8 +66,8 @@ public String getHash() { @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHash(@javax.annotation.Nonnull String hash) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHash(@javax.annotation.Nullable String hash) { this.hash = hash; } diff --git a/src/main/java/com/zitadel/model/UserServiceHumanMFAInitSkippedRequest.java b/src/main/java/com/zitadel/model/UserServiceHumanMFAInitSkippedRequest.java index c1e7e98..dcadcfc 100644 --- a/src/main/java/com/zitadel/model/UserServiceHumanMFAInitSkippedRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceHumanMFAInitSkippedRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceHumanMFAInitSkippedRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceHumanMFAInitSkippedRequest() { } - public UserServiceHumanMFAInitSkippedRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceHumanMFAInitSkippedRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceHumanMFAInitSkippedRequest userId(@javax.annotation.Nonnull St * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceLastNameQuery.java b/src/main/java/com/zitadel/model/UserServiceLastNameQuery.java index 5ba641a..7fe7bd8 100644 --- a/src/main/java/com/zitadel/model/UserServiceLastNameQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceLastNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceLastNameQuery { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServiceLastNameQuery { public UserServiceLastNameQuery() { } - public UserServiceLastNameQuery lastName(@javax.annotation.Nonnull String lastName) { + public UserServiceLastNameQuery lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -57,9 +57,9 @@ public UserServiceLastNameQuery lastName(@javax.annotation.Nonnull String lastNa * Get lastName * @return lastName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; @@ -67,8 +67,8 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastName(@javax.annotation.Nonnull String lastName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } diff --git a/src/main/java/com/zitadel/model/UserServiceListAuthenticationFactorsRequest.java b/src/main/java/com/zitadel/model/UserServiceListAuthenticationFactorsRequest.java index d3b78bf..28baf9e 100644 --- a/src/main/java/com/zitadel/model/UserServiceListAuthenticationFactorsRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceListAuthenticationFactorsRequest.java @@ -42,7 +42,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceListAuthenticationFactorsRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_AUTH_FACTORS = "authFactors"; @@ -56,7 +56,7 @@ public class UserServiceListAuthenticationFactorsRequest { public UserServiceListAuthenticationFactorsRequest() { } - public UserServiceListAuthenticationFactorsRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceListAuthenticationFactorsRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -66,9 +66,9 @@ public UserServiceListAuthenticationFactorsRequest userId(@javax.annotation.Nonn * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -76,8 +76,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceListAuthenticationMethodTypesRequest.java b/src/main/java/com/zitadel/model/UserServiceListAuthenticationMethodTypesRequest.java index f916fff..f733ad7 100644 --- a/src/main/java/com/zitadel/model/UserServiceListAuthenticationMethodTypesRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceListAuthenticationMethodTypesRequest.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceListAuthenticationMethodTypesRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_DOMAIN_QUERY = "domainQuery"; @@ -47,7 +47,7 @@ public class UserServiceListAuthenticationMethodTypesRequest { public UserServiceListAuthenticationMethodTypesRequest() { } - public UserServiceListAuthenticationMethodTypesRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceListAuthenticationMethodTypesRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -57,9 +57,9 @@ public UserServiceListAuthenticationMethodTypesRequest userId(@javax.annotation. * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -67,8 +67,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceListPasskeysRequest.java b/src/main/java/com/zitadel/model/UserServiceListPasskeysRequest.java index 8cef24e..f274010 100644 --- a/src/main/java/com/zitadel/model/UserServiceListPasskeysRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceListPasskeysRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceListPasskeysRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceListPasskeysRequest() { } - public UserServiceListPasskeysRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceListPasskeysRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceListPasskeysRequest userId(@javax.annotation.Nonnull String us * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceListUserMetadataRequest.java b/src/main/java/com/zitadel/model/UserServiceListUserMetadataRequest.java index 0744b85..50e7d97 100644 --- a/src/main/java/com/zitadel/model/UserServiceListUserMetadataRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceListUserMetadataRequest.java @@ -42,7 +42,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceListUserMetadataRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_PAGINATION = "pagination"; @@ -56,7 +56,7 @@ public class UserServiceListUserMetadataRequest { public UserServiceListUserMetadataRequest() { } - public UserServiceListUserMetadataRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceListUserMetadataRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -66,9 +66,9 @@ public UserServiceListUserMetadataRequest userId(@javax.annotation.Nonnull Strin * ID of the user under which the metadata is to be listed. * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -76,8 +76,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceLockUserRequest.java b/src/main/java/com/zitadel/model/UserServiceLockUserRequest.java index 9b23736..e2b450e 100644 --- a/src/main/java/com/zitadel/model/UserServiceLockUserRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceLockUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceLockUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceLockUserRequest() { } - public UserServiceLockUserRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceLockUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceLockUserRequest userId(@javax.annotation.Nonnull String userId * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceLoginNameQuery.java b/src/main/java/com/zitadel/model/UserServiceLoginNameQuery.java index 983d100..b855af1 100644 --- a/src/main/java/com/zitadel/model/UserServiceLoginNameQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceLoginNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceLoginNameQuery { public static final String JSON_PROPERTY_LOGIN_NAME = "loginName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String loginName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServiceLoginNameQuery { public UserServiceLoginNameQuery() { } - public UserServiceLoginNameQuery loginName(@javax.annotation.Nonnull String loginName) { + public UserServiceLoginNameQuery loginName(@javax.annotation.Nullable String loginName) { this.loginName = loginName; return this; @@ -57,9 +57,9 @@ public UserServiceLoginNameQuery loginName(@javax.annotation.Nonnull String logi * Get loginName * @return loginName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOGIN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLoginName() { return loginName; @@ -67,8 +67,8 @@ public String getLoginName() { @JsonProperty(JSON_PROPERTY_LOGIN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLoginName(@javax.annotation.Nonnull String loginName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLoginName(@javax.annotation.Nullable String loginName) { this.loginName = loginName; } diff --git a/src/main/java/com/zitadel/model/UserServiceNickNameQuery.java b/src/main/java/com/zitadel/model/UserServiceNickNameQuery.java index 9bdf609..32642df 100644 --- a/src/main/java/com/zitadel/model/UserServiceNickNameQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceNickNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceNickNameQuery { public static final String JSON_PROPERTY_NICK_NAME = "nickName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String nickName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServiceNickNameQuery { public UserServiceNickNameQuery() { } - public UserServiceNickNameQuery nickName(@javax.annotation.Nonnull String nickName) { + public UserServiceNickNameQuery nickName(@javax.annotation.Nullable String nickName) { this.nickName = nickName; return this; @@ -57,9 +57,9 @@ public UserServiceNickNameQuery nickName(@javax.annotation.Nonnull String nickNa * Get nickName * @return nickName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NICK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNickName() { return nickName; @@ -67,8 +67,8 @@ public String getNickName() { @JsonProperty(JSON_PROPERTY_NICK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNickName(@javax.annotation.Nonnull String nickName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNickName(@javax.annotation.Nullable String nickName) { this.nickName = nickName; } diff --git a/src/main/java/com/zitadel/model/UserServiceOrganizationIdQuery.java b/src/main/java/com/zitadel/model/UserServiceOrganizationIdQuery.java index 4a60484..73813c7 100644 --- a/src/main/java/com/zitadel/model/UserServiceOrganizationIdQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceOrganizationIdQuery.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceOrganizationIdQuery { public static final String JSON_PROPERTY_ORGANIZATION_ID = "organizationId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String organizationId; public UserServiceOrganizationIdQuery() { } - public UserServiceOrganizationIdQuery organizationId(@javax.annotation.Nonnull String organizationId) { + public UserServiceOrganizationIdQuery organizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; return this; @@ -51,9 +51,9 @@ public UserServiceOrganizationIdQuery organizationId(@javax.annotation.Nonnull S * Get organizationId * @return organizationId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrganizationId() { return organizationId; @@ -61,8 +61,8 @@ public String getOrganizationId() { @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOrganizationId(@javax.annotation.Nonnull String organizationId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOrganizationId(@javax.annotation.Nullable String organizationId) { this.organizationId = organizationId; } diff --git a/src/main/java/com/zitadel/model/UserServicePasskeyRegistrationCode.java b/src/main/java/com/zitadel/model/UserServicePasskeyRegistrationCode.java index 89aaa89..3deeed5 100644 --- a/src/main/java/com/zitadel/model/UserServicePasskeyRegistrationCode.java +++ b/src/main/java/com/zitadel/model/UserServicePasskeyRegistrationCode.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServicePasskeyRegistrationCode { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String code; public UserServicePasskeyRegistrationCode() { } - public UserServicePasskeyRegistrationCode id(@javax.annotation.Nonnull String id) { + public UserServicePasskeyRegistrationCode id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -56,9 +56,9 @@ public UserServicePasskeyRegistrationCode id(@javax.annotation.Nonnull String id * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -66,12 +66,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } - public UserServicePasskeyRegistrationCode code(@javax.annotation.Nonnull String code) { + public UserServicePasskeyRegistrationCode code(@javax.annotation.Nullable String code) { this.code = code; return this; @@ -81,9 +81,9 @@ public UserServicePasskeyRegistrationCode code(@javax.annotation.Nonnull String * Get code * @return code */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCode() { return code; @@ -91,8 +91,8 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@javax.annotation.Nonnull String code) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(@javax.annotation.Nullable String code) { this.code = code; } diff --git a/src/main/java/com/zitadel/model/UserServicePassword.java b/src/main/java/com/zitadel/model/UserServicePassword.java index b605b1d..fa5d2c6 100644 --- a/src/main/java/com/zitadel/model/UserServicePassword.java +++ b/src/main/java/com/zitadel/model/UserServicePassword.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServicePassword { public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_CHANGE_REQUIRED = "changeRequired"; @@ -46,7 +46,7 @@ public class UserServicePassword { public UserServicePassword() { } - public UserServicePassword password(@javax.annotation.Nonnull String password) { + public UserServicePassword password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -56,9 +56,9 @@ public UserServicePassword password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -66,8 +66,8 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(@javax.annotation.Nonnull String password) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } diff --git a/src/main/java/com/zitadel/model/UserServicePasswordResetRequest.java b/src/main/java/com/zitadel/model/UserServicePasswordResetRequest.java index 3c965bc..e8a3052 100644 --- a/src/main/java/com/zitadel/model/UserServicePasswordResetRequest.java +++ b/src/main/java/com/zitadel/model/UserServicePasswordResetRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServicePasswordResetRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class UserServicePasswordResetRequest { public UserServicePasswordResetRequest() { } - public UserServicePasswordResetRequest userId(@javax.annotation.Nonnull String userId) { + public UserServicePasswordResetRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public UserServicePasswordResetRequest userId(@javax.annotation.Nonnull String u * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServicePhoneQuery.java b/src/main/java/com/zitadel/model/UserServicePhoneQuery.java index 3f0445d..6659505 100644 --- a/src/main/java/com/zitadel/model/UserServicePhoneQuery.java +++ b/src/main/java/com/zitadel/model/UserServicePhoneQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServicePhoneQuery { public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String number; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServicePhoneQuery { public UserServicePhoneQuery() { } - public UserServicePhoneQuery number(@javax.annotation.Nonnull String number) { + public UserServicePhoneQuery number(@javax.annotation.Nullable String number) { this.number = number; return this; @@ -57,9 +57,9 @@ public UserServicePhoneQuery number(@javax.annotation.Nonnull String number) { * Get number * @return number */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNumber() { return number; @@ -67,8 +67,8 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(@javax.annotation.Nonnull String number) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNumber(@javax.annotation.Nullable String number) { this.number = number; } diff --git a/src/main/java/com/zitadel/model/UserServiceReactivateUserRequest.java b/src/main/java/com/zitadel/model/UserServiceReactivateUserRequest.java index 0280f0e..c5a7511 100644 --- a/src/main/java/com/zitadel/model/UserServiceReactivateUserRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceReactivateUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceReactivateUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceReactivateUserRequest() { } - public UserServiceReactivateUserRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceReactivateUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceReactivateUserRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRegisterPasskeyRequest.java b/src/main/java/com/zitadel/model/UserServiceRegisterPasskeyRequest.java index 8e1f829..918d537 100644 --- a/src/main/java/com/zitadel/model/UserServiceRegisterPasskeyRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRegisterPasskeyRequest.java @@ -40,7 +40,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRegisterPasskeyRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_CODE = "code"; @@ -58,7 +58,7 @@ public class UserServiceRegisterPasskeyRequest { public UserServiceRegisterPasskeyRequest() { } - public UserServiceRegisterPasskeyRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRegisterPasskeyRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -68,9 +68,9 @@ public UserServiceRegisterPasskeyRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -78,8 +78,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRegisterTOTPRequest.java b/src/main/java/com/zitadel/model/UserServiceRegisterTOTPRequest.java index 34f615e..0ce3802 100644 --- a/src/main/java/com/zitadel/model/UserServiceRegisterTOTPRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRegisterTOTPRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRegisterTOTPRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceRegisterTOTPRequest() { } - public UserServiceRegisterTOTPRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRegisterTOTPRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceRegisterTOTPRequest userId(@javax.annotation.Nonnull String us * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRegisterU2FRequest.java b/src/main/java/com/zitadel/model/UserServiceRegisterU2FRequest.java index 8ccc212..0ffe87a 100644 --- a/src/main/java/com/zitadel/model/UserServiceRegisterU2FRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRegisterU2FRequest.java @@ -36,7 +36,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRegisterU2FRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_DOMAIN = "domain"; @@ -46,7 +46,7 @@ public class UserServiceRegisterU2FRequest { public UserServiceRegisterU2FRequest() { } - public UserServiceRegisterU2FRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRegisterU2FRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public UserServiceRegisterU2FRequest userId(@javax.annotation.Nonnull String use * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,8 +66,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRemoveIDPLinkRequest.java b/src/main/java/com/zitadel/model/UserServiceRemoveIDPLinkRequest.java index af06c6d..9900d12 100644 --- a/src/main/java/com/zitadel/model/UserServiceRemoveIDPLinkRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRemoveIDPLinkRequest.java @@ -37,21 +37,21 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRemoveIDPLinkRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_IDP_ID = "idpId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String idpId; public static final String JSON_PROPERTY_LINKED_USER_ID = "linkedUserId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String linkedUserId; public UserServiceRemoveIDPLinkRequest() { } - public UserServiceRemoveIDPLinkRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRemoveIDPLinkRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -61,9 +61,9 @@ public UserServiceRemoveIDPLinkRequest userId(@javax.annotation.Nonnull String u * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -71,12 +71,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceRemoveIDPLinkRequest idpId(@javax.annotation.Nonnull String idpId) { + public UserServiceRemoveIDPLinkRequest idpId(@javax.annotation.Nullable String idpId) { this.idpId = idpId; return this; @@ -86,9 +86,9 @@ public UserServiceRemoveIDPLinkRequest idpId(@javax.annotation.Nonnull String id * Get idpId * @return idpId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDP_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getIdpId() { return idpId; @@ -96,12 +96,12 @@ public String getIdpId() { @JsonProperty(JSON_PROPERTY_IDP_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIdpId(@javax.annotation.Nonnull String idpId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdpId(@javax.annotation.Nullable String idpId) { this.idpId = idpId; } - public UserServiceRemoveIDPLinkRequest linkedUserId(@javax.annotation.Nonnull String linkedUserId) { + public UserServiceRemoveIDPLinkRequest linkedUserId(@javax.annotation.Nullable String linkedUserId) { this.linkedUserId = linkedUserId; return this; @@ -111,9 +111,9 @@ public UserServiceRemoveIDPLinkRequest linkedUserId(@javax.annotation.Nonnull St * Get linkedUserId * @return linkedUserId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINKED_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLinkedUserId() { return linkedUserId; @@ -121,8 +121,8 @@ public String getLinkedUserId() { @JsonProperty(JSON_PROPERTY_LINKED_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLinkedUserId(@javax.annotation.Nonnull String linkedUserId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLinkedUserId(@javax.annotation.Nullable String linkedUserId) { this.linkedUserId = linkedUserId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRemoveOTPEmailRequest.java b/src/main/java/com/zitadel/model/UserServiceRemoveOTPEmailRequest.java index f624ea3..d7cdb5d 100644 --- a/src/main/java/com/zitadel/model/UserServiceRemoveOTPEmailRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRemoveOTPEmailRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRemoveOTPEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceRemoveOTPEmailRequest() { } - public UserServiceRemoveOTPEmailRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRemoveOTPEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceRemoveOTPEmailRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRemoveOTPSMSRequest.java b/src/main/java/com/zitadel/model/UserServiceRemoveOTPSMSRequest.java index 5297260..200f907 100644 --- a/src/main/java/com/zitadel/model/UserServiceRemoveOTPSMSRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRemoveOTPSMSRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRemoveOTPSMSRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceRemoveOTPSMSRequest() { } - public UserServiceRemoveOTPSMSRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRemoveOTPSMSRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceRemoveOTPSMSRequest userId(@javax.annotation.Nonnull String us * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRemovePasskeyRequest.java b/src/main/java/com/zitadel/model/UserServiceRemovePasskeyRequest.java index f38e518..92f3796 100644 --- a/src/main/java/com/zitadel/model/UserServiceRemovePasskeyRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRemovePasskeyRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRemovePasskeyRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_PASSKEY_ID = "passkeyId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String passkeyId; public UserServiceRemovePasskeyRequest() { } - public UserServiceRemovePasskeyRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRemovePasskeyRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public UserServiceRemovePasskeyRequest userId(@javax.annotation.Nonnull String u * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceRemovePasskeyRequest passkeyId(@javax.annotation.Nonnull String passkeyId) { + public UserServiceRemovePasskeyRequest passkeyId(@javax.annotation.Nullable String passkeyId) { this.passkeyId = passkeyId; return this; @@ -81,9 +81,9 @@ public UserServiceRemovePasskeyRequest passkeyId(@javax.annotation.Nonnull Strin * Get passkeyId * @return passkeyId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSKEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPasskeyId() { return passkeyId; @@ -91,8 +91,8 @@ public String getPasskeyId() { @JsonProperty(JSON_PROPERTY_PASSKEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPasskeyId(@javax.annotation.Nonnull String passkeyId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPasskeyId(@javax.annotation.Nullable String passkeyId) { this.passkeyId = passkeyId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRemovePhoneRequest.java b/src/main/java/com/zitadel/model/UserServiceRemovePhoneRequest.java index ea286de..b3fe96b 100644 --- a/src/main/java/com/zitadel/model/UserServiceRemovePhoneRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRemovePhoneRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRemovePhoneRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceRemovePhoneRequest() { } - public UserServiceRemovePhoneRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRemovePhoneRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceRemovePhoneRequest userId(@javax.annotation.Nonnull String use * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRemoveTOTPRequest.java b/src/main/java/com/zitadel/model/UserServiceRemoveTOTPRequest.java index 805ab60..92225b9 100644 --- a/src/main/java/com/zitadel/model/UserServiceRemoveTOTPRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRemoveTOTPRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRemoveTOTPRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceRemoveTOTPRequest() { } - public UserServiceRemoveTOTPRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRemoveTOTPRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceRemoveTOTPRequest userId(@javax.annotation.Nonnull String user * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceRemoveU2FRequest.java b/src/main/java/com/zitadel/model/UserServiceRemoveU2FRequest.java index e792470..a805fe7 100644 --- a/src/main/java/com/zitadel/model/UserServiceRemoveU2FRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceRemoveU2FRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceRemoveU2FRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_U2F_ID = "u2fId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String u2fId; public UserServiceRemoveU2FRequest() { } - public UserServiceRemoveU2FRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceRemoveU2FRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public UserServiceRemoveU2FRequest userId(@javax.annotation.Nonnull String userI * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceRemoveU2FRequest u2fId(@javax.annotation.Nonnull String u2fId) { + public UserServiceRemoveU2FRequest u2fId(@javax.annotation.Nullable String u2fId) { this.u2fId = u2fId; return this; @@ -81,9 +81,9 @@ public UserServiceRemoveU2FRequest u2fId(@javax.annotation.Nonnull String u2fId) * Get u2fId * @return u2fId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_U2F_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getU2fId() { return u2fId; @@ -91,8 +91,8 @@ public String getU2fId() { @JsonProperty(JSON_PROPERTY_U2F_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setU2fId(@javax.annotation.Nonnull String u2fId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setU2fId(@javax.annotation.Nullable String u2fId) { this.u2fId = u2fId; } diff --git a/src/main/java/com/zitadel/model/UserServiceResendEmailCodeRequest.java b/src/main/java/com/zitadel/model/UserServiceResendEmailCodeRequest.java index 69849c5..133b3fa 100644 --- a/src/main/java/com/zitadel/model/UserServiceResendEmailCodeRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceResendEmailCodeRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceResendEmailCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class UserServiceResendEmailCodeRequest { public UserServiceResendEmailCodeRequest() { } - public UserServiceResendEmailCodeRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceResendEmailCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public UserServiceResendEmailCodeRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceResendInviteCodeRequest.java b/src/main/java/com/zitadel/model/UserServiceResendInviteCodeRequest.java index 2d3d426..cb544f3 100644 --- a/src/main/java/com/zitadel/model/UserServiceResendInviteCodeRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceResendInviteCodeRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceResendInviteCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceResendInviteCodeRequest() { } - public UserServiceResendInviteCodeRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceResendInviteCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceResendInviteCodeRequest userId(@javax.annotation.Nonnull Strin * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceResendPhoneCodeRequest.java b/src/main/java/com/zitadel/model/UserServiceResendPhoneCodeRequest.java index c297229..632b780 100644 --- a/src/main/java/com/zitadel/model/UserServiceResendPhoneCodeRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceResendPhoneCodeRequest.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceResendPhoneCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -51,7 +51,7 @@ public class UserServiceResendPhoneCodeRequest { public UserServiceResendPhoneCodeRequest() { } - public UserServiceResendPhoneCodeRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceResendPhoneCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -61,9 +61,9 @@ public UserServiceResendPhoneCodeRequest userId(@javax.annotation.Nonnull String * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -71,8 +71,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceSendEmailCodeRequest.java b/src/main/java/com/zitadel/model/UserServiceSendEmailCodeRequest.java index a140a70..a2b411e 100644 --- a/src/main/java/com/zitadel/model/UserServiceSendEmailCodeRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceSendEmailCodeRequest.java @@ -38,7 +38,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSendEmailCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_RETURN_CODE = "returnCode"; @@ -52,7 +52,7 @@ public class UserServiceSendEmailCodeRequest { public UserServiceSendEmailCodeRequest() { } - public UserServiceSendEmailCodeRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceSendEmailCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -62,9 +62,9 @@ public UserServiceSendEmailCodeRequest userId(@javax.annotation.Nonnull String u * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -72,8 +72,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceSetEmailRequest.java b/src/main/java/com/zitadel/model/UserServiceSetEmailRequest.java index 29df1c5..c67d081 100644 --- a/src/main/java/com/zitadel/model/UserServiceSetEmailRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceSetEmailRequest.java @@ -40,11 +40,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSetEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -62,7 +62,7 @@ public class UserServiceSetEmailRequest { public UserServiceSetEmailRequest() { } - public UserServiceSetEmailRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceSetEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -72,9 +72,9 @@ public UserServiceSetEmailRequest userId(@javax.annotation.Nonnull String userId * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -82,12 +82,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceSetEmailRequest email(@javax.annotation.Nonnull String email) { + public UserServiceSetEmailRequest email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -97,9 +97,9 @@ public UserServiceSetEmailRequest email(@javax.annotation.Nonnull String email) * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -107,8 +107,8 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull String email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/UserServiceSetHumanEmail.java b/src/main/java/com/zitadel/model/UserServiceSetHumanEmail.java index 41d1b46..733f993 100644 --- a/src/main/java/com/zitadel/model/UserServiceSetHumanEmail.java +++ b/src/main/java/com/zitadel/model/UserServiceSetHumanEmail.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSetHumanEmail { public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -57,7 +57,7 @@ public class UserServiceSetHumanEmail { public UserServiceSetHumanEmail() { } - public UserServiceSetHumanEmail email(@javax.annotation.Nonnull String email) { + public UserServiceSetHumanEmail email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -67,9 +67,9 @@ public UserServiceSetHumanEmail email(@javax.annotation.Nonnull String email) { * Get email * @return email */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -77,8 +77,8 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmail(@javax.annotation.Nonnull String email) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } diff --git a/src/main/java/com/zitadel/model/UserServiceSetHumanProfile.java b/src/main/java/com/zitadel/model/UserServiceSetHumanProfile.java index 9a31ff4..2381da2 100644 --- a/src/main/java/com/zitadel/model/UserServiceSetHumanProfile.java +++ b/src/main/java/com/zitadel/model/UserServiceSetHumanProfile.java @@ -45,11 +45,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSetHumanProfile { public static final String JSON_PROPERTY_GIVEN_NAME = "givenName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String givenName; public static final String JSON_PROPERTY_FAMILY_NAME = "familyName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String familyName; public static final String JSON_PROPERTY_NICK_NAME = "nickName"; @@ -71,7 +71,7 @@ public class UserServiceSetHumanProfile { public UserServiceSetHumanProfile() { } - public UserServiceSetHumanProfile givenName(@javax.annotation.Nonnull String givenName) { + public UserServiceSetHumanProfile givenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; return this; @@ -81,9 +81,9 @@ public UserServiceSetHumanProfile givenName(@javax.annotation.Nonnull String giv * Get givenName * @return givenName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGivenName() { return givenName; @@ -91,12 +91,12 @@ public String getGivenName() { @JsonProperty(JSON_PROPERTY_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGivenName(@javax.annotation.Nonnull String givenName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGivenName(@javax.annotation.Nullable String givenName) { this.givenName = givenName; } - public UserServiceSetHumanProfile familyName(@javax.annotation.Nonnull String familyName) { + public UserServiceSetHumanProfile familyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; return this; @@ -106,9 +106,9 @@ public UserServiceSetHumanProfile familyName(@javax.annotation.Nonnull String fa * Get familyName * @return familyName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFamilyName() { return familyName; @@ -116,8 +116,8 @@ public String getFamilyName() { @JsonProperty(JSON_PROPERTY_FAMILY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFamilyName(@javax.annotation.Nonnull String familyName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFamilyName(@javax.annotation.Nullable String familyName) { this.familyName = familyName; } diff --git a/src/main/java/com/zitadel/model/UserServiceSetMetadataEntry.java b/src/main/java/com/zitadel/model/UserServiceSetMetadataEntry.java index 2e65f1d..c771a9a 100644 --- a/src/main/java/com/zitadel/model/UserServiceSetMetadataEntry.java +++ b/src/main/java/com/zitadel/model/UserServiceSetMetadataEntry.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSetMetadataEntry { public static final String JSON_PROPERTY_KEY = "key"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String key; public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private byte[] value; public UserServiceSetMetadataEntry() { } - public UserServiceSetMetadataEntry key(@javax.annotation.Nonnull String key) { + public UserServiceSetMetadataEntry key(@javax.annotation.Nullable String key) { this.key = key; return this; @@ -56,9 +56,9 @@ public UserServiceSetMetadataEntry key(@javax.annotation.Nonnull String key) { * Get key * @return key */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getKey() { return key; @@ -66,12 +66,12 @@ public String getKey() { @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKey(@javax.annotation.Nonnull String key) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKey(@javax.annotation.Nullable String key) { this.key = key; } - public UserServiceSetMetadataEntry value(@javax.annotation.Nonnull byte[] value) { + public UserServiceSetMetadataEntry value(@javax.annotation.Nullable byte[] value) { this.value = value; return this; @@ -81,9 +81,9 @@ public UserServiceSetMetadataEntry value(@javax.annotation.Nonnull byte[] value) * Get value * @return value */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getValue() { return value; @@ -91,8 +91,8 @@ public byte[] getValue() { @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(@javax.annotation.Nonnull byte[] value) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValue(@javax.annotation.Nullable byte[] value) { this.value = value; } diff --git a/src/main/java/com/zitadel/model/UserServiceSetPasswordRequest.java b/src/main/java/com/zitadel/model/UserServiceSetPasswordRequest.java index 2311299..d5f9b28 100644 --- a/src/main/java/com/zitadel/model/UserServiceSetPasswordRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceSetPasswordRequest.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSetPasswordRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_NEW_PASSWORD = "newPassword"; @@ -57,7 +57,7 @@ public class UserServiceSetPasswordRequest { public UserServiceSetPasswordRequest() { } - public UserServiceSetPasswordRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceSetPasswordRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -67,9 +67,9 @@ public UserServiceSetPasswordRequest userId(@javax.annotation.Nonnull String use * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -77,8 +77,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceSetPhoneRequest.java b/src/main/java/com/zitadel/model/UserServiceSetPhoneRequest.java index 14d04f8..3a6bb4a 100644 --- a/src/main/java/com/zitadel/model/UserServiceSetPhoneRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceSetPhoneRequest.java @@ -39,11 +39,11 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSetPhoneRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_IS_VERIFIED = "isVerified"; @@ -61,7 +61,7 @@ public class UserServiceSetPhoneRequest { public UserServiceSetPhoneRequest() { } - public UserServiceSetPhoneRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceSetPhoneRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -71,9 +71,9 @@ public UserServiceSetPhoneRequest userId(@javax.annotation.Nonnull String userId * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -81,12 +81,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceSetPhoneRequest phone(@javax.annotation.Nonnull String phone) { + public UserServiceSetPhoneRequest phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -96,9 +96,9 @@ public UserServiceSetPhoneRequest phone(@javax.annotation.Nonnull String phone) * Get phone * @return phone */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; @@ -106,8 +106,8 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhone(@javax.annotation.Nonnull String phone) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } diff --git a/src/main/java/com/zitadel/model/UserServiceSetUserMetadataRequest.java b/src/main/java/com/zitadel/model/UserServiceSetUserMetadataRequest.java index 53718b0..150c987 100644 --- a/src/main/java/com/zitadel/model/UserServiceSetUserMetadataRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceSetUserMetadataRequest.java @@ -40,7 +40,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceSetUserMetadataRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_METADATA = "metadata"; @@ -50,7 +50,7 @@ public class UserServiceSetUserMetadataRequest { public UserServiceSetUserMetadataRequest() { } - public UserServiceSetUserMetadataRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceSetUserMetadataRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -60,9 +60,9 @@ public UserServiceSetUserMetadataRequest userId(@javax.annotation.Nonnull String * ID of the user under which the metadata gets set. * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -70,8 +70,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceStateQuery.java b/src/main/java/com/zitadel/model/UserServiceStateQuery.java index e3ccac8..bd12703 100644 --- a/src/main/java/com/zitadel/model/UserServiceStateQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceStateQuery.java @@ -36,13 +36,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceStateQuery { public static final String JSON_PROPERTY_STATE = "state"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private UserServiceUserState state; public UserServiceStateQuery() { } - public UserServiceStateQuery state(@javax.annotation.Nonnull UserServiceUserState state) { + public UserServiceStateQuery state(@javax.annotation.Nullable UserServiceUserState state) { this.state = state; return this; @@ -52,9 +52,9 @@ public UserServiceStateQuery state(@javax.annotation.Nonnull UserServiceUserStat * Get state * @return state */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UserServiceUserState getState() { return state; @@ -62,8 +62,8 @@ public UserServiceUserState getState() { @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setState(@javax.annotation.Nonnull UserServiceUserState state) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setState(@javax.annotation.Nullable UserServiceUserState state) { this.state = state; } diff --git a/src/main/java/com/zitadel/model/UserServiceTypeQuery.java b/src/main/java/com/zitadel/model/UserServiceTypeQuery.java index 8f20465..1effd45 100644 --- a/src/main/java/com/zitadel/model/UserServiceTypeQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceTypeQuery.java @@ -36,13 +36,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceTypeQuery { public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private UserServiceType type; public UserServiceTypeQuery() { } - public UserServiceTypeQuery type(@javax.annotation.Nonnull UserServiceType type) { + public UserServiceTypeQuery type(@javax.annotation.Nullable UserServiceType type) { this.type = type; return this; @@ -52,9 +52,9 @@ public UserServiceTypeQuery type(@javax.annotation.Nonnull UserServiceType type) * Get type * @return type */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UserServiceType getType() { return type; @@ -62,8 +62,8 @@ public UserServiceType getType() { @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@javax.annotation.Nonnull UserServiceType type) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(@javax.annotation.Nullable UserServiceType type) { this.type = type; } diff --git a/src/main/java/com/zitadel/model/UserServiceUnlockUserRequest.java b/src/main/java/com/zitadel/model/UserServiceUnlockUserRequest.java index 5be9a99..29f0059 100644 --- a/src/main/java/com/zitadel/model/UserServiceUnlockUserRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceUnlockUserRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceUnlockUserRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public UserServiceUnlockUserRequest() { } - public UserServiceUnlockUserRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceUnlockUserRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -51,9 +51,9 @@ public UserServiceUnlockUserRequest userId(@javax.annotation.Nonnull String user * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -61,8 +61,8 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } diff --git a/src/main/java/com/zitadel/model/UserServiceUserNameQuery.java b/src/main/java/com/zitadel/model/UserServiceUserNameQuery.java index d92bed3..0160a73 100644 --- a/src/main/java/com/zitadel/model/UserServiceUserNameQuery.java +++ b/src/main/java/com/zitadel/model/UserServiceUserNameQuery.java @@ -37,7 +37,7 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceUserNameQuery { public static final String JSON_PROPERTY_USER_NAME = "userName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userName; public static final String JSON_PROPERTY_METHOD = "method"; @@ -47,7 +47,7 @@ public class UserServiceUserNameQuery { public UserServiceUserNameQuery() { } - public UserServiceUserNameQuery userName(@javax.annotation.Nonnull String userName) { + public UserServiceUserNameQuery userName(@javax.annotation.Nullable String userName) { this.userName = userName; return this; @@ -57,9 +57,9 @@ public UserServiceUserNameQuery userName(@javax.annotation.Nonnull String userNa * Get userName * @return userName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserName() { return userName; @@ -67,8 +67,8 @@ public String getUserName() { @JsonProperty(JSON_PROPERTY_USER_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserName(@javax.annotation.Nonnull String userName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserName(@javax.annotation.Nullable String userName) { this.userName = userName; } diff --git a/src/main/java/com/zitadel/model/UserServiceVerifyEmailRequest.java b/src/main/java/com/zitadel/model/UserServiceVerifyEmailRequest.java index 89bdca8..8be58fd 100644 --- a/src/main/java/com/zitadel/model/UserServiceVerifyEmailRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceVerifyEmailRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceVerifyEmailRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_VERIFICATION_CODE = "verificationCode"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String verificationCode; public UserServiceVerifyEmailRequest() { } - public UserServiceVerifyEmailRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceVerifyEmailRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public UserServiceVerifyEmailRequest userId(@javax.annotation.Nonnull String use * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceVerifyEmailRequest verificationCode(@javax.annotation.Nonnull String verificationCode) { + public UserServiceVerifyEmailRequest verificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; return this; @@ -81,9 +81,9 @@ public UserServiceVerifyEmailRequest verificationCode(@javax.annotation.Nonnull * Get verificationCode * @return verificationCode */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getVerificationCode() { return verificationCode; @@ -91,8 +91,8 @@ public String getVerificationCode() { @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerificationCode(@javax.annotation.Nonnull String verificationCode) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVerificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; } diff --git a/src/main/java/com/zitadel/model/UserServiceVerifyInviteCodeRequest.java b/src/main/java/com/zitadel/model/UserServiceVerifyInviteCodeRequest.java index 760b777..0c03c48 100644 --- a/src/main/java/com/zitadel/model/UserServiceVerifyInviteCodeRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceVerifyInviteCodeRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceVerifyInviteCodeRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_VERIFICATION_CODE = "verificationCode"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String verificationCode; public UserServiceVerifyInviteCodeRequest() { } - public UserServiceVerifyInviteCodeRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceVerifyInviteCodeRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public UserServiceVerifyInviteCodeRequest userId(@javax.annotation.Nonnull Strin * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceVerifyInviteCodeRequest verificationCode(@javax.annotation.Nonnull String verificationCode) { + public UserServiceVerifyInviteCodeRequest verificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; return this; @@ -81,9 +81,9 @@ public UserServiceVerifyInviteCodeRequest verificationCode(@javax.annotation.Non * Get verificationCode * @return verificationCode */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getVerificationCode() { return verificationCode; @@ -91,8 +91,8 @@ public String getVerificationCode() { @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerificationCode(@javax.annotation.Nonnull String verificationCode) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVerificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; } diff --git a/src/main/java/com/zitadel/model/UserServiceVerifyPasskeyRegistrationRequest.java b/src/main/java/com/zitadel/model/UserServiceVerifyPasskeyRegistrationRequest.java index 82e0276..d96de47 100644 --- a/src/main/java/com/zitadel/model/UserServiceVerifyPasskeyRegistrationRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceVerifyPasskeyRegistrationRequest.java @@ -40,25 +40,25 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceVerifyPasskeyRegistrationRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_PASSKEY_ID = "passkeyId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String passkeyId; public static final String JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL = "publicKeyCredential"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Map publicKeyCredential = new HashMap<>(); public static final String JSON_PROPERTY_PASSKEY_NAME = "passkeyName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String passkeyName; public UserServiceVerifyPasskeyRegistrationRequest() { } - public UserServiceVerifyPasskeyRegistrationRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceVerifyPasskeyRegistrationRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -68,9 +68,9 @@ public UserServiceVerifyPasskeyRegistrationRequest userId(@javax.annotation.Nonn * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -78,12 +78,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceVerifyPasskeyRegistrationRequest passkeyId(@javax.annotation.Nonnull String passkeyId) { + public UserServiceVerifyPasskeyRegistrationRequest passkeyId(@javax.annotation.Nullable String passkeyId) { this.passkeyId = passkeyId; return this; @@ -93,9 +93,9 @@ public UserServiceVerifyPasskeyRegistrationRequest passkeyId(@javax.annotation.N * Get passkeyId * @return passkeyId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSKEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPasskeyId() { return passkeyId; @@ -103,18 +103,21 @@ public String getPasskeyId() { @JsonProperty(JSON_PROPERTY_PASSKEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPasskeyId(@javax.annotation.Nonnull String passkeyId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPasskeyId(@javax.annotation.Nullable String passkeyId) { this.passkeyId = passkeyId; } - public UserServiceVerifyPasskeyRegistrationRequest publicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + public UserServiceVerifyPasskeyRegistrationRequest publicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; return this; } public UserServiceVerifyPasskeyRegistrationRequest putPublicKeyCredentialItem(String key, Object publicKeyCredentialItem) { + if (this.publicKeyCredential == null) { + this.publicKeyCredential = new HashMap<>(); + } this.publicKeyCredential.put(key, publicKeyCredentialItem); return this; } @@ -123,9 +126,9 @@ public UserServiceVerifyPasskeyRegistrationRequest putPublicKeyCredentialItem(St * `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. * @return publicKeyCredential */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getPublicKeyCredential() { return publicKeyCredential; @@ -133,12 +136,12 @@ public Map getPublicKeyCredential() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) - public void setPublicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setPublicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; } - public UserServiceVerifyPasskeyRegistrationRequest passkeyName(@javax.annotation.Nonnull String passkeyName) { + public UserServiceVerifyPasskeyRegistrationRequest passkeyName(@javax.annotation.Nullable String passkeyName) { this.passkeyName = passkeyName; return this; @@ -148,9 +151,9 @@ public UserServiceVerifyPasskeyRegistrationRequest passkeyName(@javax.annotation * Get passkeyName * @return passkeyName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSKEY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPasskeyName() { return passkeyName; @@ -158,8 +161,8 @@ public String getPasskeyName() { @JsonProperty(JSON_PROPERTY_PASSKEY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPasskeyName(@javax.annotation.Nonnull String passkeyName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPasskeyName(@javax.annotation.Nullable String passkeyName) { this.passkeyName = passkeyName; } diff --git a/src/main/java/com/zitadel/model/UserServiceVerifyPhoneRequest.java b/src/main/java/com/zitadel/model/UserServiceVerifyPhoneRequest.java index 1e60f22..bc1c682 100644 --- a/src/main/java/com/zitadel/model/UserServiceVerifyPhoneRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceVerifyPhoneRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceVerifyPhoneRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_VERIFICATION_CODE = "verificationCode"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String verificationCode; public UserServiceVerifyPhoneRequest() { } - public UserServiceVerifyPhoneRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceVerifyPhoneRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public UserServiceVerifyPhoneRequest userId(@javax.annotation.Nonnull String use * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceVerifyPhoneRequest verificationCode(@javax.annotation.Nonnull String verificationCode) { + public UserServiceVerifyPhoneRequest verificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; return this; @@ -81,9 +81,9 @@ public UserServiceVerifyPhoneRequest verificationCode(@javax.annotation.Nonnull * Get verificationCode * @return verificationCode */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getVerificationCode() { return verificationCode; @@ -91,8 +91,8 @@ public String getVerificationCode() { @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerificationCode(@javax.annotation.Nonnull String verificationCode) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVerificationCode(@javax.annotation.Nullable String verificationCode) { this.verificationCode = verificationCode; } diff --git a/src/main/java/com/zitadel/model/UserServiceVerifyTOTPRegistrationRequest.java b/src/main/java/com/zitadel/model/UserServiceVerifyTOTPRegistrationRequest.java index 987ac04..e33d3c0 100644 --- a/src/main/java/com/zitadel/model/UserServiceVerifyTOTPRegistrationRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceVerifyTOTPRegistrationRequest.java @@ -36,17 +36,17 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceVerifyTOTPRegistrationRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String code; public UserServiceVerifyTOTPRegistrationRequest() { } - public UserServiceVerifyTOTPRegistrationRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceVerifyTOTPRegistrationRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -56,9 +56,9 @@ public UserServiceVerifyTOTPRegistrationRequest userId(@javax.annotation.Nonnull * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -66,12 +66,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceVerifyTOTPRegistrationRequest code(@javax.annotation.Nonnull String code) { + public UserServiceVerifyTOTPRegistrationRequest code(@javax.annotation.Nullable String code) { this.code = code; return this; @@ -81,9 +81,9 @@ public UserServiceVerifyTOTPRegistrationRequest code(@javax.annotation.Nonnull S * Get code * @return code */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCode() { return code; @@ -91,8 +91,8 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@javax.annotation.Nonnull String code) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(@javax.annotation.Nullable String code) { this.code = code; } diff --git a/src/main/java/com/zitadel/model/UserServiceVerifyU2FRegistrationRequest.java b/src/main/java/com/zitadel/model/UserServiceVerifyU2FRegistrationRequest.java index 5cf42d1..cf807c1 100644 --- a/src/main/java/com/zitadel/model/UserServiceVerifyU2FRegistrationRequest.java +++ b/src/main/java/com/zitadel/model/UserServiceVerifyU2FRegistrationRequest.java @@ -40,25 +40,25 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class UserServiceVerifyU2FRegistrationRequest { public static final String JSON_PROPERTY_USER_ID = "userId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String userId; public static final String JSON_PROPERTY_U2F_ID = "u2fId"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String u2fId; public static final String JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL = "publicKeyCredential"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Map publicKeyCredential = new HashMap<>(); public static final String JSON_PROPERTY_TOKEN_NAME = "tokenName"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String tokenName; public UserServiceVerifyU2FRegistrationRequest() { } - public UserServiceVerifyU2FRegistrationRequest userId(@javax.annotation.Nonnull String userId) { + public UserServiceVerifyU2FRegistrationRequest userId(@javax.annotation.Nullable String userId) { this.userId = userId; return this; @@ -68,9 +68,9 @@ public UserServiceVerifyU2FRegistrationRequest userId(@javax.annotation.Nonnull * Get userId * @return userId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; @@ -78,12 +78,12 @@ public String getUserId() { @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@javax.annotation.Nonnull String userId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(@javax.annotation.Nullable String userId) { this.userId = userId; } - public UserServiceVerifyU2FRegistrationRequest u2fId(@javax.annotation.Nonnull String u2fId) { + public UserServiceVerifyU2FRegistrationRequest u2fId(@javax.annotation.Nullable String u2fId) { this.u2fId = u2fId; return this; @@ -93,9 +93,9 @@ public UserServiceVerifyU2FRegistrationRequest u2fId(@javax.annotation.Nonnull S * Get u2fId * @return u2fId */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_U2F_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getU2fId() { return u2fId; @@ -103,18 +103,21 @@ public String getU2fId() { @JsonProperty(JSON_PROPERTY_U2F_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setU2fId(@javax.annotation.Nonnull String u2fId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setU2fId(@javax.annotation.Nullable String u2fId) { this.u2fId = u2fId; } - public UserServiceVerifyU2FRegistrationRequest publicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + public UserServiceVerifyU2FRegistrationRequest publicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; return this; } public UserServiceVerifyU2FRegistrationRequest putPublicKeyCredentialItem(String key, Object publicKeyCredentialItem) { + if (this.publicKeyCredential == null) { + this.publicKeyCredential = new HashMap<>(); + } this.publicKeyCredential.put(key, publicKeyCredentialItem); return this; } @@ -123,9 +126,9 @@ public UserServiceVerifyU2FRegistrationRequest putPublicKeyCredentialItem(String * `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. * @return publicKeyCredential */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getPublicKeyCredential() { return publicKeyCredential; @@ -133,12 +136,12 @@ public Map getPublicKeyCredential() { @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_CREDENTIAL) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) - public void setPublicKeyCredential(@javax.annotation.Nonnull Map publicKeyCredential) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setPublicKeyCredential(@javax.annotation.Nullable Map publicKeyCredential) { this.publicKeyCredential = publicKeyCredential; } - public UserServiceVerifyU2FRegistrationRequest tokenName(@javax.annotation.Nonnull String tokenName) { + public UserServiceVerifyU2FRegistrationRequest tokenName(@javax.annotation.Nullable String tokenName) { this.tokenName = tokenName; return this; @@ -148,9 +151,9 @@ public UserServiceVerifyU2FRegistrationRequest tokenName(@javax.annotation.Nonnu * Get tokenName * @return tokenName */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOKEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTokenName() { return tokenName; @@ -158,8 +161,8 @@ public String getTokenName() { @JsonProperty(JSON_PROPERTY_TOKEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenName(@javax.annotation.Nonnull String tokenName) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTokenName(@javax.annotation.Nullable String tokenName) { this.tokenName = tokenName; } diff --git a/src/main/java/com/zitadel/model/WebKeyServiceActivateWebKeyRequest.java b/src/main/java/com/zitadel/model/WebKeyServiceActivateWebKeyRequest.java index 13226b1..2bf6d0f 100644 --- a/src/main/java/com/zitadel/model/WebKeyServiceActivateWebKeyRequest.java +++ b/src/main/java/com/zitadel/model/WebKeyServiceActivateWebKeyRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class WebKeyServiceActivateWebKeyRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public WebKeyServiceActivateWebKeyRequest() { } - public WebKeyServiceActivateWebKeyRequest id(@javax.annotation.Nonnull String id) { + public WebKeyServiceActivateWebKeyRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public WebKeyServiceActivateWebKeyRequest id(@javax.annotation.Nonnull String id * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/zitadel/model/WebKeyServiceAny.java b/src/main/java/com/zitadel/model/WebKeyServiceAny.java index 0c4c80d..26583ba 100644 --- a/src/main/java/com/zitadel/model/WebKeyServiceAny.java +++ b/src/main/java/com/zitadel/model/WebKeyServiceAny.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import java.io.UnsupportedEncodingException; @@ -30,7 +34,7 @@ import java.util.StringJoiner; /** - * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. */ @JsonPropertyOrder({ WebKeyServiceAny.JSON_PROPERTY_TYPE, @@ -49,7 +53,7 @@ public class WebKeyServiceAny extends HashMap { public static final String JSON_PROPERTY_DEBUG = "debug"; @javax.annotation.Nullable - private Map debug = new HashMap<>(); + private JsonNullable debug = JsonNullable.of(null); public WebKeyServiceAny() { @@ -62,7 +66,7 @@ public WebKeyServiceAny type(@javax.annotation.Nullable String type) { } /** - * Get type + * A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field. * @return type */ @javax.annotation.Nullable @@ -87,7 +91,7 @@ public WebKeyServiceAny value(@javax.annotation.Nullable File value) { } /** - * Get value + * The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field. * @return value */ @javax.annotation.Nullable @@ -105,39 +109,39 @@ public void setValue(@javax.annotation.Nullable File value) { this.value = value; } - public WebKeyServiceAny debug(@javax.annotation.Nullable Map debug) { + public WebKeyServiceAny debug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); - this.debug = debug; - return this; - } - - public WebKeyServiceAny putDebugItem(String key, Object debugItem) { - if (this.debug == null) { - this.debug = new HashMap<>(); - } - this.debug.put(key, debugItem); return this; } /** - * Get debug + * Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic. * @return debug */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore - public Map getDebug() { - return debug; + public Object getDebug() { + return debug.orElse(null); } + @JsonProperty(JSON_PROPERTY_DEBUG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getDebug_JsonNullable() { + return debug; + } + @JsonProperty(JSON_PROPERTY_DEBUG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setDebug(@javax.annotation.Nullable Map debug) { + public void setDebug_JsonNullable(JsonNullable debug) { this.debug = debug; } + public void setDebug(@javax.annotation.Nullable Object debug) { + this.debug = JsonNullable.of(debug); + } + @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +153,24 @@ public boolean equals(Object o) { WebKeyServiceAny webKeyServiceAny = (WebKeyServiceAny) o; return Objects.equals(this.type, webKeyServiceAny.type) && Objects.equals(this.value, webKeyServiceAny.value) && - Objects.equals(this.debug, webKeyServiceAny.debug) && + equalsNullable(this.debug, webKeyServiceAny.debug) && super.equals(o); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(type, value, debug, super.hashCode()); + return Objects.hash(type, value, hashCodeNullable(debug), super.hashCode()); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -235,15 +250,11 @@ public String toUrlQueryString(String prefix) { // add `debug` to the URL query string if (getDebug() != null) { - for (String _key : getDebug().keySet()) { - try { - joiner.add(String.format("%sdebug%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getDebug().get(_key), URLEncoder.encode(String.valueOf(getDebug().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } + try { + joiner.add(String.format("%sdebug%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebug()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); } } diff --git a/src/main/java/com/zitadel/model/WebKeyServiceConnectError.java b/src/main/java/com/zitadel/model/WebKeyServiceConnectError.java index e837b4d..67041ae 100644 --- a/src/main/java/com/zitadel/model/WebKeyServiceConnectError.java +++ b/src/main/java/com/zitadel/model/WebKeyServiceConnectError.java @@ -21,7 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.zitadel.model.WebKeyServiceAny; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,7 +38,7 @@ @JsonPropertyOrder({ WebKeyServiceConnectError.JSON_PROPERTY_CODE, WebKeyServiceConnectError.JSON_PROPERTY_MESSAGE, - WebKeyServiceConnectError.JSON_PROPERTY_DETAIL + WebKeyServiceConnectError.JSON_PROPERTY_DETAILS }) @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class WebKeyServiceConnectError extends HashMap { @@ -110,9 +113,9 @@ public static CodeEnum fromValue(String value) { @javax.annotation.Nullable private String message; - public static final String JSON_PROPERTY_DETAIL = "detail"; + public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable - private WebKeyServiceAny detail; + private List details = new ArrayList<>(); public WebKeyServiceConnectError() { @@ -168,29 +171,37 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public WebKeyServiceConnectError detail(@javax.annotation.Nullable WebKeyServiceAny detail) { + public WebKeyServiceConnectError details(@javax.annotation.Nullable List details) { - this.detail = detail; + this.details = details; + return this; + } + + public WebKeyServiceConnectError addDetailsItem(WebKeyServiceAny detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); return this; } /** - * Get detail - * @return detail + * A list of messages that carry the error details. There is no limit on the number of messages. + * @return details */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WebKeyServiceAny getDetail() { - return detail; + public List getDetails() { + return details; } - @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetail(@javax.annotation.Nullable WebKeyServiceAny detail) { - this.detail = detail; + public void setDetails(@javax.annotation.Nullable List details) { + this.details = details; } @Override @@ -204,13 +215,13 @@ public boolean equals(Object o) { WebKeyServiceConnectError webKeyServiceConnectError = (WebKeyServiceConnectError) o; return Objects.equals(this.code, webKeyServiceConnectError.code) && Objects.equals(this.message, webKeyServiceConnectError.message) && - Objects.equals(this.detail, webKeyServiceConnectError.detail) && + Objects.equals(this.details, webKeyServiceConnectError.details) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(code, message, detail, super.hashCode()); + return Objects.hash(code, message, details, super.hashCode()); } @Override @@ -220,7 +231,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } @@ -288,13 +299,19 @@ public String toUrlQueryString(String prefix) { } } - // add `detail` to the URL query string - if (getDetail() != null) { - try { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); + // add `details` to the URL query string + if (getDetails() != null) { + for (int i = 0; i < getDetails().size(); i++) { + if (getDetails().get(i) != null) { + try { + joiner.add(String.format("%sdetails%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getDetails().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } } } diff --git a/src/main/java/com/zitadel/model/WebKeyServiceDeleteWebKeyRequest.java b/src/main/java/com/zitadel/model/WebKeyServiceDeleteWebKeyRequest.java index 4b8cdbd..71dd438 100644 --- a/src/main/java/com/zitadel/model/WebKeyServiceDeleteWebKeyRequest.java +++ b/src/main/java/com/zitadel/model/WebKeyServiceDeleteWebKeyRequest.java @@ -35,13 +35,13 @@ @javax.annotation.Generated(value = "io.github.mridang.codegen.generators.java.BetterJavaCodegen", comments = "Generator version: 7.14.0") public class WebKeyServiceDeleteWebKeyRequest { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String id; public WebKeyServiceDeleteWebKeyRequest() { } - public WebKeyServiceDeleteWebKeyRequest id(@javax.annotation.Nonnull String id) { + public WebKeyServiceDeleteWebKeyRequest id(@javax.annotation.Nullable String id) { this.id = id; return this; @@ -51,9 +51,9 @@ public WebKeyServiceDeleteWebKeyRequest id(@javax.annotation.Nonnull String id) * Get id * @return id */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; @@ -61,8 +61,8 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull String id) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { this.id = id; }