From 1097740d513e8694f3a3bbe1f5cedf3e13062143 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 31 Jul 2025 22:26:49 +0000 Subject: [PATCH 1/2] SDK regeneration --- README.md | 2 +- build.gradle | 4 +- .../com/pipedream/api/AsyncBaseClient.java | 8 --- .../pipedream/api/AsyncBaseClientBuilder.java | 57 +++++++++---------- .../java/com/pipedream/api/BaseClient.java | 8 --- .../com/pipedream/api/BaseClientBuilder.java | 57 +++++++++---------- .../com/pipedream/api/core/ClientOptions.java | 2 +- 7 files changed, 58 insertions(+), 80 deletions(-) diff --git a/README.md b/README.md index 9d4aea9..58e744e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Add the dependency in your `pom.xml` file: com.pipedream pipedream - 0.0.256 + 0.0.264 ``` diff --git a/build.gradle b/build.gradle index def2d8c..c2cdeb3 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,7 @@ java { group = 'com.pipedream' -version = '0.0.256' +version = '0.0.264' jar { dependsOn(":generatePomFileForMavenPublication") @@ -79,7 +79,7 @@ publishing { maven(MavenPublication) { groupId = 'com.pipedream' artifactId = 'pipedream' - version = '0.0.256' + version = '0.0.264' from components.java pom { name = 'pipedream' diff --git a/src/main/java/com/pipedream/api/AsyncBaseClient.java b/src/main/java/com/pipedream/api/AsyncBaseClient.java index cf2221c..39ecdab 100644 --- a/src/main/java/com/pipedream/api/AsyncBaseClient.java +++ b/src/main/java/com/pipedream/api/AsyncBaseClient.java @@ -17,7 +17,6 @@ import com.pipedream.api.resources.tokens.AsyncTokensClient; import com.pipedream.api.resources.triggers.AsyncTriggersClient; import com.pipedream.api.resources.users.AsyncUsersClient; -import com.pipedream.api.resources.workflows.AsyncWorkflowsClient; import java.util.function.Supplier; public class AsyncBaseClient { @@ -47,8 +46,6 @@ public class AsyncBaseClient { protected final Supplier oauthTokensClient; - protected final Supplier workflowsClient; - public AsyncBaseClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.appCategoriesClient = Suppliers.memoize(() -> new AsyncAppCategoriesClient(clientOptions)); @@ -63,7 +60,6 @@ public AsyncBaseClient(ClientOptions clientOptions) { this.proxyClient = Suppliers.memoize(() -> new AsyncProxyClient(clientOptions)); this.tokensClient = Suppliers.memoize(() -> new AsyncTokensClient(clientOptions)); this.oauthTokensClient = Suppliers.memoize(() -> new AsyncOauthTokensClient(clientOptions)); - this.workflowsClient = Suppliers.memoize(() -> new AsyncWorkflowsClient(clientOptions)); } public AsyncAppCategoriesClient appCategories() { @@ -114,10 +110,6 @@ public AsyncOauthTokensClient oauthTokens() { return this.oauthTokensClient.get(); } - public AsyncWorkflowsClient workflows() { - return this.workflowsClient.get(); - } - public static AsyncBaseClientBuilder builder() { return new AsyncBaseClientBuilder(); } diff --git a/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java b/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java index cc6e4a9..cea2aff 100644 --- a/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java +++ b/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java @@ -10,7 +10,7 @@ import java.util.Optional; import okhttp3.OkHttpClient; -public class AsyncBaseClientBuilder> { +public class AsyncBaseClientBuilder { private Optional timeout = Optional.empty(); private Optional maxRetries = Optional.empty(); @@ -29,68 +29,65 @@ public class AsyncBaseClientBuilder> { * Sets clientId. * Defaults to the PIPEDREAM_CLIENT_ID environment variable. */ - @SuppressWarnings("unchecked") - public T clientId(String clientId) { + public AsyncBaseClientBuilder clientId(String clientId) { this.clientId = clientId; - return (T) this; + return this; } /** * Sets clientSecret. * Defaults to the PIPEDREAM_CLIENT_SECRET environment variable. */ - @SuppressWarnings("unchecked") - public T clientSecret(String clientSecret) { + public AsyncBaseClientBuilder clientSecret(String clientSecret) { this.clientSecret = clientSecret; - return (T) this; + return this; } /** * Sets projectEnvironment */ - @SuppressWarnings("unchecked") - public T projectEnvironment(String projectEnvironment) { + public AsyncBaseClientBuilder projectEnvironment(String projectEnvironment) { this.projectEnvironment = projectEnvironment; - return (T) this; + return this; } - @SuppressWarnings("unchecked") - public T environment(Environment environment) { + public AsyncBaseClientBuilder environment(Environment environment) { this.environment = environment; - return (T) this; + return this; } - @SuppressWarnings("unchecked") - public T url(String url) { + public AsyncBaseClientBuilder url(String url) { this.environment = Environment.custom(url); - return (T) this; + return this; } /** * Sets the timeout (in seconds) for the client. Defaults to 60 seconds. */ - @SuppressWarnings("unchecked") - public T timeout(int timeout) { + public AsyncBaseClientBuilder timeout(int timeout) { this.timeout = Optional.of(timeout); - return (T) this; + return this; } /** * Sets the maximum number of retries for the client. Defaults to 2 retries. */ - @SuppressWarnings("unchecked") - public T maxRetries(int maxRetries) { + public AsyncBaseClientBuilder maxRetries(int maxRetries) { this.maxRetries = Optional.of(maxRetries); - return (T) this; + return this; } /** * Sets the underlying OkHttp client */ - @SuppressWarnings("unchecked") - public T httpClient(OkHttpClient httpClient) { + public AsyncBaseClientBuilder httpClient(OkHttpClient httpClient) { this.httpClient = httpClient; - return (T) this; + return this; + } + + public AsyncBaseClientBuilder projectId(String projectId) { + clientOptionsBuilder.projectId(projectId); + return this; } protected ClientOptions buildClientOptions() { @@ -124,7 +121,7 @@ protected void setEnvironment(ClientOptions.Builder builder) { * * Example: *
{@code
-     * @Override
+     * @Override
      * protected void setAuthentication(ClientOptions.Builder builder) {
      *     super.setAuthentication(builder); // Keep existing auth
      *     builder.addHeader("X-API-Key", this.apiKey);
@@ -149,7 +146,7 @@ protected void setAuthentication(ClientOptions.Builder builder) {
      *
      * Example:
      * 
{@code
-     * @Override
+     * @Override
      * protected void setCustomHeaders(ClientOptions.Builder builder) {
      *     super.setCustomHeaders(builder); // Keep existing headers
      *     builder.addHeader("X-Trace-ID", generateTraceId());
@@ -215,9 +212,9 @@ protected void setHttpClient(ClientOptions.Builder builder) {
      *
      * Example:
      * 
{@code
-     * @Override
+     * @Override
      * protected void setAdditional(ClientOptions.Builder builder) {
-     *     builder.addHeader("X-Request-ID", () -> UUID.randomUUID().toString());
+     *     builder.addHeader("X-Request-ID", () -> UUID.randomUUID().toString());
      *     builder.addHeader("X-Client-Version", "1.0.0");
      * }
      * }
@@ -231,7 +228,7 @@ protected void setAdditional(ClientOptions.Builder builder) {} * * Example: *
{@code
-     * @Override
+     * @Override
      * protected void validateConfiguration() {
      *     super.validateConfiguration(); // Run parent validations
      *     if (tenantId == null || tenantId.isEmpty()) {
diff --git a/src/main/java/com/pipedream/api/BaseClient.java b/src/main/java/com/pipedream/api/BaseClient.java
index 8a7a9a6..69e5677 100644
--- a/src/main/java/com/pipedream/api/BaseClient.java
+++ b/src/main/java/com/pipedream/api/BaseClient.java
@@ -17,7 +17,6 @@
 import com.pipedream.api.resources.tokens.TokensClient;
 import com.pipedream.api.resources.triggers.TriggersClient;
 import com.pipedream.api.resources.users.UsersClient;
-import com.pipedream.api.resources.workflows.WorkflowsClient;
 import java.util.function.Supplier;
 
 public class BaseClient {
@@ -47,8 +46,6 @@ public class BaseClient {
 
     protected final Supplier oauthTokensClient;
 
-    protected final Supplier workflowsClient;
-
     public BaseClient(ClientOptions clientOptions) {
         this.clientOptions = clientOptions;
         this.appCategoriesClient = Suppliers.memoize(() -> new AppCategoriesClient(clientOptions));
@@ -63,7 +60,6 @@ public BaseClient(ClientOptions clientOptions) {
         this.proxyClient = Suppliers.memoize(() -> new ProxyClient(clientOptions));
         this.tokensClient = Suppliers.memoize(() -> new TokensClient(clientOptions));
         this.oauthTokensClient = Suppliers.memoize(() -> new OauthTokensClient(clientOptions));
-        this.workflowsClient = Suppliers.memoize(() -> new WorkflowsClient(clientOptions));
     }
 
     public AppCategoriesClient appCategories() {
@@ -114,10 +110,6 @@ public OauthTokensClient oauthTokens() {
         return this.oauthTokensClient.get();
     }
 
-    public WorkflowsClient workflows() {
-        return this.workflowsClient.get();
-    }
-
     public static BaseClientBuilder builder() {
         return new BaseClientBuilder();
     }
diff --git a/src/main/java/com/pipedream/api/BaseClientBuilder.java b/src/main/java/com/pipedream/api/BaseClientBuilder.java
index 79c1350..18ac974 100644
--- a/src/main/java/com/pipedream/api/BaseClientBuilder.java
+++ b/src/main/java/com/pipedream/api/BaseClientBuilder.java
@@ -10,7 +10,7 @@
 import java.util.Optional;
 import okhttp3.OkHttpClient;
 
-public class BaseClientBuilder> {
+public class BaseClientBuilder {
     private Optional timeout = Optional.empty();
 
     private Optional maxRetries = Optional.empty();
@@ -29,68 +29,65 @@ public class BaseClientBuilder> {
      * Sets clientId.
      * Defaults to the PIPEDREAM_CLIENT_ID environment variable.
      */
-    @SuppressWarnings("unchecked")
-    public T clientId(String clientId) {
+    public BaseClientBuilder clientId(String clientId) {
         this.clientId = clientId;
-        return (T) this;
+        return this;
     }
 
     /**
      * Sets clientSecret.
      * Defaults to the PIPEDREAM_CLIENT_SECRET environment variable.
      */
-    @SuppressWarnings("unchecked")
-    public T clientSecret(String clientSecret) {
+    public BaseClientBuilder clientSecret(String clientSecret) {
         this.clientSecret = clientSecret;
-        return (T) this;
+        return this;
     }
 
     /**
      * Sets projectEnvironment
      */
-    @SuppressWarnings("unchecked")
-    public T projectEnvironment(String projectEnvironment) {
+    public BaseClientBuilder projectEnvironment(String projectEnvironment) {
         this.projectEnvironment = projectEnvironment;
-        return (T) this;
+        return this;
     }
 
-    @SuppressWarnings("unchecked")
-    public T environment(Environment environment) {
+    public BaseClientBuilder environment(Environment environment) {
         this.environment = environment;
-        return (T) this;
+        return this;
     }
 
-    @SuppressWarnings("unchecked")
-    public T url(String url) {
+    public BaseClientBuilder url(String url) {
         this.environment = Environment.custom(url);
-        return (T) this;
+        return this;
     }
 
     /**
      * Sets the timeout (in seconds) for the client. Defaults to 60 seconds.
      */
-    @SuppressWarnings("unchecked")
-    public T timeout(int timeout) {
+    public BaseClientBuilder timeout(int timeout) {
         this.timeout = Optional.of(timeout);
-        return (T) this;
+        return this;
     }
 
     /**
      * Sets the maximum number of retries for the client. Defaults to 2 retries.
      */
-    @SuppressWarnings("unchecked")
-    public T maxRetries(int maxRetries) {
+    public BaseClientBuilder maxRetries(int maxRetries) {
         this.maxRetries = Optional.of(maxRetries);
-        return (T) this;
+        return this;
     }
 
     /**
      * Sets the underlying OkHttp client
      */
-    @SuppressWarnings("unchecked")
-    public T httpClient(OkHttpClient httpClient) {
+    public BaseClientBuilder httpClient(OkHttpClient httpClient) {
         this.httpClient = httpClient;
-        return (T) this;
+        return this;
+    }
+
+    public BaseClientBuilder projectId(String projectId) {
+        clientOptionsBuilder.projectId(projectId);
+        return this;
     }
 
     protected ClientOptions buildClientOptions() {
@@ -124,7 +121,7 @@ protected void setEnvironment(ClientOptions.Builder builder) {
      *
      * Example:
      * 
{@code
-     * @Override
+     * @Override
      * protected void setAuthentication(ClientOptions.Builder builder) {
      *     super.setAuthentication(builder); // Keep existing auth
      *     builder.addHeader("X-API-Key", this.apiKey);
@@ -149,7 +146,7 @@ protected void setAuthentication(ClientOptions.Builder builder) {
      *
      * Example:
      * 
{@code
-     * @Override
+     * @Override
      * protected void setCustomHeaders(ClientOptions.Builder builder) {
      *     super.setCustomHeaders(builder); // Keep existing headers
      *     builder.addHeader("X-Trace-ID", generateTraceId());
@@ -215,9 +212,9 @@ protected void setHttpClient(ClientOptions.Builder builder) {
      *
      * Example:
      * 
{@code
-     * @Override
+     * @Override
      * protected void setAdditional(ClientOptions.Builder builder) {
-     *     builder.addHeader("X-Request-ID", () -> UUID.randomUUID().toString());
+     *     builder.addHeader("X-Request-ID", () -> UUID.randomUUID().toString());
      *     builder.addHeader("X-Client-Version", "1.0.0");
      * }
      * }
@@ -231,7 +228,7 @@ protected void setAdditional(ClientOptions.Builder builder) {} * * Example: *
{@code
-     * @Override
+     * @Override
      * protected void validateConfiguration() {
      *     super.validateConfiguration(); // Run parent validations
      *     if (tenantId == null || tenantId.isEmpty()) {
diff --git a/src/main/java/com/pipedream/api/core/ClientOptions.java b/src/main/java/com/pipedream/api/core/ClientOptions.java
index 2e7459a..3637ecb 100644
--- a/src/main/java/com/pipedream/api/core/ClientOptions.java
+++ b/src/main/java/com/pipedream/api/core/ClientOptions.java
@@ -37,7 +37,7 @@ private ClientOptions(
             {
                 put("X-Fern-Language", "JAVA");
                 put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
-                put("X-Fern-SDK-Version", "0.0.256");
+                put("X-Fern-SDK-Version", "0.0.264");
             }
         });
         this.headerSuppliers = headerSuppliers;

From a2a0c98ecccc0fce56b55197209c2888a37b3618 Mon Sep 17 00:00:00 2001
From: Jay Vercellone 
Date: Thu, 31 Jul 2025 15:36:17 -0700
Subject: [PATCH 2/2] Fix reference to inexistent property

---
 src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java   | 4 +++-
 .../java/com/pipedream/api/AsyncPipedreamClientBuilder.java   | 2 +-
 src/main/java/com/pipedream/api/BaseClientBuilder.java        | 4 +++-
 src/main/java/com/pipedream/api/PipedreamClientBuilder.java   | 2 +-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java b/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java
index cea2aff..5fb7975 100644
--- a/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java
+++ b/src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java
@@ -23,6 +23,8 @@ public class AsyncBaseClientBuilder {
 
     private Environment environment = Environment.PROD;
 
+    private String projectId;
+
     private OkHttpClient httpClient;
 
     /**
@@ -86,7 +88,7 @@ public AsyncBaseClientBuilder httpClient(OkHttpClient httpClient) {
     }
 
     public AsyncBaseClientBuilder projectId(String projectId) {
-        clientOptionsBuilder.projectId(projectId);
+        this.projectId = projectId;
         return this;
     }
 
diff --git a/src/main/java/com/pipedream/api/AsyncPipedreamClientBuilder.java b/src/main/java/com/pipedream/api/AsyncPipedreamClientBuilder.java
index 8dc55ad..a53f1ce 100644
--- a/src/main/java/com/pipedream/api/AsyncPipedreamClientBuilder.java
+++ b/src/main/java/com/pipedream/api/AsyncPipedreamClientBuilder.java
@@ -8,7 +8,7 @@
 /**
  * Builder for creating AsyncPipedreamClient instances.
  */
-public final class AsyncPipedreamClientBuilder extends AsyncBaseClientBuilder {
+public final class AsyncPipedreamClientBuilder extends AsyncBaseClientBuilder {
     private String projectId;
 
     public AsyncPipedreamClient build() {
diff --git a/src/main/java/com/pipedream/api/BaseClientBuilder.java b/src/main/java/com/pipedream/api/BaseClientBuilder.java
index 18ac974..d2cf060 100644
--- a/src/main/java/com/pipedream/api/BaseClientBuilder.java
+++ b/src/main/java/com/pipedream/api/BaseClientBuilder.java
@@ -23,6 +23,8 @@ public class BaseClientBuilder {
 
     private Environment environment = Environment.PROD;
 
+    private String projectId;
+
     private OkHttpClient httpClient;
 
     /**
@@ -86,7 +88,7 @@ public BaseClientBuilder httpClient(OkHttpClient httpClient) {
     }
 
     public BaseClientBuilder projectId(String projectId) {
-        clientOptionsBuilder.projectId(projectId);
+        this.projectId = projectId;
         return this;
     }
 
diff --git a/src/main/java/com/pipedream/api/PipedreamClientBuilder.java b/src/main/java/com/pipedream/api/PipedreamClientBuilder.java
index 2722b8b..c9b799c 100644
--- a/src/main/java/com/pipedream/api/PipedreamClientBuilder.java
+++ b/src/main/java/com/pipedream/api/PipedreamClientBuilder.java
@@ -8,7 +8,7 @@
 /**
  * Builder for creating PipedreamClient instances.
  */
-public final class PipedreamClientBuilder extends BaseClientBuilder {
+public final class PipedreamClientBuilder extends BaseClientBuilder {
     private String projectId;
 
     public PipedreamClient build() {