additionalProperties = new HashMap<>();
-
- private Builder() {}
-
- @java.lang.Override
- public Builder from(ConnectTokenCreateOpts other) {
- externalUserId(other.getExternalUserId());
- allowedOrigins(other.getAllowedOrigins());
- errorRedirectUri(other.getErrorRedirectUri());
- successRedirectUri(other.getSuccessRedirectUri());
- webhookUri(other.getWebhookUri());
- return this;
- }
-
- /**
- * Your end user ID, for whom you're creating the token
- * Your end user ID, for whom you're creating the token
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- @JsonSetter("external_user_id")
- public _FinalStage externalUserId(@NotNull String externalUserId) {
- this.externalUserId = Objects.requireNonNull(externalUserId, "externalUserId must not be null");
- return this;
- }
-
- /**
- * Webhook URI for notifications
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage webhookUri(String webhookUri) {
- this.webhookUri = Optional.ofNullable(webhookUri);
- return this;
- }
-
- /**
- * Webhook URI for notifications
- */
- @java.lang.Override
- @JsonSetter(value = "webhook_uri", nulls = Nulls.SKIP)
- public _FinalStage webhookUri(Optional webhookUri) {
- this.webhookUri = webhookUri;
- return this;
- }
-
- /**
- * URI to redirect to on success
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage successRedirectUri(String successRedirectUri) {
- this.successRedirectUri = Optional.ofNullable(successRedirectUri);
- return this;
- }
-
- /**
- * URI to redirect to on success
- */
- @java.lang.Override
- @JsonSetter(value = "success_redirect_uri", nulls = Nulls.SKIP)
- public _FinalStage successRedirectUri(Optional successRedirectUri) {
- this.successRedirectUri = successRedirectUri;
- return this;
- }
-
- /**
- * URI to redirect to on error
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage errorRedirectUri(String errorRedirectUri) {
- this.errorRedirectUri = Optional.ofNullable(errorRedirectUri);
- return this;
- }
-
- /**
- * URI to redirect to on error
- */
- @java.lang.Override
- @JsonSetter(value = "error_redirect_uri", nulls = Nulls.SKIP)
- public _FinalStage errorRedirectUri(Optional errorRedirectUri) {
- this.errorRedirectUri = errorRedirectUri;
- return this;
- }
-
- /**
- * List of allowed origins for CORS
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage allowedOrigins(List allowedOrigins) {
- this.allowedOrigins = Optional.ofNullable(allowedOrigins);
- return this;
- }
-
- /**
- * List of allowed origins for CORS
- */
- @java.lang.Override
- @JsonSetter(value = "allowed_origins", nulls = Nulls.SKIP)
- public _FinalStage allowedOrigins(Optional> allowedOrigins) {
- this.allowedOrigins = allowedOrigins;
- return this;
- }
-
- @java.lang.Override
- public ConnectTokenCreateOpts build() {
- return new ConnectTokenCreateOpts(
- externalUserId,
- allowedOrigins,
- errorRedirectUri,
- successRedirectUri,
- webhookUri,
- additionalProperties);
- }
- }
-}
diff --git a/src/main/java/com/pipedream/api/types/ConnectTokenResponse.java b/src/main/java/com/pipedream/api/types/ConnectTokenResponse.java
deleted file mode 100644
index 76aac12..0000000
--- a/src/main/java/com/pipedream/api/types/ConnectTokenResponse.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/**
- * 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.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-import org.jetbrains.annotations.NotNull;
-
-@JsonInclude(JsonInclude.Include.NON_ABSENT)
-@JsonDeserialize(builder = ConnectTokenResponse.Builder.class)
-public final class ConnectTokenResponse {
- private final String connectLinkUrl;
-
- private final OffsetDateTime expiresAt;
-
- private final String token;
-
- private final Map additionalProperties;
-
- private ConnectTokenResponse(
- String connectLinkUrl, OffsetDateTime expiresAt, String token, Map additionalProperties) {
- this.connectLinkUrl = connectLinkUrl;
- this.expiresAt = expiresAt;
- this.token = token;
- this.additionalProperties = additionalProperties;
- }
-
- /**
- * @return The Connect Link URL
- */
- @JsonProperty("connect_link_url")
- public String getConnectLinkUrl() {
- return connectLinkUrl;
- }
-
- /**
- * @return The expiration time of the token in ISO 8601 format
- */
- @JsonProperty("expires_at")
- public OffsetDateTime getExpiresAt() {
- return expiresAt;
- }
-
- /**
- * @return The generated token
- */
- @JsonProperty("token")
- public String getToken() {
- return token;
- }
-
- @java.lang.Override
- public boolean equals(Object other) {
- if (this == other) return true;
- return other instanceof ConnectTokenResponse && equalTo((ConnectTokenResponse) other);
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- private boolean equalTo(ConnectTokenResponse other) {
- return connectLinkUrl.equals(other.connectLinkUrl)
- && expiresAt.equals(other.expiresAt)
- && token.equals(other.token);
- }
-
- @java.lang.Override
- public int hashCode() {
- return Objects.hash(this.connectLinkUrl, this.expiresAt, this.token);
- }
-
- @java.lang.Override
- public String toString() {
- return ObjectMappers.stringify(this);
- }
-
- public static ConnectLinkUrlStage builder() {
- return new Builder();
- }
-
- public interface ConnectLinkUrlStage {
- /**
- * The Connect Link URL
- */
- ExpiresAtStage connectLinkUrl(@NotNull String connectLinkUrl);
-
- Builder from(ConnectTokenResponse other);
- }
-
- public interface ExpiresAtStage {
- /**
- * The expiration time of the token in ISO 8601 format
- */
- TokenStage expiresAt(@NotNull OffsetDateTime expiresAt);
- }
-
- public interface TokenStage {
- /**
- * The generated token
- */
- _FinalStage token(@NotNull String token);
- }
-
- public interface _FinalStage {
- ConnectTokenResponse build();
- }
-
- @JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder implements ConnectLinkUrlStage, ExpiresAtStage, TokenStage, _FinalStage {
- private String connectLinkUrl;
-
- private OffsetDateTime expiresAt;
-
- private String token;
-
- @JsonAnySetter
- private Map additionalProperties = new HashMap<>();
-
- private Builder() {}
-
- @java.lang.Override
- public Builder from(ConnectTokenResponse other) {
- connectLinkUrl(other.getConnectLinkUrl());
- expiresAt(other.getExpiresAt());
- token(other.getToken());
- return this;
- }
-
- /**
- * The Connect Link URL
- * The Connect Link URL
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- @JsonSetter("connect_link_url")
- public ExpiresAtStage connectLinkUrl(@NotNull String connectLinkUrl) {
- this.connectLinkUrl = Objects.requireNonNull(connectLinkUrl, "connectLinkUrl must not be null");
- return this;
- }
-
- /**
- * The expiration time of the token in ISO 8601 format
- * The expiration time of the token in ISO 8601 format
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- @JsonSetter("expires_at")
- public TokenStage expiresAt(@NotNull OffsetDateTime expiresAt) {
- this.expiresAt = Objects.requireNonNull(expiresAt, "expiresAt must not be null");
- return this;
- }
-
- /**
- * The generated token
- * The generated token
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- @JsonSetter("token")
- public _FinalStage token(@NotNull String token) {
- this.token = Objects.requireNonNull(token, "token must not be null");
- return this;
- }
-
- @java.lang.Override
- public ConnectTokenResponse build() {
- return new ConnectTokenResponse(connectLinkUrl, expiresAt, token, additionalProperties);
- }
- }
-}
diff --git a/src/main/java/com/pipedream/api/types/CreateBrowserClientOpts.java b/src/main/java/com/pipedream/api/types/CreateBrowserClientOpts.java
deleted file mode 100644
index 96af1a4..0000000
--- a/src/main/java/com/pipedream/api/types/CreateBrowserClientOpts.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * 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;
-
-@JsonInclude(JsonInclude.Include.NON_ABSENT)
-@JsonDeserialize(builder = CreateBrowserClientOpts.Builder.class)
-public final class CreateBrowserClientOpts {
- private final Optional apiUrl;
-
- private final Map additionalProperties;
-
- private CreateBrowserClientOpts(Optional apiUrl, Map additionalProperties) {
- this.apiUrl = apiUrl;
- this.additionalProperties = additionalProperties;
- }
-
- /**
- * @return The API URL to use
- */
- @JsonProperty("api_url")
- public Optional getApiUrl() {
- return apiUrl;
- }
-
- @java.lang.Override
- public boolean equals(Object other) {
- if (this == other) return true;
- return other instanceof CreateBrowserClientOpts && equalTo((CreateBrowserClientOpts) other);
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- private boolean equalTo(CreateBrowserClientOpts other) {
- return apiUrl.equals(other.apiUrl);
- }
-
- @java.lang.Override
- public int hashCode() {
- return Objects.hash(this.apiUrl);
- }
-
- @java.lang.Override
- public String toString() {
- return ObjectMappers.stringify(this);
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- @JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder {
- private Optional apiUrl = Optional.empty();
-
- @JsonAnySetter
- private Map additionalProperties = new HashMap<>();
-
- private Builder() {}
-
- public Builder from(CreateBrowserClientOpts other) {
- apiUrl(other.getApiUrl());
- return this;
- }
-
- /**
- * The API URL to use
- */
- @JsonSetter(value = "api_url", nulls = Nulls.SKIP)
- public Builder apiUrl(Optional apiUrl) {
- this.apiUrl = apiUrl;
- return this;
- }
-
- public Builder apiUrl(String apiUrl) {
- this.apiUrl = Optional.ofNullable(apiUrl);
- return this;
- }
-
- public CreateBrowserClientOpts build() {
- return new CreateBrowserClientOpts(apiUrl, additionalProperties);
- }
- }
-}
diff --git a/src/main/java/com/pipedream/api/types/CreateTokenResponse.java b/src/main/java/com/pipedream/api/types/CreateTokenResponse.java
index 4ce6161..ea87232 100644
--- a/src/main/java/com/pipedream/api/types/CreateTokenResponse.java
+++ b/src/main/java/com/pipedream/api/types/CreateTokenResponse.java
@@ -52,9 +52,6 @@ public OffsetDateTime getExpiresAt() {
return expiresAt;
}
- /**
- * @return The generated token
- */
@JsonProperty("token")
public String getToken() {
return token;
@@ -108,9 +105,6 @@ public interface ExpiresAtStage {
}
public interface TokenStage {
- /**
- * The generated token
- */
_FinalStage token(@NotNull String token);
}
@@ -163,11 +157,6 @@ public TokenStage expiresAt(@NotNull OffsetDateTime expiresAt) {
return this;
}
- /**
- * The generated token
- * The generated token
- * @return Reference to {@code this} so that method calls can be chained together.
- */
@java.lang.Override
@JsonSetter("token")
public _FinalStage token(@NotNull String token) {
diff --git a/src/main/java/com/pipedream/api/types/ProjectInfoResponse.java b/src/main/java/com/pipedream/api/types/ProjectInfoResponse.java
index c3f66ca..1ffa323 100644
--- a/src/main/java/com/pipedream/api/types/ProjectInfoResponse.java
+++ b/src/main/java/com/pipedream/api/types/ProjectInfoResponse.java
@@ -21,17 +21,17 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ProjectInfoResponse.Builder.class)
public final class ProjectInfoResponse {
- private final List apps;
+ private final List apps;
private final Map additionalProperties;
- private ProjectInfoResponse(List apps, Map additionalProperties) {
+ private ProjectInfoResponse(List apps, Map additionalProperties) {
this.apps = apps;
this.additionalProperties = additionalProperties;
}
@JsonProperty("apps")
- public List getApps() {
+ public List getApps() {
return apps;
}
@@ -66,7 +66,7 @@ public static Builder builder() {
@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder {
- private List apps = new ArrayList<>();
+ private List apps = new ArrayList<>();
@JsonAnySetter
private Map additionalProperties = new HashMap<>();
@@ -79,18 +79,18 @@ public Builder from(ProjectInfoResponse other) {
}
@JsonSetter(value = "apps", nulls = Nulls.SKIP)
- public Builder apps(List apps) {
+ public Builder apps(List apps) {
this.apps.clear();
this.apps.addAll(apps);
return this;
}
- public Builder addApps(ProjectInfoResponseAppsItem apps) {
+ public Builder addApps(ProjectInfoResponseApp apps) {
this.apps.add(apps);
return this;
}
- public Builder addAllApps(List apps) {
+ public Builder addAllApps(List apps) {
this.apps.addAll(apps);
return this;
}
diff --git a/src/main/java/com/pipedream/api/types/ProjectInfoResponseAppsItem.java b/src/main/java/com/pipedream/api/types/ProjectInfoResponseApp.java
similarity index 54%
rename from src/main/java/com/pipedream/api/types/ProjectInfoResponseAppsItem.java
rename to src/main/java/com/pipedream/api/types/ProjectInfoResponseApp.java
index 1b6412a..81eff17 100644
--- a/src/main/java/com/pipedream/api/types/ProjectInfoResponseAppsItem.java
+++ b/src/main/java/com/pipedream/api/types/ProjectInfoResponseApp.java
@@ -16,19 +16,18 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
-import org.jetbrains.annotations.NotNull;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
-@JsonDeserialize(builder = ProjectInfoResponseAppsItem.Builder.class)
-public final class ProjectInfoResponseAppsItem {
+@JsonDeserialize(builder = ProjectInfoResponseApp.Builder.class)
+public final class ProjectInfoResponseApp {
private final Optional id;
- private final String nameSlug;
+ private final Optional nameSlug;
private final Map additionalProperties;
- private ProjectInfoResponseAppsItem(
- Optional id, String nameSlug, Map additionalProperties) {
+ private ProjectInfoResponseApp(
+ Optional id, Optional nameSlug, Map additionalProperties) {
this.id = id;
this.nameSlug = nameSlug;
this.additionalProperties = additionalProperties;
@@ -46,14 +45,14 @@ public Optional getId() {
* @return The name slug of the target app
*/
@JsonProperty("name_slug")
- public String getNameSlug() {
+ public Optional getNameSlug() {
return nameSlug;
}
@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
- return other instanceof ProjectInfoResponseAppsItem && equalTo((ProjectInfoResponseAppsItem) other);
+ return other instanceof ProjectInfoResponseApp && equalTo((ProjectInfoResponseApp) other);
}
@JsonAnyGetter
@@ -61,7 +60,7 @@ public Map getAdditionalProperties() {
return this.additionalProperties;
}
- private boolean equalTo(ProjectInfoResponseAppsItem other) {
+ private boolean equalTo(ProjectInfoResponseApp other) {
return id.equals(other.id) && nameSlug.equals(other.nameSlug);
}
@@ -75,83 +74,57 @@ public String toString() {
return ObjectMappers.stringify(this);
}
- public static NameSlugStage builder() {
+ public static Builder builder() {
return new Builder();
}
- public interface NameSlugStage {
- /**
- * The name slug of the target app
- */
- _FinalStage nameSlug(@NotNull String nameSlug);
-
- Builder from(ProjectInfoResponseAppsItem other);
- }
-
- public interface _FinalStage {
- ProjectInfoResponseAppsItem build();
-
- /**
- * ID of the app. Only applies for OAuth apps.
- */
- _FinalStage id(Optional id);
-
- _FinalStage id(String id);
- }
-
@JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder implements NameSlugStage, _FinalStage {
- private String nameSlug;
-
+ public static final class Builder {
private Optional id = Optional.empty();
+ private Optional nameSlug = Optional.empty();
+
@JsonAnySetter
private Map additionalProperties = new HashMap<>();
private Builder() {}
- @java.lang.Override
- public Builder from(ProjectInfoResponseAppsItem other) {
+ public Builder from(ProjectInfoResponseApp other) {
id(other.getId());
nameSlug(other.getNameSlug());
return this;
}
/**
- * The name slug of the target app
- * The name slug of the target app
- * @return Reference to {@code this} so that method calls can be chained together.
+ * ID of the app. Only applies for OAuth apps.
*/
- @java.lang.Override
- @JsonSetter("name_slug")
- public _FinalStage nameSlug(@NotNull String nameSlug) {
- this.nameSlug = Objects.requireNonNull(nameSlug, "nameSlug must not be null");
+ @JsonSetter(value = "id", nulls = Nulls.SKIP)
+ public Builder id(Optional id) {
+ this.id = id;
return this;
}
- /**
- * ID of the app. Only applies for OAuth apps.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage id(String id) {
+ public Builder id(String id) {
this.id = Optional.ofNullable(id);
return this;
}
/**
- * ID of the app. Only applies for OAuth apps.
+ * The name slug of the target app
*/
- @java.lang.Override
- @JsonSetter(value = "id", nulls = Nulls.SKIP)
- public _FinalStage id(Optional id) {
- this.id = id;
+ @JsonSetter(value = "name_slug", nulls = Nulls.SKIP)
+ public Builder nameSlug(Optional nameSlug) {
+ this.nameSlug = nameSlug;
+ return this;
+ }
+
+ public Builder nameSlug(String nameSlug) {
+ this.nameSlug = Optional.ofNullable(nameSlug);
return this;
}
- @java.lang.Override
- public ProjectInfoResponseAppsItem build() {
- return new ProjectInfoResponseAppsItem(id, nameSlug, additionalProperties);
+ public ProjectInfoResponseApp build() {
+ return new ProjectInfoResponseApp(id, nameSlug, additionalProperties);
}
}
}
diff --git a/src/main/java/com/pipedream/api/types/RunActionResponse.java b/src/main/java/com/pipedream/api/types/RunActionResponse.java
index 585a35a..416bdbc 100644
--- a/src/main/java/com/pipedream/api/types/RunActionResponse.java
+++ b/src/main/java/com/pipedream/api/types/RunActionResponse.java
@@ -58,9 +58,6 @@ public Optional getRet() {
return ret;
}
- /**
- * @return The ID of the File Stash that was used to sync the action's /tmp directory
- */
@JsonProperty("stash_id")
public Optional getStashId() {
return stashId;
@@ -154,9 +151,6 @@ public Builder ret(Object ret) {
return this;
}
- /**
- * The ID of the File Stash that was used to sync the action's /tmp directory
- */
@JsonSetter(value = "stash_id", nulls = Nulls.SKIP)
public Builder stashId(Optional stashId) {
this.stashId = stashId;