diff --git a/README.md b/README.md index 9d4aea9..5b416ef 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.263 ``` diff --git a/build.gradle b/build.gradle index def2d8c..b1f447f 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,7 @@ java { group = 'com.pipedream' -version = '0.0.256' +version = '0.0.263' jar { dependsOn(":generatePomFileForMavenPublication") @@ -79,7 +79,7 @@ publishing { maven(MavenPublication) { groupId = 'com.pipedream' artifactId = 'pipedream' - version = '0.0.256' + version = '0.0.263' from components.java pom { name = 'pipedream' diff --git a/reference.md b/reference.md index 42da24f..65ccf59 100644 --- a/reference.md +++ b/reference.md @@ -2289,7 +2289,7 @@ client.projects().retrieveInfo("project_id"); ## Proxy -
client.proxy.get(url, request) -> Object +
client.proxy.get(projectId, url64) -> Object
@@ -2303,7 +2303,8 @@ client.projects().retrieveInfo("project_id"); ```java client.proxy().get( - "https://api.example.com/endpoint", + "project_id", + "url_64", ProxyGetRequest .builder() .externalUserId("external_user_id") @@ -2324,7 +2325,15 @@ client.proxy().get(
-**url:** `String` — The target URL to proxy the request to +**projectId:** `String` — The project ID, which starts with 'proj_'. + +
+
+ +
+
+ +**url64:** `String` — Base64-encoded target URL
@@ -2347,19 +2356,12 @@ client.proxy().get(
-#### 📄 Response - -The proxy methods intelligently handle responses: -- **JSON responses**: Automatically parsed and returned as structured objects -- **Non-JSON responses**: Returned as raw strings (HTML, XML, plain text, etc.) -- **Empty responses**: Return `null` -
-
client.proxy.post(url, request) -> Object +
client.proxy.post(projectId, url64, request) -> Object
@@ -2373,7 +2375,8 @@ The proxy methods intelligently handle responses: ```java client.proxy().post( - "https://api.example.com/endpoint", + "project_id", + "url_64", ProxyPostRequest .builder() .externalUserId("external_user_id") @@ -2399,7 +2402,15 @@ client.proxy().post(
-**url:** `String` — The target URL to proxy the request to +**projectId:** `String` — The project ID, which starts with 'proj_'. + +
+
+ +
+
+ +**url64:** `String` — Base64-encoded target URL
@@ -2435,7 +2446,7 @@ client.proxy().post(
-
client.proxy.put(url, request) -> Object +
client.proxy.put(projectId, url64, request) -> Object
@@ -2449,7 +2460,8 @@ client.proxy().post( ```java client.proxy().put( - "https://api.example.com/endpoint", + "project_id", + "url_64", ProxyPutRequest .builder() .externalUserId("external_user_id") @@ -2475,7 +2487,15 @@ client.proxy().put(
-**url:** `String` — The target URL to proxy the request to +**projectId:** `String` — The project ID, which starts with 'proj_'. + +
+
+ +
+
+ +**url64:** `String` — Base64-encoded target URL
@@ -2511,7 +2531,7 @@ client.proxy().put(
-
client.proxy.delete(url, request) -> Object +
client.proxy.delete(projectId, url64) -> Object
@@ -2525,7 +2545,8 @@ client.proxy().put( ```java client.proxy().delete( - "https://api.example.com/endpoint", + "project_id", + "url_64", ProxyDeleteRequest .builder() .externalUserId("external_user_id") @@ -2546,7 +2567,15 @@ client.proxy().delete(
-**url:** `String` — The target URL to proxy the request to +**projectId:** `String` — The project ID, which starts with 'proj_'. + +
+
+ +
+
+ +**url64:** `String` — Base64-encoded target URL
@@ -2574,7 +2603,7 @@ client.proxy().delete(
-
client.proxy.patch(url, request) -> Object +
client.proxy.patch(projectId, url64, request) -> Object
@@ -2588,7 +2617,8 @@ client.proxy().delete( ```java client.proxy().patch( - "https://api.example.com/endpoint", + "project_id", + "url_64", ProxyPatchRequest .builder() .externalUserId("external_user_id") @@ -2614,7 +2644,15 @@ client.proxy().patch(
-**url:** `String` — The target URL to proxy the request to +**projectId:** `String` — The project ID, which starts with 'proj_'. + +
+
+ +
+
+ +**url64:** `String` — Base64-encoded target URL
@@ -2795,205 +2833,6 @@ client.tokens().validate(
- - -
- -## Workflows -
client.workflows.invoke(urlOrEndpoint) -> Object -
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -// Simple workflow invocation (uses OAuth authentication by default) -client.workflows().invoke("eo3xxxx"); - -// Advanced workflow invocation with all options -client.workflows().invoke( - InvokeWorkflowOpts - .builder() - .urlOrEndpoint("https://eo3xxxx.m.pipedream.net") - .body( - new HashMap() {{ - put("name", "John Doe"); - put("email", "john@example.com"); - }} - ) - .headers( - new HashMap() {{ - put("Content-Type", "application/json"); - put("Authorization", "Bearer your-token"); // For STATIC_BEARER auth - }} - ) - .method("POST") - .authType(HTTPAuthType.STATIC_BEARER) - .build() -); -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**urlOrEndpoint:** `String` — Either a workflow endpoint ID (e.g., 'eo3xxxx') or a full workflow URL - -
-
- -
-
- -**body:** `Optional` — Request body to send to the workflow (will be JSON serialized) - - - - -
-
- -**headers:** `Optional>` — Additional headers to include in the request - -
-
- -
-
- -**method:** `Optional` — HTTP method to use (defaults to 'POST') - -
-
- -
-
- -**authType:** `Optional` — Authentication type: OAUTH (default), STATIC_BEARER, or NONE - -
-
- - - - - - - - -
client.workflows.invokeForExternalUser(urlOrEndpoint, externalUserId) -> Object -
-
- -#### 🔌 Usage - -
-
- -
-
- -```java -// Simple external user invocation (uses OAuth authentication by default) -client.workflows().invokeForExternalUser("eo3xxxx", "user123"); - -// Advanced external user invocation with all options -client.workflows().invokeForExternalUser( - InvokeWorkflowForExternalUserOpts - .builder() - .url("https://eo3xxxx.m.pipedream.net") - .externalUserId("user123") - .body( - new HashMap() {{ - put("action", "process_data"); - put("data", Arrays.asList("item1", "item2")); - }} - ) - .headers( - new HashMap() {{ - put("X-Custom-Header", "value"); - }} - ) - .method("POST") - .authType(HTTPAuthType.OAUTH) - .build() -); -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**url:** `String` — The full workflow URL to invoke - -
-
- -
-
- -**externalUserId:** `String` — The external user ID for Pipedream Connect authentication - -
-
- -
-
- -**body:** `Optional` — Request body to send to the workflow (will be JSON serialized) - - - - -
-
- -**headers:** `Optional>` — Additional headers to include in the request - -
-
- -
-
- -**method:** `Optional` — HTTP method to use (defaults to 'POST') - -
-
- -
-
- -**authType:** `Optional` — Authentication type: OAUTH (default), STATIC_BEARER, or NONE - -
-
- - - - diff --git a/src/main/java/com/pipedream/api/core/ClientOptions.java b/src/main/java/com/pipedream/api/core/ClientOptions.java index 2e7459a..35b82f9 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.263"); } }); this.headerSuppliers = headerSuppliers;