Skip to content
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

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

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

group = 'com.pipedream'

version = '1.1.11'
version = '1.1.12'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -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'
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 @@ -35,10 +35,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
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;
Expand Down
46 changes: 46 additions & 0 deletions src/main/java/com/pipedream/api/types/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,6 +39,8 @@ public final class Account {

private final Optional<OffsetDateTime> updatedAt;

private final Optional<List<String>> authorizedScopes;

private final Optional<AccountCredentials> credentials;

private final Optional<OffsetDateTime> expiresAt;
Expand All @@ -59,6 +62,7 @@ private Account(
Optional<App> app,
Optional<OffsetDateTime> createdAt,
Optional<OffsetDateTime> updatedAt,
Optional<List<String>> authorizedScopes,
Optional<AccountCredentials> credentials,
Optional<OffsetDateTime> expiresAt,
Optional<String> error,
Expand All @@ -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;
Expand Down Expand Up @@ -139,6 +144,14 @@ public Optional<OffsetDateTime> getUpdatedAt() {
return updatedAt;
}

/**
* @return The OAuth scopes effectively granted to this account. Empty for non-OAuth apps.
*/
@JsonProperty("authorized_scopes")
public Optional<List<String>> getAuthorizedScopes() {
return authorizedScopes;
}

/**
* @return The credentials associated with the account, if the <code>include_credentials</code> 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. <code>base_url</code>).
*/
Expand Down Expand Up @@ -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)
Expand All @@ -217,6 +231,7 @@ public int hashCode() {
this.app,
this.createdAt,
this.updatedAt,
this.authorizedScopes,
this.credentials,
this.expiresAt,
this.error,
Expand Down Expand Up @@ -288,6 +303,13 @@ public interface _FinalStage {

_FinalStage updatedAt(OffsetDateTime updatedAt);

/**
* <p>The OAuth scopes effectively granted to this account. Empty for non-OAuth apps.</p>
*/
_FinalStage authorizedScopes(Optional<List<String>> authorizedScopes);

_FinalStage authorizedScopes(List<String> authorizedScopes);

/**
* <p>The credentials associated with the account, if the <code>include_credentials</code> 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. <code>base_url</code>).</p>
*/
Expand Down Expand Up @@ -338,6 +360,8 @@ public static final class Builder implements IdStage, _FinalStage {

private Optional<AccountCredentials> credentials = Optional.empty();

private Optional<List<String>> authorizedScopes = Optional.empty();

private Optional<OffsetDateTime> updatedAt = Optional.empty();

private Optional<OffsetDateTime> createdAt = Optional.empty();
Expand Down Expand Up @@ -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());
Expand Down Expand Up @@ -482,6 +507,26 @@ public _FinalStage credentials(Optional<AccountCredentials> credentials) {
return this;
}

/**
* <p>The OAuth scopes effectively granted to this account. Empty for non-OAuth apps.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage authorizedScopes(List<String> authorizedScopes) {
this.authorizedScopes = Optional.ofNullable(authorizedScopes);
return this;
}

/**
* <p>The OAuth scopes effectively granted to this account. Empty for non-OAuth apps.</p>
*/
@java.lang.Override
@JsonSetter(value = "authorized_scopes", nulls = Nulls.SKIP)
public _FinalStage authorizedScopes(Optional<List<String>> authorizedScopes) {
this.authorizedScopes = authorizedScopes;
return this;
}

/**
* <p>The date and time the account was last updated, an ISO 8601 formatted string</p>
* @return Reference to {@code this} so that method calls can be chained together.
Expand Down Expand Up @@ -626,6 +671,7 @@ public Account build() {
app,
createdAt,
updatedAt,
authorizedScopes,
credentials,
expiresAt,
error,
Expand Down
81 changes: 79 additions & 2 deletions src/main/java/com/pipedream/api/types/ConfigurablePropDir.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public final class ConfigurablePropDir implements IConfigurablePropBase {

private final Optional<Boolean> withLabel;

private final Optional<ConfigurablePropDirAccessMode> accessMode;

private final Optional<Boolean> sync;

private final Map<String, Object> additionalProperties;

private ConfigurablePropDir(
Expand All @@ -57,6 +61,8 @@ private ConfigurablePropDir(
Optional<Boolean> useQuery,
Optional<Boolean> reloadProps,
Optional<Boolean> withLabel,
Optional<ConfigurablePropDirAccessMode> accessMode,
Optional<Boolean> sync,
Map<String, Object> additionalProperties) {
this.name = name;
this.label = label;
Expand All @@ -69,6 +75,8 @@ private ConfigurablePropDir(
this.useQuery = useQuery;
this.reloadProps = reloadProps;
this.withLabel = withLabel;
this.accessMode = accessMode;
this.sync = sync;
this.additionalProperties = additionalProperties;
}

Expand Down Expand Up @@ -171,6 +179,19 @@ public Optional<Boolean> getWithLabel() {
return withLabel;
}

@JsonProperty("accessMode")
public Optional<ConfigurablePropDirAccessMode> getAccessMode() {
return accessMode;
}

/**
* @return If true, the component's /tmp directory is synchronized with File Stash
*/
@JsonProperty("sync")
public Optional<Boolean> getSync() {
return sync;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
Expand All @@ -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
Expand All @@ -209,7 +232,9 @@ public int hashCode() {
this.remoteOptions,
this.useQuery,
this.reloadProps,
this.withLabel);
this.withLabel,
this.accessMode,
this.sync);
}

@java.lang.Override
Expand Down Expand Up @@ -302,12 +327,27 @@ public interface _FinalStage {
_FinalStage withLabel(Optional<Boolean> withLabel);

_FinalStage withLabel(Boolean withLabel);

_FinalStage accessMode(Optional<ConfigurablePropDirAccessMode> accessMode);

_FinalStage accessMode(ConfigurablePropDirAccessMode accessMode);

/**
* <p>If true, the component's /tmp directory is synchronized with File Stash</p>
*/
_FinalStage sync(Optional<Boolean> sync);

_FinalStage sync(Boolean sync);
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder implements NameStage, _FinalStage {
private String name;

private Optional<Boolean> sync = Optional.empty();

private Optional<ConfigurablePropDirAccessMode> accessMode = Optional.empty();

private Optional<Boolean> withLabel = Optional.empty();

private Optional<Boolean> reloadProps = Optional.empty();
Expand Down Expand Up @@ -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;
}

Expand All @@ -361,6 +403,39 @@ public _FinalStage name(@NotNull String name) {
return this;
}

/**
* <p>If true, the component's /tmp directory is synchronized with File Stash</p>
* @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;
}

/**
* <p>If true, the component's /tmp directory is synchronized with File Stash</p>
*/
@java.lang.Override
@JsonSetter(value = "sync", nulls = Nulls.SKIP)
public _FinalStage sync(Optional<Boolean> 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<ConfigurablePropDirAccessMode> accessMode) {
this.accessMode = accessMode;
return this;
}

/**
* <p>If true, you must save the configured prop value as a &quot;label-value&quot; object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label</p>
* @return Reference to {@code this} so that method calls can be chained together.
Expand Down Expand Up @@ -575,6 +650,8 @@ public ConfigurablePropDir build() {
useQuery,
reloadProps,
withLabel,
accessMode,
sync,
additionalProperties);
}
}
Expand Down
Loading
Loading