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
24 changes: 11 additions & 13 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3266,7 +3266,7 @@ client.connections().list(
OptionalNullable.of(true)
)
.strategy(
Arrays.asList(Optional.of(ConnectionStrategyEnum.AD))
Arrays.asList(ConnectionStrategyEnum.AD)
)
.build()
);
Expand Down Expand Up @@ -5566,9 +5566,7 @@ client.events().subscribe(
OptionalNullable.of("from_timestamp")
)
.eventType(
OptionalNullable.of(
EventStreamSubscribeEventsEventTypeParam.of(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)
)
Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)
)
.build()
);
Expand Down Expand Up @@ -5602,7 +5600,7 @@ client.events().subscribe(
<dl>
<dd>

**eventType:** `Optional<EventStreamSubscribeEventsEventTypeParam>` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.
**eventType:** `Optional<EventStreamSubscribeEventsEventTypeEnum>` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.

</dd>
</dl>
Expand Down Expand Up @@ -5644,7 +5642,7 @@ client.flows().list(
OptionalNullable.of(true)
)
.hydrate(
Arrays.asList(Optional.of(ListFlowsRequestParametersHydrateEnum.FORM_COUNT))
Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT)
)
.build()
);
Expand Down Expand Up @@ -5777,7 +5775,7 @@ client.flows().get(
GetFlowRequestParameters
.builder()
.hydrate(
Arrays.asList(Optional.of(GetFlowRequestParametersHydrateEnum.FORM_COUNT))
Arrays.asList(GetFlowRequestParametersHydrateEnum.FORM_COUNT)
)
.build()
);
Expand Down Expand Up @@ -5943,7 +5941,7 @@ client.forms().list(
OptionalNullable.of(true)
)
.hydrate(
Arrays.asList(Optional.of(FormsRequestParametersHydrateEnum.FLOW_COUNT))
Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)
)
.build()
);
Expand Down Expand Up @@ -6116,7 +6114,7 @@ client.forms().get(
GetFormRequestParameters
.builder()
.hydrate(
Arrays.asList(Optional.of(FormsRequestParametersHydrateEnum.FLOW_COUNT))
Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)
)
.build()
);
Expand Down Expand Up @@ -9754,7 +9752,7 @@ client.resourceServers().list(
OptionalNullable.of(true)
)
.identifiers(
Arrays.asList(Optional.of("identifiers"))
Arrays.asList("identifiers")
)
.build()
);
Expand Down Expand Up @@ -18365,7 +18363,7 @@ client.clients().connections().get(
OptionalNullable.of(true)
)
.strategy(
Arrays.asList(Optional.of(ConnectionStrategyEnum.AD))
Arrays.asList(ConnectionStrategyEnum.AD)
)
.build()
);
Expand Down Expand Up @@ -20735,7 +20733,7 @@ client.flows().executions().get(
GetFlowExecutionRequestParameters
.builder()
.hydrate(
Arrays.asList(Optional.of(GetFlowExecutionRequestParametersHydrateEnum.DEBUG))
Arrays.asList(GetFlowExecutionRequestParametersHydrateEnum.DEBUG)
)
.build()
);
Expand Down Expand Up @@ -24597,7 +24595,7 @@ client.organizations().clientGrants().list(
OptionalNullable.of(true)
)
.grantIds(
Arrays.asList(Optional.of("grant_ids"))
Arrays.asList("grant_ids")
)
.build()
);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public CompletableFuture<ManagementApiHttpResponse<Iterable<EventStreamSubscribe
QueryStringMapper.addQueryParameter(
httpUrl, "from_timestamp", request.getFromTimestamp().orElse(null), false);
}
if (!request.getEventType().isAbsent()) {
if (request.getEventType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "event_type", request.getEventType().orElse(null), false);
httpUrl, "event_type", request.getEventType().get(), true);
}
if (requestOptions != null) {
requestOptions.getQueryParameters().forEach((_key, _value) -> {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/auth0/client/mgmt/RawEventsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public ManagementApiHttpResponse<Iterable<EventStreamSubscribeEventsResponseCont
QueryStringMapper.addQueryParameter(
httpUrl, "from_timestamp", request.getFromTimestamp().orElse(null), false);
}
if (!request.getEventType().isAbsent()) {
if (request.getEventType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "event_type", request.getEventType().orElse(null), false);
httpUrl, "event_type", request.getEventType().get(), true);
}
if (requestOptions != null) {
requestOptions.getQueryParameters().forEach((_key, _value) -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.auth0.client.mgmt.types;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public final class ConnectionAssertionDecryptionAlgorithmProfileEnum {
public static final ConnectionAssertionDecryptionAlgorithmProfileEnum V20261 =
new ConnectionAssertionDecryptionAlgorithmProfileEnum(Value.V20261, "v2026-1");

private final Value value;

private final String string;

ConnectionAssertionDecryptionAlgorithmProfileEnum(Value value, String string) {
this.value = value;
this.string = string;
}

public Value getEnumValue() {
return value;
}

@java.lang.Override
@JsonValue
public String toString() {
return this.string;
}

@java.lang.Override
public boolean equals(Object other) {
return (this == other)
|| (other instanceof ConnectionAssertionDecryptionAlgorithmProfileEnum
&& this.string.equals(((ConnectionAssertionDecryptionAlgorithmProfileEnum) other).string));
}

@java.lang.Override
public int hashCode() {
return this.string.hashCode();
}

public <T> T visit(Visitor<T> visitor) {
switch (value) {
case V20261:
return visitor.visitV20261();
case UNKNOWN:
default:
return visitor.visitUnknown(string);
}
}

@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
public static ConnectionAssertionDecryptionAlgorithmProfileEnum valueOf(String value) {
switch (value) {
case "v2026-1":
return V20261;
default:
return new ConnectionAssertionDecryptionAlgorithmProfileEnum(Value.UNKNOWN, value);
}
}

public enum Value {
V20261,

UNKNOWN
}

public interface Visitor<T> {
T visitV20261();

T visitUnknown(String unknownType);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.auth0.client.mgmt.types;

import com.auth0.client.mgmt.core.ObjectMappers;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import org.jetbrains.annotations.NotNull;

@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ConnectionAssertionDecryptionSettings.Builder.class)
public final class ConnectionAssertionDecryptionSettings {
private final ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile;

private final Optional<List<String>> algorithmExceptions;

private final Map<String, Object> additionalProperties;

private ConnectionAssertionDecryptionSettings(
ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile,
Optional<List<String>> algorithmExceptions,
Map<String, Object> additionalProperties) {
this.algorithmProfile = algorithmProfile;
this.algorithmExceptions = algorithmExceptions;
this.additionalProperties = additionalProperties;
}

@JsonProperty("algorithm_profile")
public ConnectionAssertionDecryptionAlgorithmProfileEnum getAlgorithmProfile() {
return algorithmProfile;
}

/**
* @return A list of insecure algorithms to allow for SAML assertion decryption.
*/
@JsonProperty("algorithm_exceptions")
public Optional<List<String>> getAlgorithmExceptions() {
return algorithmExceptions;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof ConnectionAssertionDecryptionSettings
&& equalTo((ConnectionAssertionDecryptionSettings) other);
}

@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}

private boolean equalTo(ConnectionAssertionDecryptionSettings other) {
return algorithmProfile.equals(other.algorithmProfile) && algorithmExceptions.equals(other.algorithmExceptions);
}

@java.lang.Override
public int hashCode() {
return Objects.hash(this.algorithmProfile, this.algorithmExceptions);
}

@java.lang.Override
public String toString() {
return ObjectMappers.stringify(this);
}

public static AlgorithmProfileStage builder() {
return new Builder();
}

public interface AlgorithmProfileStage {
_FinalStage algorithmProfile(@NotNull ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile);

Builder from(ConnectionAssertionDecryptionSettings other);
}

public interface _FinalStage {
ConnectionAssertionDecryptionSettings build();

_FinalStage additionalProperty(String key, Object value);

_FinalStage additionalProperties(Map<String, Object> additionalProperties);

/**
* <p>A list of insecure algorithms to allow for SAML assertion decryption.</p>
*/
_FinalStage algorithmExceptions(Optional<List<String>> algorithmExceptions);

_FinalStage algorithmExceptions(List<String> algorithmExceptions);
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder implements AlgorithmProfileStage, _FinalStage {
private ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile;

private Optional<List<String>> algorithmExceptions = Optional.empty();

@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();

private Builder() {}

@java.lang.Override
public Builder from(ConnectionAssertionDecryptionSettings other) {
algorithmProfile(other.getAlgorithmProfile());
algorithmExceptions(other.getAlgorithmExceptions());
return this;
}

@java.lang.Override
@JsonSetter("algorithm_profile")
public _FinalStage algorithmProfile(
@NotNull ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile) {
this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null");
return this;
}

/**
* <p>A list of insecure algorithms to allow for SAML assertion decryption.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage algorithmExceptions(List<String> algorithmExceptions) {
this.algorithmExceptions = Optional.ofNullable(algorithmExceptions);
return this;
}

/**
* <p>A list of insecure algorithms to allow for SAML assertion decryption.</p>
*/
@java.lang.Override
@JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP)
public _FinalStage algorithmExceptions(Optional<List<String>> algorithmExceptions) {
this.algorithmExceptions = algorithmExceptions;
return this;
}

@java.lang.Override
public ConnectionAssertionDecryptionSettings build() {
return new ConnectionAssertionDecryptionSettings(
algorithmProfile, algorithmExceptions, additionalProperties);
}

@java.lang.Override
public Builder additionalProperty(String key, Object value) {
this.additionalProperties.put(key, value);
return this;
}

@java.lang.Override
public Builder additionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties.putAll(additionalProperties);
return this;
}
}
}
Loading
Loading