Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/main/java/com/zitadel/api/SessionServiceApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import com.zitadel.model.SessionServiceCreateSessionRequest;
import com.zitadel.model.SessionServiceCreateSessionResponse;
import com.zitadel.model.SessionServiceDeleteSessionBody;
import com.zitadel.model.SessionServiceDeleteSessionRequest;
import com.zitadel.model.SessionServiceDeleteSessionResponse;
import com.zitadel.model.SessionServiceGetSessionResponse;
import com.zitadel.model.SessionServiceListSessionsRequest;
Expand Down Expand Up @@ -128,35 +128,35 @@ public SessionServiceCreateSessionResponse sessionServiceCreateSession(SessionSe
* Terminate an existing session
* Terminate your own session or if granted any other session.
* @param sessionId \"id of the session to terminate\" (required)
* @param sessionServiceDeleteSessionBody (required)
* @param sessionServiceDeleteSessionRequest (required)
* @return SessionServiceDeleteSessionResponse
* @throws ApiException if fails to make API call
*/
public SessionServiceDeleteSessionResponse sessionServiceDeleteSession(String sessionId, SessionServiceDeleteSessionBody sessionServiceDeleteSessionBody) throws ApiException {
return this.sessionServiceDeleteSession(sessionId, sessionServiceDeleteSessionBody, Collections.emptyMap());
public SessionServiceDeleteSessionResponse sessionServiceDeleteSession(String sessionId, SessionServiceDeleteSessionRequest sessionServiceDeleteSessionRequest) throws ApiException {
return this.sessionServiceDeleteSession(sessionId, sessionServiceDeleteSessionRequest, Collections.emptyMap());
}


/**
* Terminate an existing session
* Terminate your own session or if granted any other session.
* @param sessionId \"id of the session to terminate\" (required)
* @param sessionServiceDeleteSessionBody (required)
* @param sessionServiceDeleteSessionRequest (required)
* @param additionalHeaders additionalHeaders for this call
* @return SessionServiceDeleteSessionResponse
* @throws ApiException if fails to make API call
*/
public SessionServiceDeleteSessionResponse sessionServiceDeleteSession(String sessionId, SessionServiceDeleteSessionBody sessionServiceDeleteSessionBody, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = sessionServiceDeleteSessionBody;
public SessionServiceDeleteSessionResponse sessionServiceDeleteSession(String sessionId, SessionServiceDeleteSessionRequest sessionServiceDeleteSessionRequest, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = sessionServiceDeleteSessionRequest;

// verify the required parameter 'sessionId' is set
if (sessionId == null) {
throw new ApiException(400, "Missing the required parameter 'sessionId' when calling sessionServiceDeleteSession");
}

// verify the required parameter 'sessionServiceDeleteSessionBody' is set
if (sessionServiceDeleteSessionBody == null) {
throw new ApiException(400, "Missing the required parameter 'sessionServiceDeleteSessionBody' when calling sessionServiceDeleteSession");
// verify the required parameter 'sessionServiceDeleteSessionRequest' is set
if (sessionServiceDeleteSessionRequest == null) {
throw new ApiException(400, "Missing the required parameter 'sessionServiceDeleteSessionRequest' when calling sessionServiceDeleteSession");
}

// create path and map variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,6 @@ public String toUrlQueryString(String prefix) {

StringJoiner joiner = new StringJoiner("&");

// add `tenantType` to the URL query string
if (getTenantType() != null) {
try {
joiner.add(String.format("%stenantType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTenantType()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

// add `tenantId` to the URL query string
if (getTenantId() != null) {
try {
joiner.add(String.format("%stenantId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTenantId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

return joiner.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,71 +532,6 @@ public String toUrlQueryString(String prefix) {

StringJoiner joiner = new StringJoiner("&");

// add `options` to the URL query string
if (getOptions() != null) {
joiner.add(getOptions().toUrlQueryString(prefix + "options" + suffix));
}

// add `ldap` to the URL query string
if (getLdap() != null) {
joiner.add(getLdap().toUrlQueryString(prefix + "ldap" + suffix));
}

// add `google` to the URL query string
if (getGoogle() != null) {
joiner.add(getGoogle().toUrlQueryString(prefix + "google" + suffix));
}

// add `oauth` to the URL query string
if (getOauth() != null) {
joiner.add(getOauth().toUrlQueryString(prefix + "oauth" + suffix));
}

// add `oidc` to the URL query string
if (getOidc() != null) {
joiner.add(getOidc().toUrlQueryString(prefix + "oidc" + suffix));
}

// add `jwt` to the URL query string
if (getJwt() != null) {
joiner.add(getJwt().toUrlQueryString(prefix + "jwt" + suffix));
}

// add `github` to the URL query string
if (getGithub() != null) {
joiner.add(getGithub().toUrlQueryString(prefix + "github" + suffix));
}

// add `githubEs` to the URL query string
if (getGithubEs() != null) {
joiner.add(getGithubEs().toUrlQueryString(prefix + "githubEs" + suffix));
}

// add `gitlab` to the URL query string
if (getGitlab() != null) {
joiner.add(getGitlab().toUrlQueryString(prefix + "gitlab" + suffix));
}

// add `gitlabSelfHosted` to the URL query string
if (getGitlabSelfHosted() != null) {
joiner.add(getGitlabSelfHosted().toUrlQueryString(prefix + "gitlabSelfHosted" + suffix));
}

// add `azureAd` to the URL query string
if (getAzureAd() != null) {
joiner.add(getAzureAd().toUrlQueryString(prefix + "azureAd" + suffix));
}

// add `apple` to the URL query string
if (getApple() != null) {
joiner.add(getApple().toUrlQueryString(prefix + "apple" + suffix));
}

// add `saml` to the URL query string
if (getSaml() != null) {
joiner.add(getSaml().toUrlQueryString(prefix + "saml" + suffix));
}

return joiner.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,6 @@ public String toUrlQueryString(String prefix) {

StringJoiner joiner = new StringJoiner("&");

// add `session` to the URL query string
if (getSession() != null) {
joiner.add(getSession().toUrlQueryString(prefix + "session" + suffix));
}

// add `deny` to the URL query string
if (getDeny() != null) {
try {
joiner.add(String.format("%sdeny%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeny()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

return joiner.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,6 @@ public String toUrlQueryString(String prefix) {

StringJoiner joiner = new StringJoiner("&");

// add `session` to the URL query string
if (getSession() != null) {
joiner.add(getSession().toUrlQueryString(prefix + "session" + suffix));
}

// add `error` to the URL query string
if (getError() != null) {
joiner.add(getError().toUrlQueryString(prefix + "error" + suffix));
}

return joiner.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,86 +482,6 @@ public String toUrlQueryString(String prefix) {

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 `username` to the URL query string
if (getUsername() != null) {
try {
joiner.add(String.format("%susername%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUsername()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

// add `organization` to the URL query string
if (getOrganization() != null) {
joiner.add(getOrganization().toUrlQueryString(prefix + "organization" + suffix));
}

// add `profile` to the URL query string
if (getProfile() != null) {
joiner.add(getProfile().toUrlQueryString(prefix + "profile" + suffix));
}

// add `email` to the URL query string
if (getEmail() != null) {
joiner.add(getEmail().toUrlQueryString(prefix + "email" + suffix));
}

// add `phone` to the URL query string
if (getPhone() != null) {
joiner.add(getPhone().toUrlQueryString(prefix + "phone" + suffix));
}

// add `metadata` to the URL query string
if (getMetadata() != null) {
for (int i = 0; i < getMetadata().size(); i++) {
if (getMetadata().get(i) != null) {
joiner.add(getMetadata().get(i).toUrlQueryString(String.format("%smetadata%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}

// add `password` to the URL query string
if (getPassword() != null) {
joiner.add(getPassword().toUrlQueryString(prefix + "password" + suffix));
}

// add `hashedPassword` to the URL query string
if (getHashedPassword() != null) {
joiner.add(getHashedPassword().toUrlQueryString(prefix + "hashedPassword" + suffix));
}

// add `idpLinks` to the URL query string
if (getIdpLinks() != null) {
for (int i = 0; i < getIdpLinks().size(); i++) {
if (getIdpLinks().get(i) != null) {
joiner.add(getIdpLinks().get(i).toUrlQueryString(String.format("%sidpLinks%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}

// add `totpSecret` to the URL query string
if (getTotpSecret() != null) {
try {
joiner.add(String.format("%stotpSecret%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotpSecret()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

return joiner.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,35 +211,6 @@ public String toUrlQueryString(String prefix) {

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 `human` to the URL query string
if (getHuman() != null) {
joiner.add(getHuman().toUrlQueryString(prefix + "human" + suffix));
}

// 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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,36 +267,6 @@ public String toUrlQueryString(String prefix) {

StringJoiner joiner = new StringJoiner("&");

// add `nameQuery` to the URL query string
if (getNameQuery() != null) {
joiner.add(getNameQuery().toUrlQueryString(prefix + "nameQuery" + suffix));
}

// add `domainQuery` to the URL query string
if (getDomainQuery() != null) {
joiner.add(getDomainQuery().toUrlQueryString(prefix + "domainQuery" + suffix));
}

// add `stateQuery` to the URL query string
if (getStateQuery() != null) {
joiner.add(getStateQuery().toUrlQueryString(prefix + "stateQuery" + suffix));
}

// add `idQuery` to the URL query string
if (getIdQuery() != null) {
joiner.add(getIdQuery().toUrlQueryString(prefix + "idQuery" + suffix));
}

// add `defaultQuery` to the URL query string
if (getDefaultQuery() != null) {
try {
joiner.add(String.format("%sdefaultQuery%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDefaultQuery()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

return joiner.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,41 +232,6 @@ public String toUrlQueryString(String prefix) {

StringJoiner joiner = new StringJoiner("&");

// add `email` to the URL query string
if (getEmail() != null) {
try {
joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

// add `sendCode` to the URL query string
if (getSendCode() != null) {
joiner.add(getSendCode().toUrlQueryString(prefix + "sendCode" + suffix));
}

// add `returnCode` to the URL query string
if (getReturnCode() != null) {
try {
joiner.add(String.format("%sreturnCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReturnCode()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

// add `isVerified` to the URL query string
if (getIsVerified() != null) {
try {
joiner.add(String.format("%sisVerified%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsVerified()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}

return joiner.toString();
}

Expand Down
Loading
Loading