id = Optional.empty();
@JsonAnySetter
@@ -479,30 +496,7 @@ public Builder from(OauthApp other) {
categories(other.getCategories());
featuredWeight(other.getFeaturedWeight());
scopeProfiles(other.getScopeProfiles());
- return this;
- }
-
- /**
- * The OAuth client ID registered with the upstream provider
- * The OAuth client ID registered with the upstream provider
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- @JsonSetter("client_id")
- public OwnerIdStage clientId(@NotNull String clientId) {
- this.clientId = Objects.requireNonNull(clientId, "clientId must not be null");
- return this;
- }
-
- /**
- * Hash ID of the owner: the workspace (o_...) or the project (proj_...)
- * Hash ID of the owner: the workspace (o_...) or the project (proj_...)
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- @JsonSetter("owner_id")
- public NameSlugStage ownerId(@NotNull String ownerId) {
- this.ownerId = Objects.requireNonNull(ownerId, "ownerId must not be null");
+ oauthAppId(other.getOauthAppId());
return this;
}
@@ -554,6 +548,26 @@ public _FinalStage featuredWeight(double featuredWeight) {
return this;
}
+ /**
+ * ID of the app's Pipedream official OAuth client, or null if the app doesn't use OAuth or has no official client. Retrieve the client, including its scopes, with the Retrieve OAuth client endpoint. Returned by the List apps and Retrieve app endpoints.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage oauthAppId(String oauthAppId) {
+ this.oauthAppId = Optional.ofNullable(oauthAppId);
+ return this;
+ }
+
+ /**
+ * ID of the app's Pipedream official OAuth client, or null if the app doesn't use OAuth or has no official client. Retrieve the client, including its scopes, with the Retrieve OAuth client endpoint. Returned by the List apps and Retrieve app endpoints.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "oauth_app_id", nulls = Nulls.SKIP)
+ public _FinalStage oauthAppId(Optional oauthAppId) {
+ this.oauthAppId = oauthAppId;
+ return this;
+ }
+
/**
* Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the oauth_scope_profile parameter). Empty for apps that don't define any.
* @return Reference to {@code this} so that method calls can be chained together.
@@ -703,6 +717,26 @@ public _FinalStage createdAt(Optional createdAt) {
return this;
}
+ /**
+ * Hash ID of the owner: the workspace (o_...) or the project (proj_...). Null for Pipedream official clients.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage ownerId(String ownerId) {
+ this.ownerId = Optional.ofNullable(ownerId);
+ return this;
+ }
+
+ /**
+ * Hash ID of the owner: the workspace (o_...) or the project (proj_...). Null for Pipedream official clients.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "owner_id", nulls = Nulls.SKIP)
+ public _FinalStage ownerId(Optional ownerId) {
+ this.ownerId = ownerId;
+ return this;
+ }
+
/**
* The redirect URI to register with the upstream OAuth provider
* @return Reference to {@code this} so that method calls can be chained together.
@@ -763,6 +797,26 @@ public _FinalStage scopes(Optional> scopes) {
return this;
}
+ /**
+ * The OAuth client ID registered with the upstream provider. Null for a client registered before its provider issued credentials.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage clientId(String clientId) {
+ this.clientId = Optional.ofNullable(clientId);
+ return this;
+ }
+
+ /**
+ * The OAuth client ID registered with the upstream provider. Null for a client registered before its provider issued credentials.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "client_id", nulls = Nulls.SKIP)
+ public _FinalStage clientId(Optional clientId) {
+ this.clientId = clientId;
+ return this;
+ }
+
/**
* Hash ID for the OAuth client
* @return Reference to {@code this} so that method calls can be chained together.
@@ -803,6 +857,7 @@ public OauthApp build() {
categories,
featuredWeight,
scopeProfiles,
+ oauthAppId,
additionalProperties);
}
diff --git a/src/main/java/com/pipedream/api/types/TriggerWebhook.java b/src/main/java/com/pipedream/api/types/TriggerWebhook.java
index 366d742..8f4a740 100644
--- a/src/main/java/com/pipedream/api/types/TriggerWebhook.java
+++ b/src/main/java/com/pipedream/api/types/TriggerWebhook.java
@@ -29,6 +29,12 @@ public final class TriggerWebhook {
private final boolean signingKeySet;
+ private final Optional active;
+
+ private final Optional deliveryBackend;
+
+ private final Optional deliveryState;
+
private final Map additionalProperties;
private TriggerWebhook(
@@ -36,11 +42,17 @@ private TriggerWebhook(
String url,
Optional signingKey,
boolean signingKeySet,
+ Optional active,
+ Optional deliveryBackend,
+ Optional deliveryState,
Map additionalProperties) {
this.id = id;
this.url = url;
this.signingKey = signingKey;
this.signingKeySet = signingKeySet;
+ this.active = active;
+ this.deliveryBackend = deliveryBackend;
+ this.deliveryState = deliveryState;
this.additionalProperties = additionalProperties;
}
@@ -76,6 +88,21 @@ public boolean getSigningKeySet() {
return signingKeySet;
}
+ @JsonProperty("active")
+ public Optional getActive() {
+ return active;
+ }
+
+ @JsonProperty("delivery_backend")
+ public Optional getDeliveryBackend() {
+ return deliveryBackend;
+ }
+
+ @JsonProperty("delivery_state")
+ public Optional getDeliveryState() {
+ return deliveryState;
+ }
+
@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
@@ -91,12 +118,22 @@ private boolean equalTo(TriggerWebhook other) {
return id.equals(other.id)
&& url.equals(other.url)
&& signingKey.equals(other.signingKey)
- && signingKeySet == other.signingKeySet;
+ && signingKeySet == other.signingKeySet
+ && active.equals(other.active)
+ && deliveryBackend.equals(other.deliveryBackend)
+ && deliveryState.equals(other.deliveryState);
}
@java.lang.Override
public int hashCode() {
- return Objects.hash(this.id, this.url, this.signingKey, this.signingKeySet);
+ return Objects.hash(
+ this.id,
+ this.url,
+ this.signingKey,
+ this.signingKeySet,
+ this.active,
+ this.deliveryBackend,
+ this.deliveryState);
}
@java.lang.Override
@@ -144,6 +181,18 @@ public interface _FinalStage {
_FinalStage signingKey(Optional signingKey);
_FinalStage signingKey(String signingKey);
+
+ _FinalStage active(Optional active);
+
+ _FinalStage active(Boolean active);
+
+ _FinalStage deliveryBackend(Optional deliveryBackend);
+
+ _FinalStage deliveryBackend(TriggerWebhookDeliveryBackend deliveryBackend);
+
+ _FinalStage deliveryState(Optional deliveryState);
+
+ _FinalStage deliveryState(WebhookDeliveryState deliveryState);
}
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -154,6 +203,12 @@ public static final class Builder implements IdStage, UrlStage, SigningKeySetSta
private boolean signingKeySet;
+ private Optional deliveryState = Optional.empty();
+
+ private Optional deliveryBackend = Optional.empty();
+
+ private Optional active = Optional.empty();
+
private Optional signingKey = Optional.empty();
@JsonAnySetter
@@ -167,6 +222,9 @@ public Builder from(TriggerWebhook other) {
url(other.getUrl());
signingKey(other.getSigningKey());
signingKeySet(other.getSigningKeySet());
+ active(other.getActive());
+ deliveryBackend(other.getDeliveryBackend());
+ deliveryState(other.getDeliveryState());
return this;
}
@@ -206,6 +264,45 @@ public _FinalStage signingKeySet(boolean signingKeySet) {
return this;
}
+ @java.lang.Override
+ public _FinalStage deliveryState(WebhookDeliveryState deliveryState) {
+ this.deliveryState = Optional.ofNullable(deliveryState);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "delivery_state", nulls = Nulls.SKIP)
+ public _FinalStage deliveryState(Optional deliveryState) {
+ this.deliveryState = deliveryState;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage deliveryBackend(TriggerWebhookDeliveryBackend deliveryBackend) {
+ this.deliveryBackend = Optional.ofNullable(deliveryBackend);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "delivery_backend", nulls = Nulls.SKIP)
+ public _FinalStage deliveryBackend(Optional deliveryBackend) {
+ this.deliveryBackend = deliveryBackend;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage active(Boolean active) {
+ this.active = Optional.ofNullable(active);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "active", nulls = Nulls.SKIP)
+ public _FinalStage active(Optional active) {
+ this.active = active;
+ return this;
+ }
+
/**
* The webhook signing key, returned only for OAuth-authenticated requests
* @return Reference to {@code this} so that method calls can be chained together.
@@ -228,7 +325,8 @@ public _FinalStage signingKey(Optional signingKey) {
@java.lang.Override
public TriggerWebhook build() {
- return new TriggerWebhook(id, url, signingKey, signingKeySet, additionalProperties);
+ return new TriggerWebhook(
+ id, url, signingKey, signingKeySet, active, deliveryBackend, deliveryState, additionalProperties);
}
@java.lang.Override
diff --git a/src/main/java/com/pipedream/api/types/TriggerWebhookDeliveryBackend.java b/src/main/java/com/pipedream/api/types/TriggerWebhookDeliveryBackend.java
new file mode 100644
index 0000000..c03d726
--- /dev/null
+++ b/src/main/java/com/pipedream/api/types/TriggerWebhookDeliveryBackend.java
@@ -0,0 +1,85 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.pipedream.api.types;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+public final class TriggerWebhookDeliveryBackend {
+ public static final TriggerWebhookDeliveryBackend JVM = new TriggerWebhookDeliveryBackend(Value.JVM, "jvm");
+
+ public static final TriggerWebhookDeliveryBackend VALKEY =
+ new TriggerWebhookDeliveryBackend(Value.VALKEY, "valkey");
+
+ private final Value value;
+
+ private final String string;
+
+ TriggerWebhookDeliveryBackend(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 TriggerWebhookDeliveryBackend
+ && this.string.equals(((TriggerWebhookDeliveryBackend) other).string));
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return this.string.hashCode();
+ }
+
+ public T visit(Visitor visitor) {
+ switch (value) {
+ case JVM:
+ return visitor.visitJvm();
+ case VALKEY:
+ return visitor.visitValkey();
+ case UNKNOWN:
+ default:
+ return visitor.visitUnknown(string);
+ }
+ }
+
+ @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
+ public static TriggerWebhookDeliveryBackend valueOf(String value) {
+ switch (value) {
+ case "jvm":
+ return JVM;
+ case "valkey":
+ return VALKEY;
+ default:
+ return new TriggerWebhookDeliveryBackend(Value.UNKNOWN, value);
+ }
+ }
+
+ public enum Value {
+ JVM,
+
+ VALKEY,
+
+ UNKNOWN
+ }
+
+ public interface Visitor {
+ T visitJvm();
+
+ T visitValkey();
+
+ T visitUnknown(String unknownType);
+ }
+}
diff --git a/src/main/java/com/pipedream/api/types/UnauthorizedErrorBody.java b/src/main/java/com/pipedream/api/types/UnauthorizedErrorBody.java
new file mode 100644
index 0000000..2cefe15
--- /dev/null
+++ b/src/main/java/com/pipedream/api/types/UnauthorizedErrorBody.java
@@ -0,0 +1,118 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.pipedream.api.types;
+
+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.databind.annotation.JsonDeserialize;
+import com.pipedream.api.core.ObjectMappers;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+import org.jetbrains.annotations.NotNull;
+
+@JsonInclude(JsonInclude.Include.NON_ABSENT)
+@JsonDeserialize(builder = UnauthorizedErrorBody.Builder.class)
+public final class UnauthorizedErrorBody {
+ private final String error;
+
+ private final Map additionalProperties;
+
+ private UnauthorizedErrorBody(String error, Map additionalProperties) {
+ this.error = error;
+ this.additionalProperties = additionalProperties;
+ }
+
+ @JsonProperty("error")
+ public String getError() {
+ return error;
+ }
+
+ @java.lang.Override
+ public boolean equals(Object other) {
+ if (this == other) return true;
+ return other instanceof UnauthorizedErrorBody && equalTo((UnauthorizedErrorBody) other);
+ }
+
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ private boolean equalTo(UnauthorizedErrorBody other) {
+ return error.equals(other.error);
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return Objects.hash(this.error);
+ }
+
+ @java.lang.Override
+ public String toString() {
+ return ObjectMappers.stringify(this);
+ }
+
+ public static ErrorStage builder() {
+ return new Builder();
+ }
+
+ public interface ErrorStage {
+ _FinalStage error(@NotNull String error);
+
+ Builder from(UnauthorizedErrorBody other);
+ }
+
+ public interface _FinalStage {
+ UnauthorizedErrorBody build();
+
+ _FinalStage additionalProperty(String key, Object value);
+
+ _FinalStage additionalProperties(Map additionalProperties);
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static final class Builder implements ErrorStage, _FinalStage {
+ private String error;
+
+ @JsonAnySetter
+ private Map additionalProperties = new HashMap<>();
+
+ private Builder() {}
+
+ @java.lang.Override
+ public Builder from(UnauthorizedErrorBody other) {
+ error(other.getError());
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter("error")
+ public _FinalStage error(@NotNull String error) {
+ this.error = Objects.requireNonNull(error, "error must not be null");
+ return this;
+ }
+
+ @java.lang.Override
+ public UnauthorizedErrorBody build() {
+ return new UnauthorizedErrorBody(error, 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 additionalProperties) {
+ this.additionalProperties.putAll(additionalProperties);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/pipedream/api/types/WebhookDeliveryState.java b/src/main/java/com/pipedream/api/types/WebhookDeliveryState.java
new file mode 100644
index 0000000..8971e74
--- /dev/null
+++ b/src/main/java/com/pipedream/api/types/WebhookDeliveryState.java
@@ -0,0 +1,243 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.pipedream.api.types;
+
+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 com.pipedream.api.core.ObjectMappers;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import org.jetbrains.annotations.NotNull;
+
+@JsonInclude(JsonInclude.Include.NON_ABSENT)
+@JsonDeserialize(builder = WebhookDeliveryState.Builder.class)
+public final class WebhookDeliveryState {
+ private final WebhookDeliveryStateState state;
+
+ private final Optional since;
+
+ private final Optional lastError;
+
+ private final int consecutiveFailures;
+
+ private final int sheds;
+
+ private final Map additionalProperties;
+
+ private WebhookDeliveryState(
+ WebhookDeliveryStateState state,
+ Optional since,
+ Optional lastError,
+ int consecutiveFailures,
+ int sheds,
+ Map additionalProperties) {
+ this.state = state;
+ this.since = since;
+ this.lastError = lastError;
+ this.consecutiveFailures = consecutiveFailures;
+ this.sheds = sheds;
+ this.additionalProperties = additionalProperties;
+ }
+
+ @JsonProperty("state")
+ public WebhookDeliveryStateState getState() {
+ return state;
+ }
+
+ /**
+ * @return Time the current state began, in epoch seconds
+ */
+ @JsonProperty("since")
+ public Optional getSince() {
+ return since;
+ }
+
+ @JsonProperty("last_error")
+ public Optional getLastError() {
+ return lastError;
+ }
+
+ @JsonProperty("consecutive_failures")
+ public int getConsecutiveFailures() {
+ return consecutiveFailures;
+ }
+
+ @JsonProperty("sheds")
+ public int getSheds() {
+ return sheds;
+ }
+
+ @java.lang.Override
+ public boolean equals(Object other) {
+ if (this == other) return true;
+ return other instanceof WebhookDeliveryState && equalTo((WebhookDeliveryState) other);
+ }
+
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ private boolean equalTo(WebhookDeliveryState other) {
+ return state.equals(other.state)
+ && since.equals(other.since)
+ && lastError.equals(other.lastError)
+ && consecutiveFailures == other.consecutiveFailures
+ && sheds == other.sheds;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return Objects.hash(this.state, this.since, this.lastError, this.consecutiveFailures, this.sheds);
+ }
+
+ @java.lang.Override
+ public String toString() {
+ return ObjectMappers.stringify(this);
+ }
+
+ public static StateStage builder() {
+ return new Builder();
+ }
+
+ public interface StateStage {
+ ConsecutiveFailuresStage state(@NotNull WebhookDeliveryStateState state);
+
+ Builder from(WebhookDeliveryState other);
+ }
+
+ public interface ConsecutiveFailuresStage {
+ ShedsStage consecutiveFailures(int consecutiveFailures);
+ }
+
+ public interface ShedsStage {
+ _FinalStage sheds(int sheds);
+ }
+
+ public interface _FinalStage {
+ WebhookDeliveryState build();
+
+ _FinalStage additionalProperty(String key, Object value);
+
+ _FinalStage additionalProperties(Map additionalProperties);
+
+ /**
+ * Time the current state began, in epoch seconds
+ */
+ _FinalStage since(Optional since);
+
+ _FinalStage since(Integer since);
+
+ _FinalStage lastError(Optional lastError);
+
+ _FinalStage lastError(String lastError);
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static final class Builder implements StateStage, ConsecutiveFailuresStage, ShedsStage, _FinalStage {
+ private WebhookDeliveryStateState state;
+
+ private int consecutiveFailures;
+
+ private int sheds;
+
+ private Optional lastError = Optional.empty();
+
+ private Optional since = Optional.empty();
+
+ @JsonAnySetter
+ private Map additionalProperties = new HashMap<>();
+
+ private Builder() {}
+
+ @java.lang.Override
+ public Builder from(WebhookDeliveryState other) {
+ state(other.getState());
+ since(other.getSince());
+ lastError(other.getLastError());
+ consecutiveFailures(other.getConsecutiveFailures());
+ sheds(other.getSheds());
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter("state")
+ public ConsecutiveFailuresStage state(@NotNull WebhookDeliveryStateState state) {
+ this.state = Objects.requireNonNull(state, "state must not be null");
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter("consecutive_failures")
+ public ShedsStage consecutiveFailures(int consecutiveFailures) {
+ this.consecutiveFailures = consecutiveFailures;
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter("sheds")
+ public _FinalStage sheds(int sheds) {
+ this.sheds = sheds;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage lastError(String lastError) {
+ this.lastError = Optional.ofNullable(lastError);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "last_error", nulls = Nulls.SKIP)
+ public _FinalStage lastError(Optional lastError) {
+ this.lastError = lastError;
+ return this;
+ }
+
+ /**
+ * Time the current state began, in epoch seconds
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage since(Integer since) {
+ this.since = Optional.ofNullable(since);
+ return this;
+ }
+
+ /**
+ * Time the current state began, in epoch seconds
+ */
+ @java.lang.Override
+ @JsonSetter(value = "since", nulls = Nulls.SKIP)
+ public _FinalStage since(Optional since) {
+ this.since = since;
+ return this;
+ }
+
+ @java.lang.Override
+ public WebhookDeliveryState build() {
+ return new WebhookDeliveryState(state, since, lastError, consecutiveFailures, sheds, 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 additionalProperties) {
+ this.additionalProperties.putAll(additionalProperties);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/pipedream/api/types/WebhookDeliveryStateState.java b/src/main/java/com/pipedream/api/types/WebhookDeliveryStateState.java
new file mode 100644
index 0000000..0af26e0
--- /dev/null
+++ b/src/main/java/com/pipedream/api/types/WebhookDeliveryStateState.java
@@ -0,0 +1,106 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.pipedream.api.types;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+public final class WebhookDeliveryStateState {
+ public static final WebhookDeliveryStateState PENALTY = new WebhookDeliveryStateState(Value.PENALTY, "penalty");
+
+ public static final WebhookDeliveryStateState HAPPY = new WebhookDeliveryStateState(Value.HAPPY, "happy");
+
+ public static final WebhookDeliveryStateState LIFE_SUPPORT =
+ new WebhookDeliveryStateState(Value.LIFE_SUPPORT, "life_support");
+
+ public static final WebhookDeliveryStateState DEACTIVATED =
+ new WebhookDeliveryStateState(Value.DEACTIVATED, "deactivated");
+
+ private final Value value;
+
+ private final String string;
+
+ WebhookDeliveryStateState(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 WebhookDeliveryStateState
+ && this.string.equals(((WebhookDeliveryStateState) other).string));
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return this.string.hashCode();
+ }
+
+ public T visit(Visitor visitor) {
+ switch (value) {
+ case PENALTY:
+ return visitor.visitPenalty();
+ case HAPPY:
+ return visitor.visitHappy();
+ case LIFE_SUPPORT:
+ return visitor.visitLifeSupport();
+ case DEACTIVATED:
+ return visitor.visitDeactivated();
+ case UNKNOWN:
+ default:
+ return visitor.visitUnknown(string);
+ }
+ }
+
+ @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
+ public static WebhookDeliveryStateState valueOf(String value) {
+ switch (value) {
+ case "penalty":
+ return PENALTY;
+ case "happy":
+ return HAPPY;
+ case "life_support":
+ return LIFE_SUPPORT;
+ case "deactivated":
+ return DEACTIVATED;
+ default:
+ return new WebhookDeliveryStateState(Value.UNKNOWN, value);
+ }
+ }
+
+ public enum Value {
+ HAPPY,
+
+ PENALTY,
+
+ LIFE_SUPPORT,
+
+ DEACTIVATED,
+
+ UNKNOWN
+ }
+
+ public interface Visitor {
+ T visitHappy();
+
+ T visitPenalty();
+
+ T visitLifeSupport();
+
+ T visitDeactivated();
+
+ T visitUnknown(String unknownType);
+ }
+}
diff --git a/src/main/java/com/pipedream/api/types/WebhookWithSigningKey.java b/src/main/java/com/pipedream/api/types/WebhookWithSigningKey.java
index 856f663..5825abe 100644
--- a/src/main/java/com/pipedream/api/types/WebhookWithSigningKey.java
+++ b/src/main/java/com/pipedream/api/types/WebhookWithSigningKey.java
@@ -9,11 +9,13 @@
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 com.pipedream.api.core.ObjectMappers;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
+import java.util.Optional;
import org.jetbrains.annotations.NotNull;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@@ -27,6 +29,12 @@ public final class WebhookWithSigningKey {
private final boolean signingKeySet;
+ private final Optional active;
+
+ private final Optional deliveryBackend;
+
+ private final Optional deliveryState;
+
private final int createdAt;
private final int updatedAt;
@@ -38,6 +46,9 @@ private WebhookWithSigningKey(
String url,
String signingKey,
boolean signingKeySet,
+ Optional active,
+ Optional deliveryBackend,
+ Optional deliveryState,
int createdAt,
int updatedAt,
Map additionalProperties) {
@@ -45,6 +56,9 @@ private WebhookWithSigningKey(
this.url = url;
this.signingKey = signingKey;
this.signingKeySet = signingKeySet;
+ this.active = active;
+ this.deliveryBackend = deliveryBackend;
+ this.deliveryState = deliveryState;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.additionalProperties = additionalProperties;
@@ -82,6 +96,21 @@ public boolean getSigningKeySet() {
return signingKeySet;
}
+ @JsonProperty("active")
+ public Optional getActive() {
+ return active;
+ }
+
+ @JsonProperty("delivery_backend")
+ public Optional getDeliveryBackend() {
+ return deliveryBackend;
+ }
+
+ @JsonProperty("delivery_state")
+ public Optional getDeliveryState() {
+ return deliveryState;
+ }
+
/**
* @return The time the webhook was created, in epoch seconds
*/
@@ -114,13 +143,25 @@ private boolean equalTo(WebhookWithSigningKey other) {
&& url.equals(other.url)
&& signingKey.equals(other.signingKey)
&& signingKeySet == other.signingKeySet
+ && active.equals(other.active)
+ && deliveryBackend.equals(other.deliveryBackend)
+ && deliveryState.equals(other.deliveryState)
&& createdAt == other.createdAt
&& updatedAt == other.updatedAt;
}
@java.lang.Override
public int hashCode() {
- return Objects.hash(this.id, this.url, this.signingKey, this.signingKeySet, this.createdAt, this.updatedAt);
+ return Objects.hash(
+ this.id,
+ this.url,
+ this.signingKey,
+ this.signingKeySet,
+ this.active,
+ this.deliveryBackend,
+ this.deliveryState,
+ this.createdAt,
+ this.updatedAt);
}
@java.lang.Override
@@ -182,6 +223,18 @@ public interface _FinalStage {
_FinalStage additionalProperty(String key, Object value);
_FinalStage additionalProperties(Map additionalProperties);
+
+ _FinalStage active(Optional active);
+
+ _FinalStage active(Boolean active);
+
+ _FinalStage deliveryBackend(Optional deliveryBackend);
+
+ _FinalStage deliveryBackend(WebhookWithSigningKeyDeliveryBackend deliveryBackend);
+
+ _FinalStage deliveryState(Optional deliveryState);
+
+ _FinalStage deliveryState(WebhookDeliveryState deliveryState);
}
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -205,6 +258,12 @@ public static final class Builder
private int updatedAt;
+ private Optional deliveryState = Optional.empty();
+
+ private Optional deliveryBackend = Optional.empty();
+
+ private Optional active = Optional.empty();
+
@JsonAnySetter
private Map additionalProperties = new HashMap<>();
@@ -216,6 +275,9 @@ public Builder from(WebhookWithSigningKey other) {
url(other.getUrl());
signingKey(other.getSigningKey());
signingKeySet(other.getSigningKeySet());
+ active(other.getActive());
+ deliveryBackend(other.getDeliveryBackend());
+ deliveryState(other.getDeliveryState());
createdAt(other.getCreatedAt());
updatedAt(other.getUpdatedAt());
return this;
@@ -293,10 +355,58 @@ public _FinalStage updatedAt(int updatedAt) {
return this;
}
+ @java.lang.Override
+ public _FinalStage deliveryState(WebhookDeliveryState deliveryState) {
+ this.deliveryState = Optional.ofNullable(deliveryState);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "delivery_state", nulls = Nulls.SKIP)
+ public _FinalStage deliveryState(Optional deliveryState) {
+ this.deliveryState = deliveryState;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage deliveryBackend(WebhookWithSigningKeyDeliveryBackend deliveryBackend) {
+ this.deliveryBackend = Optional.ofNullable(deliveryBackend);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "delivery_backend", nulls = Nulls.SKIP)
+ public _FinalStage deliveryBackend(Optional deliveryBackend) {
+ this.deliveryBackend = deliveryBackend;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage active(Boolean active) {
+ this.active = Optional.ofNullable(active);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "active", nulls = Nulls.SKIP)
+ public _FinalStage active(Optional active) {
+ this.active = active;
+ return this;
+ }
+
@java.lang.Override
public WebhookWithSigningKey build() {
return new WebhookWithSigningKey(
- id, url, signingKey, signingKeySet, createdAt, updatedAt, additionalProperties);
+ id,
+ url,
+ signingKey,
+ signingKeySet,
+ active,
+ deliveryBackend,
+ deliveryState,
+ createdAt,
+ updatedAt,
+ additionalProperties);
}
@java.lang.Override
diff --git a/src/main/java/com/pipedream/api/types/WebhookWithSigningKeyDeliveryBackend.java b/src/main/java/com/pipedream/api/types/WebhookWithSigningKeyDeliveryBackend.java
new file mode 100644
index 0000000..43b7d70
--- /dev/null
+++ b/src/main/java/com/pipedream/api/types/WebhookWithSigningKeyDeliveryBackend.java
@@ -0,0 +1,86 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.pipedream.api.types;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+public final class WebhookWithSigningKeyDeliveryBackend {
+ public static final WebhookWithSigningKeyDeliveryBackend JVM =
+ new WebhookWithSigningKeyDeliveryBackend(Value.JVM, "jvm");
+
+ public static final WebhookWithSigningKeyDeliveryBackend VALKEY =
+ new WebhookWithSigningKeyDeliveryBackend(Value.VALKEY, "valkey");
+
+ private final Value value;
+
+ private final String string;
+
+ WebhookWithSigningKeyDeliveryBackend(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 WebhookWithSigningKeyDeliveryBackend
+ && this.string.equals(((WebhookWithSigningKeyDeliveryBackend) other).string));
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return this.string.hashCode();
+ }
+
+ public T visit(Visitor visitor) {
+ switch (value) {
+ case JVM:
+ return visitor.visitJvm();
+ case VALKEY:
+ return visitor.visitValkey();
+ case UNKNOWN:
+ default:
+ return visitor.visitUnknown(string);
+ }
+ }
+
+ @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
+ public static WebhookWithSigningKeyDeliveryBackend valueOf(String value) {
+ switch (value) {
+ case "jvm":
+ return JVM;
+ case "valkey":
+ return VALKEY;
+ default:
+ return new WebhookWithSigningKeyDeliveryBackend(Value.UNKNOWN, value);
+ }
+ }
+
+ public enum Value {
+ JVM,
+
+ VALKEY,
+
+ UNKNOWN
+ }
+
+ public interface Visitor {
+ T visitJvm();
+
+ T visitValkey();
+
+ T visitUnknown(String unknownType);
+ }
+}