Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gradle/8.14.3/checksums/checksums.lock
Binary file not shown.
Binary file modified .gradle/8.14.3/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/checksums/sha1-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.14.3/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 1 addition & 1 deletion .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Thu Jul 17 20:22:15 UTC 2025
#Thu Jul 17 22:51:20 UTC 2025
gradle.version=8.14.3
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.pipedream</groupId>
<artifactId>pipedream</artifactId>
<version>0.0.190</version>
<version>0.0.193</version>
</dependency>
```

Expand All @@ -52,8 +52,6 @@ public class Example {
CreateAccountRequest
.builder()
.appSlug("app_slug")
.cfmapJson("cfmap_json")
.connectToken("connect_token")
.build()
);
}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ java {

group = 'com.pipedream'

version = '0.0.190'
version = '0.0.193'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -77,7 +77,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '0.0.190'
version = '0.0.193'
from components.java
pom {
name = 'pipedream'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.190");
put("X-Fern-SDK-Version", "0.0.193");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ public CompletableFuture<PipedreamApiHttpResponse<Account>> create(
}
Map<String, Object> properties = new HashMap<>();
properties.put("app_slug", request.getAppSlug());
properties.put("cfmap_json", request.getCfmapJson());
properties.put("connect_token", request.getConnectToken());
if (request.getCfmapJson().isPresent()) {
properties.put("cfmap_json", request.getCfmapJson());
}
if (request.getName().isPresent()) {
properties.put("name", request.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ public PipedreamApiHttpResponse<Account> create(CreateAccountRequest request, Re
}
Map<String, Object> properties = new HashMap<>();
properties.put("app_slug", request.getAppSlug());
properties.put("cfmap_json", request.getCfmapJson());
properties.put("connect_token", request.getConnectToken());
if (request.getCfmapJson().isPresent()) {
properties.put("cfmap_json", request.getCfmapJson());
}
if (request.getName().isPresent()) {
properties.put("name", request.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ public final class CreateAccountRequest {

private final String appSlug;

private final String cfmapJson;

private final String connectToken;
private final Optional<String> cfmapJson;

private final Optional<String> name;

Expand All @@ -42,16 +40,14 @@ private CreateAccountRequest(
Optional<String> externalUserId,
Optional<String> oauthAppId,
String appSlug,
String cfmapJson,
String connectToken,
Optional<String> cfmapJson,
Optional<String> name,
Map<String, Object> additionalProperties) {
this.appId = appId;
this.externalUserId = externalUserId;
this.oauthAppId = oauthAppId;
this.appSlug = appSlug;
this.cfmapJson = cfmapJson;
this.connectToken = connectToken;
this.name = name;
this.additionalProperties = additionalProperties;
}
Expand Down Expand Up @@ -89,18 +85,10 @@ public String getAppSlug() {
* @return JSON string containing the custom fields mapping
*/
@JsonProperty("cfmap_json")
public String getCfmapJson() {
public Optional<String> getCfmapJson() {
return cfmapJson;
}

/**
* @return The connect token for authentication
*/
@JsonProperty("connect_token")
public String getConnectToken() {
return connectToken;
}

/**
* @return Optional name for the account
*/
Expand All @@ -126,20 +114,12 @@ private boolean equalTo(CreateAccountRequest other) {
&& oauthAppId.equals(other.oauthAppId)
&& appSlug.equals(other.appSlug)
&& cfmapJson.equals(other.cfmapJson)
&& connectToken.equals(other.connectToken)
&& name.equals(other.name);
}

@java.lang.Override
public int hashCode() {
return Objects.hash(
this.appId,
this.externalUserId,
this.oauthAppId,
this.appSlug,
this.cfmapJson,
this.connectToken,
this.name);
return Objects.hash(this.appId, this.externalUserId, this.oauthAppId, this.appSlug, this.cfmapJson, this.name);
}

@java.lang.Override
Expand All @@ -155,25 +135,11 @@ public interface AppSlugStage {
/**
* <p>The app slug for the account</p>
*/
CfmapJsonStage appSlug(@NotNull String appSlug);
_FinalStage appSlug(@NotNull String appSlug);

Builder from(CreateAccountRequest other);
}

public interface CfmapJsonStage {
/**
* <p>JSON string containing the custom fields mapping</p>
*/
ConnectTokenStage cfmapJson(@NotNull String cfmapJson);
}

public interface ConnectTokenStage {
/**
* <p>The connect token for authentication</p>
*/
_FinalStage connectToken(@NotNull String connectToken);
}

public interface _FinalStage {
CreateAccountRequest build();

Expand All @@ -195,6 +161,13 @@ public interface _FinalStage {

_FinalStage oauthAppId(String oauthAppId);

/**
* <p>JSON string containing the custom fields mapping</p>
*/
_FinalStage cfmapJson(Optional<String> cfmapJson);

_FinalStage cfmapJson(String cfmapJson);

/**
* <p>Optional name for the account</p>
*/
Expand All @@ -204,15 +177,13 @@ public interface _FinalStage {
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder implements AppSlugStage, CfmapJsonStage, ConnectTokenStage, _FinalStage {
public static final class Builder implements AppSlugStage, _FinalStage {
private String appSlug;

private String cfmapJson;

private String connectToken;

private Optional<String> name = Optional.empty();

private Optional<String> cfmapJson = Optional.empty();

private Optional<String> oauthAppId = Optional.empty();

private Optional<String> externalUserId = Optional.empty();
Expand All @@ -231,7 +202,6 @@ public Builder from(CreateAccountRequest other) {
oauthAppId(other.getOauthAppId());
appSlug(other.getAppSlug());
cfmapJson(other.getCfmapJson());
connectToken(other.getConnectToken());
name(other.getName());
return this;
}
Expand All @@ -243,52 +213,48 @@ public Builder from(CreateAccountRequest other) {
*/
@java.lang.Override
@JsonSetter("app_slug")
public CfmapJsonStage appSlug(@NotNull String appSlug) {
public _FinalStage appSlug(@NotNull String appSlug) {
this.appSlug = Objects.requireNonNull(appSlug, "appSlug must not be null");
return this;
}

/**
* <p>JSON string containing the custom fields mapping</p>
* <p>JSON string containing the custom fields mapping</p>
* <p>Optional name for the account</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
@JsonSetter("cfmap_json")
public ConnectTokenStage cfmapJson(@NotNull String cfmapJson) {
this.cfmapJson = Objects.requireNonNull(cfmapJson, "cfmapJson must not be null");
public _FinalStage name(String name) {
this.name = Optional.ofNullable(name);
return this;
}

/**
* <p>The connect token for authentication</p>
* <p>The connect token for authentication</p>
* @return Reference to {@code this} so that method calls can be chained together.
* <p>Optional name for the account</p>
*/
@java.lang.Override
@JsonSetter("connect_token")
public _FinalStage connectToken(@NotNull String connectToken) {
this.connectToken = Objects.requireNonNull(connectToken, "connectToken must not be null");
@JsonSetter(value = "name", nulls = Nulls.SKIP)
public _FinalStage name(Optional<String> name) {
this.name = name;
return this;
}

/**
* <p>Optional name for the account</p>
* <p>JSON string containing the custom fields mapping</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage name(String name) {
this.name = Optional.ofNullable(name);
public _FinalStage cfmapJson(String cfmapJson) {
this.cfmapJson = Optional.ofNullable(cfmapJson);
return this;
}

/**
* <p>Optional name for the account</p>
* <p>JSON string containing the custom fields mapping</p>
*/
@java.lang.Override
@JsonSetter(value = "name", nulls = Nulls.SKIP)
public _FinalStage name(Optional<String> name) {
this.name = name;
@JsonSetter(value = "cfmap_json", nulls = Nulls.SKIP)
public _FinalStage cfmapJson(Optional<String> cfmapJson) {
this.cfmapJson = cfmapJson;
return this;
}

Expand Down Expand Up @@ -348,7 +314,7 @@ public _FinalStage appId(Optional<String> appId) {
@java.lang.Override
public CreateAccountRequest build() {
return new CreateAccountRequest(
appId, externalUserId, oauthAppId, appSlug, cfmapJson, connectToken, name, additionalProperties);
appId, externalUserId, oauthAppId, appSlug, cfmapJson, name, additionalProperties);
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/pipedream/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.190");
put("X-Fern-SDK-Version", "0.0.193");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ public CompletableFuture<PipedreamApiHttpResponse<Account>> create(
}
Map<String, Object> properties = new HashMap<>();
properties.put("app_slug", request.getAppSlug());
properties.put("cfmap_json", request.getCfmapJson());
properties.put("connect_token", request.getConnectToken());
if (request.getCfmapJson().isPresent()) {
properties.put("cfmap_json", request.getCfmapJson());
}
if (request.getName().isPresent()) {
properties.put("name", request.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ public PipedreamApiHttpResponse<Account> create(CreateAccountRequest request, Re
}
Map<String, Object> properties = new HashMap<>();
properties.put("app_slug", request.getAppSlug());
properties.put("cfmap_json", request.getCfmapJson());
properties.put("connect_token", request.getConnectToken());
if (request.getCfmapJson().isPresent()) {
properties.put("cfmap_json", request.getCfmapJson());
}
if (request.getName().isPresent()) {
properties.put("name", request.getName());
}
Expand Down
Loading