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
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"retry-status-codes": "legacy"
},
"originGitCommit": "0154aca6f568afe2b2c183a43a8454aa86412754",
"originGitCommit": "2cfeacf4b1fa126397a26dacb7d6170d46cccd06",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github",
"sdkVersion": "2.1.0"
}
"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
45 changes: 45 additions & 0 deletions src/main/java/com/pipedream/api/types/ValidateTokenResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public final class ValidateTokenResponse {

private final Optional<String> oauthAppId;

private final Optional<Boolean> oauthAppWorkdayOfficial;

private final Optional<String> projectAppName;

private final Optional<String> projectEnvironment;
Expand All @@ -47,6 +49,7 @@ private ValidateTokenResponse(
Optional<String> error,
Optional<String> errorRedirectUri,
Optional<String> oauthAppId,
Optional<Boolean> oauthAppWorkdayOfficial,
Optional<String> projectAppName,
Optional<String> projectEnvironment,
Optional<String> projectId,
Expand All @@ -58,6 +61,7 @@ private ValidateTokenResponse(
this.error = error;
this.errorRedirectUri = errorRedirectUri;
this.oauthAppId = oauthAppId;
this.oauthAppWorkdayOfficial = oauthAppWorkdayOfficial;
this.projectAppName = projectAppName;
this.projectEnvironment = projectEnvironment;
this.projectId = projectId;
Expand Down Expand Up @@ -96,6 +100,14 @@ public Optional<String> getOauthAppId() {
return oauthAppId;
}

/**
* @return True when the resolved OAuth client is the app's Workday-official client
*/
@JsonProperty("oauth_app_workday_official")
public Optional<Boolean> getOauthAppWorkdayOfficial() {
return oauthAppWorkdayOfficial;
}

/**
* @return Name of the project app
*/
Expand Down Expand Up @@ -160,6 +172,7 @@ private boolean equalTo(ValidateTokenResponse other) {
&& error.equals(other.error)
&& errorRedirectUri.equals(other.errorRedirectUri)
&& oauthAppId.equals(other.oauthAppId)
&& oauthAppWorkdayOfficial.equals(other.oauthAppWorkdayOfficial)
&& projectAppName.equals(other.projectAppName)
&& projectEnvironment.equals(other.projectEnvironment)
&& projectId.equals(other.projectId)
Expand All @@ -175,6 +188,7 @@ public int hashCode() {
this.error,
this.errorRedirectUri,
this.oauthAppId,
this.oauthAppWorkdayOfficial,
this.projectAppName,
this.projectEnvironment,
this.projectId,
Expand Down Expand Up @@ -233,6 +247,13 @@ public interface _FinalStage {

_FinalStage oauthAppId(String oauthAppId);

/**
* <p>True when the resolved OAuth client is the app's Workday-official client</p>
*/
_FinalStage oauthAppWorkdayOfficial(Optional<Boolean> oauthAppWorkdayOfficial);

_FinalStage oauthAppWorkdayOfficial(Boolean oauthAppWorkdayOfficial);

/**
* <p>Name of the project app</p>
*/
Expand Down Expand Up @@ -283,6 +304,8 @@ public static final class Builder implements SuccessStage, _FinalStage {

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

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

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

private Optional<String> errorRedirectUri = Optional.empty();
Expand All @@ -302,6 +325,7 @@ public Builder from(ValidateTokenResponse other) {
error(other.getError());
errorRedirectUri(other.getErrorRedirectUri());
oauthAppId(other.getOauthAppId());
oauthAppWorkdayOfficial(other.getOauthAppWorkdayOfficial());
projectAppName(other.getProjectAppName());
projectEnvironment(other.getProjectEnvironment());
projectId(other.getProjectId());
Expand Down Expand Up @@ -423,6 +447,26 @@ public _FinalStage projectAppName(Optional<String> projectAppName) {
return this;
}

/**
* <p>True when the resolved OAuth client is the app's Workday-official client</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage oauthAppWorkdayOfficial(Boolean oauthAppWorkdayOfficial) {
this.oauthAppWorkdayOfficial = Optional.ofNullable(oauthAppWorkdayOfficial);
return this;
}

/**
* <p>True when the resolved OAuth client is the app's Workday-official client</p>
*/
@java.lang.Override
@JsonSetter(value = "oauth_app_workday_official", nulls = Nulls.SKIP)
public _FinalStage oauthAppWorkdayOfficial(Optional<Boolean> oauthAppWorkdayOfficial) {
this.oauthAppWorkdayOfficial = oauthAppWorkdayOfficial;
return this;
}

/**
* <p>OAuth app ID if applicable</p>
* @return Reference to {@code this} so that method calls can be chained together.
Expand Down Expand Up @@ -503,6 +547,7 @@ public ValidateTokenResponse build() {
error,
errorRedirectUri,
oauthAppId,
oauthAppWorkdayOfficial,
projectAppName,
projectEnvironment,
projectId,
Expand Down
Loading