Skip to content
Open
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
11 changes: 5 additions & 6 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
],
"retry-status-codes": "legacy"
},
"originGitCommit": "0154aca6f568afe2b2c183a43a8454aa86412754",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github",
"sdkVersion": "2.1.0"
}
"originGitCommit": "e486216779bf25a6e0373cbd18ea78968134cc6f",
"originGitCommitIsDirty": true,
"invokedBy": "manual",
"sdkVersion": "2.1.1"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the dependency in your `build.gradle` file:

```groovy
dependencies {
implementation 'com.pipedream:pipedream:2.1.0'
implementation 'com.pipedream:pipedream:2.1.1'
}
```

Expand All @@ -42,7 +42,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.pipedream</groupId>
<artifactId>pipedream</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ java {

group = 'com.pipedream'

version = '2.1.0'
version = '2.1.1'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -79,7 +79,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '2.1.0'
version = '2.1.1'
from components.java
pom {
name = 'pipedream'
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/pipedream/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.pipedream:pipedream/2.1.0");
put("User-Agent", "com.pipedream:pipedream/2.1.1");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
put("X-Fern-SDK-Version", "2.1.0");
put("X-Fern-SDK-Version", "2.1.1");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
32 changes: 32 additions & 0 deletions src/main/java/com/pipedream/api/errors/BadGatewayError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.pipedream.api.errors;

import com.pipedream.api.core.BaseClientApiException;
import okhttp3.Response;

public final class BadGatewayError extends BaseClientApiException {
/**
* The body of the response that triggered the exception.
*/
private final Object body;

public BadGatewayError(Object body) {
super("BadGatewayError", 502, body);
this.body = body;
}

public BadGatewayError(Object body, Response rawResponse) {
super("BadGatewayError", 502, body, rawResponse);
this.body = body;
}

/**
* @return the body
*/
@java.lang.Override
public Object body() {
return this.body;
}
}
32 changes: 32 additions & 0 deletions src/main/java/com/pipedream/api/errors/InternalServerError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.pipedream.api.errors;

import com.pipedream.api.core.BaseClientApiException;
import okhttp3.Response;

public final class InternalServerError extends BaseClientApiException {
/**
* The body of the response that triggered the exception.
*/
private final Object body;

public InternalServerError(Object body) {
super("InternalServerError", 500, body);
this.body = body;
}

public InternalServerError(Object body, Response rawResponse) {
super("InternalServerError", 500, body, rawResponse);
this.body = body;
}

/**
* @return the body
*/
@java.lang.Override
public Object body() {
return this.body;
}
}
33 changes: 33 additions & 0 deletions src/main/java/com/pipedream/api/errors/NotImplementedError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.pipedream.api.errors;

import com.pipedream.api.core.BaseClientApiException;
import com.pipedream.api.types.ErrorResponse;
import okhttp3.Response;

public final class NotImplementedError extends BaseClientApiException {
/**
* The body of the response that triggered the exception.
*/
private final ErrorResponse body;

public NotImplementedError(ErrorResponse body) {
super("NotImplementedError", 501, body);
this.body = body;
}

public NotImplementedError(ErrorResponse body, Response rawResponse) {
super("NotImplementedError", 501, body, rawResponse);
this.body = body;
}

/**
* @return the body
*/
@java.lang.Override
public ErrorResponse body() {
return this.body;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.pipedream.api.errors;

import com.pipedream.api.core.BaseClientApiException;
import com.pipedream.api.types.ErrorResponse;
import okhttp3.Response;

public final class ServiceUnavailableError extends BaseClientApiException {
/**
* The body of the response that triggered the exception.
*/
private final ErrorResponse body;

public ServiceUnavailableError(ErrorResponse body) {
super("ServiceUnavailableError", 503, body);
this.body = body;
}

public ServiceUnavailableError(ErrorResponse body, Response rawResponse) {
super("ServiceUnavailableError", 503, body, rawResponse);
this.body = body;
}

/**
* @return the body
*/
@java.lang.Override
public ErrorResponse body() {
return this.body;
}
}
32 changes: 32 additions & 0 deletions src/main/java/com/pipedream/api/errors/UnauthorizedError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.pipedream.api.errors;

import com.pipedream.api.core.BaseClientApiException;
import okhttp3.Response;

public final class UnauthorizedError extends BaseClientApiException {
/**
* The body of the response that triggered the exception.
*/
private final Object body;

public UnauthorizedError(Object body) {
super("UnauthorizedError", 401, body);
this.body = body;
}

public UnauthorizedError(Object body, Response rawResponse) {
super("UnauthorizedError", 401, body, rawResponse);
this.body = body;
}

/**
* @return the body
*/
@java.lang.Override
public Object body() {
return this.body;
}
}
49 changes: 29 additions & 20 deletions src/main/java/com/pipedream/api/resources/apps/AppsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
import com.pipedream.api.core.RequestOptions;
import com.pipedream.api.core.pagination.SyncPagingIterable;
import com.pipedream.api.resources.apps.requests.AppsListRequest;
import com.pipedream.api.types.App;
import com.pipedream.api.types.GetAppResponse;
import com.pipedream.api.types.AppDocument;
import com.pipedream.api.types.AppResponse;
import com.pipedream.api.types.FacetsResponse;

public class AppsClient {
protected final ClientOptions clientOptions;
Expand All @@ -27,45 +28,53 @@ public RawAppsClient withRawResponse() {
return this.rawClient;
}

/**
* Retrieve all available apps with optional filtering and sorting
*/
public SyncPagingIterable<App> list() {
public SyncPagingIterable<AppDocument> list() {
return this.rawClient.list().body();
}

/**
* Retrieve all available apps with optional filtering and sorting
*/
public SyncPagingIterable<App> list(RequestOptions requestOptions) {
public SyncPagingIterable<AppDocument> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).body();
}

public SyncPagingIterable<AppDocument> list(AppsListRequest request) {
return this.rawClient.list(request).body();
}

public SyncPagingIterable<AppDocument> list(AppsListRequest request, RequestOptions requestOptions) {
return this.rawClient.list(request, requestOptions).body();
}

/**
* Retrieve all available apps with optional filtering and sorting
* Mirrors <code>V1::AppsController#v2_facets</code> (<code>AppTypesenseSearch.facets</code>):
* returns <code>{ data: { category_name: [...], auth_type: [...] } }</code>.
*/
public SyncPagingIterable<App> list(AppsListRequest request) {
return this.rawClient.list(request).body();
public FacetsResponse facets() {
return this.rawClient.facets().body();
}

/**
* Retrieve all available apps with optional filtering and sorting
* Mirrors <code>V1::AppsController#v2_facets</code> (<code>AppTypesenseSearch.facets</code>):
* returns <code>{ data: { category_name: [...], auth_type: [...] } }</code>.
*/
public SyncPagingIterable<App> list(AppsListRequest request, RequestOptions requestOptions) {
return this.rawClient.list(request, requestOptions).body();
public FacetsResponse facets(RequestOptions requestOptions) {
return this.rawClient.facets(requestOptions).body();
}

/**
* Get detailed information about a specific app by ID or name slug
* Looks up a single app by hashid (e.g. <code>app_abc123</code>) or name_slug (e.g. <code>github</code>).
* If the value starts with <code>app_</code> it is treated as a hashid and matched against
* the document <code>id</code> field; otherwise it is matched against <code>name_slug</code>.
*/
public GetAppResponse retrieve(String appId) {
public AppResponse retrieve(String appId) {
return this.rawClient.retrieve(appId).body();
}

/**
* Get detailed information about a specific app by ID or name slug
* Looks up a single app by hashid (e.g. <code>app_abc123</code>) or name_slug (e.g. <code>github</code>).
* If the value starts with <code>app_</code> it is treated as a hashid and matched against
* the document <code>id</code> field; otherwise it is matched against <code>name_slug</code>.
*/
public GetAppResponse retrieve(String appId, RequestOptions requestOptions) {
public AppResponse retrieve(String appId, RequestOptions requestOptions) {
return this.rawClient.retrieve(appId, requestOptions).body();
}
}
Loading
Loading