code: public ApiResponse<Void> logoutRedirectWithHttpInfo(String redirectUri) throws ApiException {
          com.squareup.okhttp.Call call = logoutRedirectValidateBeforeCall(redirectUri, null, null);
          return apiClient.execute(call);
      }
docs: Log out and end the session
  Ends the current agent&#39;s session. This request logs out the agent on all activated channels, ends the HTTP session, and cleans up related resources. Genesys recommends that you first disconnect CometD and then make this request. After you end the session, you&#39;ll need to make a login request before making any new calls to the API.
  @param redirectUri The URI the Authentication API uses to redirect the user after logout. (optional)
  @return ApiResponse&lt;Void&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body