Skip to content
Closed
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
Loading