From e5baa7c2707ff50678b4a6ed5ee4d58d1ff36a5f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:29:17 +0000 Subject: [PATCH] SDK regeneration --- README.md | 4 +- build.gradle | 4 +- .../com/pipedream/api/core/ClientOptions.java | 4 +- .../java/com/pipedream/api/types/Account.java | 46 +++++++++ .../api/types/ConfigurablePropDir.java | 81 +++++++++++++++- .../types/ConfigurablePropDirAccessMode.java | 95 +++++++++++++++++++ 6 files changed, 226 insertions(+), 8 deletions(-) create mode 100644 src/main/java/com/pipedream/api/types/ConfigurablePropDirAccessMode.java diff --git a/README.md b/README.md index 8e54fe2..69021da 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Add the dependency in your `build.gradle` file: ```groovy dependencies { - implementation 'com.pipedream:pipedream:1.1.11' + implementation 'com.pipedream:pipedream:1.1.12' } ``` @@ -40,7 +40,7 @@ Add the dependency in your `pom.xml` file: com.pipedream pipedream - 1.1.11 + 1.1.12 ``` diff --git a/build.gradle b/build.gradle index 3425408..0a47fe9 100644 --- a/build.gradle +++ b/build.gradle @@ -49,7 +49,7 @@ java { group = 'com.pipedream' -version = '1.1.11' +version = '1.1.12' jar { dependsOn(":generatePomFileForMavenPublication") @@ -80,7 +80,7 @@ publishing { maven(MavenPublication) { groupId = 'com.pipedream' artifactId = 'pipedream' - version = '1.1.11' + version = '1.1.12' from components.java pom { name = 'pipedream' diff --git a/src/main/java/com/pipedream/api/core/ClientOptions.java b/src/main/java/com/pipedream/api/core/ClientOptions.java index 47e6838..abda75d 100644 --- a/src/main/java/com/pipedream/api/core/ClientOptions.java +++ b/src/main/java/com/pipedream/api/core/ClientOptions.java @@ -35,10 +35,10 @@ private ClientOptions( this.headers.putAll(headers); this.headers.putAll(new HashMap() { { - put("User-Agent", "com.pipedream:pipedream/1.1.11"); + put("User-Agent", "com.pipedream:pipedream/1.1.12"); put("X-Fern-Language", "JAVA"); put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk"); - put("X-Fern-SDK-Version", "1.1.11"); + put("X-Fern-SDK-Version", "1.1.12"); } }); this.headerSuppliers = headerSuppliers; diff --git a/src/main/java/com/pipedream/api/types/Account.java b/src/main/java/com/pipedream/api/types/Account.java index 90f3867..d305a39 100644 --- a/src/main/java/com/pipedream/api/types/Account.java +++ b/src/main/java/com/pipedream/api/types/Account.java @@ -14,6 +14,7 @@ import com.pipedream.api.core.ObjectMappers; import java.time.OffsetDateTime; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; @@ -38,6 +39,8 @@ public final class Account { private final Optional updatedAt; + private final Optional> authorizedScopes; + private final Optional credentials; private final Optional expiresAt; @@ -59,6 +62,7 @@ private Account( Optional app, Optional createdAt, Optional updatedAt, + Optional> authorizedScopes, Optional credentials, Optional expiresAt, Optional error, @@ -73,6 +77,7 @@ private Account( this.app = app; this.createdAt = createdAt; this.updatedAt = updatedAt; + this.authorizedScopes = authorizedScopes; this.credentials = credentials; this.expiresAt = expiresAt; this.error = error; @@ -139,6 +144,14 @@ public Optional getUpdatedAt() { return updatedAt; } + /** + * @return The OAuth scopes effectively granted to this account. Empty for non-OAuth apps. + */ + @JsonProperty("authorized_scopes") + public Optional> getAuthorizedScopes() { + return authorizedScopes; + } + /** * @return The credentials associated with the account, if the include_credentials parameter was set to true in the request (only applicable for BYOA apps). In addition to the well-known OAuth fields listed below, this object may contain app-specific custom fields (e.g. base_url). */ @@ -199,6 +212,7 @@ private boolean equalTo(Account other) { && app.equals(other.app) && createdAt.equals(other.createdAt) && updatedAt.equals(other.updatedAt) + && authorizedScopes.equals(other.authorizedScopes) && credentials.equals(other.credentials) && expiresAt.equals(other.expiresAt) && error.equals(other.error) @@ -217,6 +231,7 @@ public int hashCode() { this.app, this.createdAt, this.updatedAt, + this.authorizedScopes, this.credentials, this.expiresAt, this.error, @@ -288,6 +303,13 @@ public interface _FinalStage { _FinalStage updatedAt(OffsetDateTime updatedAt); + /** + *

The OAuth scopes effectively granted to this account. Empty for non-OAuth apps.

+ */ + _FinalStage authorizedScopes(Optional> authorizedScopes); + + _FinalStage authorizedScopes(List authorizedScopes); + /** *

The credentials associated with the account, if the include_credentials parameter was set to true in the request (only applicable for BYOA apps). In addition to the well-known OAuth fields listed below, this object may contain app-specific custom fields (e.g. base_url).

*/ @@ -338,6 +360,8 @@ public static final class Builder implements IdStage, _FinalStage { private Optional credentials = Optional.empty(); + private Optional> authorizedScopes = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Optional createdAt = Optional.empty(); @@ -367,6 +391,7 @@ public Builder from(Account other) { app(other.getApp()); createdAt(other.getCreatedAt()); updatedAt(other.getUpdatedAt()); + authorizedScopes(other.getAuthorizedScopes()); credentials(other.getCredentials()); expiresAt(other.getExpiresAt()); error(other.getError()); @@ -482,6 +507,26 @@ public _FinalStage credentials(Optional credentials) { return this; } + /** + *

The OAuth scopes effectively granted to this account. Empty for non-OAuth apps.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizedScopes(List authorizedScopes) { + this.authorizedScopes = Optional.ofNullable(authorizedScopes); + return this; + } + + /** + *

The OAuth scopes effectively granted to this account. Empty for non-OAuth apps.

+ */ + @java.lang.Override + @JsonSetter(value = "authorized_scopes", nulls = Nulls.SKIP) + public _FinalStage authorizedScopes(Optional> authorizedScopes) { + this.authorizedScopes = authorizedScopes; + return this; + } + /** *

The date and time the account was last updated, an ISO 8601 formatted string

* @return Reference to {@code this} so that method calls can be chained together. @@ -626,6 +671,7 @@ public Account build() { app, createdAt, updatedAt, + authorizedScopes, credentials, expiresAt, error, diff --git a/src/main/java/com/pipedream/api/types/ConfigurablePropDir.java b/src/main/java/com/pipedream/api/types/ConfigurablePropDir.java index 2cb4de6..4db0c4a 100644 --- a/src/main/java/com/pipedream/api/types/ConfigurablePropDir.java +++ b/src/main/java/com/pipedream/api/types/ConfigurablePropDir.java @@ -43,6 +43,10 @@ public final class ConfigurablePropDir implements IConfigurablePropBase { private final Optional withLabel; + private final Optional accessMode; + + private final Optional sync; + private final Map additionalProperties; private ConfigurablePropDir( @@ -57,6 +61,8 @@ private ConfigurablePropDir( Optional useQuery, Optional reloadProps, Optional withLabel, + Optional accessMode, + Optional sync, Map additionalProperties) { this.name = name; this.label = label; @@ -69,6 +75,8 @@ private ConfigurablePropDir( this.useQuery = useQuery; this.reloadProps = reloadProps; this.withLabel = withLabel; + this.accessMode = accessMode; + this.sync = sync; this.additionalProperties = additionalProperties; } @@ -171,6 +179,19 @@ public Optional getWithLabel() { return withLabel; } + @JsonProperty("accessMode") + public Optional getAccessMode() { + return accessMode; + } + + /** + * @return If true, the component's /tmp directory is synchronized with File Stash + */ + @JsonProperty("sync") + public Optional getSync() { + return sync; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -193,7 +214,9 @@ private boolean equalTo(ConfigurablePropDir other) { && remoteOptions.equals(other.remoteOptions) && useQuery.equals(other.useQuery) && reloadProps.equals(other.reloadProps) - && withLabel.equals(other.withLabel); + && withLabel.equals(other.withLabel) + && accessMode.equals(other.accessMode) + && sync.equals(other.sync); } @java.lang.Override @@ -209,7 +232,9 @@ public int hashCode() { this.remoteOptions, this.useQuery, this.reloadProps, - this.withLabel); + this.withLabel, + this.accessMode, + this.sync); } @java.lang.Override @@ -302,12 +327,27 @@ public interface _FinalStage { _FinalStage withLabel(Optional withLabel); _FinalStage withLabel(Boolean withLabel); + + _FinalStage accessMode(Optional accessMode); + + _FinalStage accessMode(ConfigurablePropDirAccessMode accessMode); + + /** + *

If true, the component's /tmp directory is synchronized with File Stash

+ */ + _FinalStage sync(Optional sync); + + _FinalStage sync(Boolean sync); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements NameStage, _FinalStage { private String name; + private Optional sync = Optional.empty(); + + private Optional accessMode = Optional.empty(); + private Optional withLabel = Optional.empty(); private Optional reloadProps = Optional.empty(); @@ -346,6 +386,8 @@ public Builder from(ConfigurablePropDir other) { useQuery(other.getUseQuery()); reloadProps(other.getReloadProps()); withLabel(other.getWithLabel()); + accessMode(other.getAccessMode()); + sync(other.getSync()); return this; } @@ -361,6 +403,39 @@ public _FinalStage name(@NotNull String name) { return this; } + /** + *

If true, the component's /tmp directory is synchronized with File Stash

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sync(Boolean sync) { + this.sync = Optional.ofNullable(sync); + return this; + } + + /** + *

If true, the component's /tmp directory is synchronized with File Stash

+ */ + @java.lang.Override + @JsonSetter(value = "sync", nulls = Nulls.SKIP) + public _FinalStage sync(Optional sync) { + this.sync = sync; + return this; + } + + @java.lang.Override + public _FinalStage accessMode(ConfigurablePropDirAccessMode accessMode) { + this.accessMode = Optional.ofNullable(accessMode); + return this; + } + + @java.lang.Override + @JsonSetter(value = "accessMode", nulls = Nulls.SKIP) + public _FinalStage accessMode(Optional accessMode) { + this.accessMode = accessMode; + return this; + } + /** *

If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label

* @return Reference to {@code this} so that method calls can be chained together. @@ -575,6 +650,8 @@ public ConfigurablePropDir build() { useQuery, reloadProps, withLabel, + accessMode, + sync, additionalProperties); } } diff --git a/src/main/java/com/pipedream/api/types/ConfigurablePropDirAccessMode.java b/src/main/java/com/pipedream/api/types/ConfigurablePropDirAccessMode.java new file mode 100644 index 0000000..f83de66 --- /dev/null +++ b/src/main/java/com/pipedream/api/types/ConfigurablePropDirAccessMode.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.pipedream.api.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class ConfigurablePropDirAccessMode { + public static final ConfigurablePropDirAccessMode WRITE = new ConfigurablePropDirAccessMode(Value.WRITE, "write"); + + public static final ConfigurablePropDirAccessMode READ_WRITE = + new ConfigurablePropDirAccessMode(Value.READ_WRITE, "read-write"); + + public static final ConfigurablePropDirAccessMode READ = new ConfigurablePropDirAccessMode(Value.READ, "read"); + + private final Value value; + + private final String string; + + ConfigurablePropDirAccessMode(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof ConfigurablePropDirAccessMode + && this.string.equals(((ConfigurablePropDirAccessMode) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WRITE: + return visitor.visitWrite(); + case READ_WRITE: + return visitor.visitReadWrite(); + case READ: + return visitor.visitRead(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConfigurablePropDirAccessMode valueOf(String value) { + switch (value) { + case "write": + return WRITE; + case "read-write": + return READ_WRITE; + case "read": + return READ; + default: + return new ConfigurablePropDirAccessMode(Value.UNKNOWN, value); + } + } + + public enum Value { + READ, + + WRITE, + + READ_WRITE, + + UNKNOWN + } + + public interface Visitor { + T visitRead(); + + T visitWrite(); + + T visitReadWrite(); + + T visitUnknown(String unknownType); + } +}