diff --git a/.fern/metadata.json b/.fern/metadata.json index b960837..f22213b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -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" +} \ No newline at end of file diff --git a/.fern/replay.lock b/.fern/replay.lock index cc42665..d5f9136 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,5 +6,11 @@ generations: timestamp: 2026-05-19T23:19:48.346Z cli_version: unknown generator_versions: {} -current_generation: 93fd7063699edbf599967cbed5ad90943ff88a16 + - commit_sha: d9d9035630202e93e6aaab8397dd908ce3f426ef + tree_hash: 5a5881fbbc550a49c629a1eafd3783a5190abbd1 + timestamp: 2026-07-20T19:50:28.217Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.8.4 +current_generation: d9d9035630202e93e6aaab8397dd908ce3f426ef patches: [] diff --git a/README.md b/README.md index f2529a9..8f935d1 100644 --- a/README.md +++ b/README.md @@ -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' } ``` @@ -42,7 +42,7 @@ Add the dependency in your `pom.xml` file: com.pipedream pipedream - 2.1.0 + 2.1.1 ``` diff --git a/build.gradle b/build.gradle index 6d6eb8d..1fe1ce3 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,7 @@ java { group = 'com.pipedream' -version = '2.1.0' +version = '2.1.1' jar { dependsOn(":generatePomFileForMavenPublication") @@ -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' diff --git a/src/main/java/com/pipedream/api/core/ClientOptions.java b/src/main/java/com/pipedream/api/core/ClientOptions.java index 0d8862c..6071745 100644 --- a/src/main/java/com/pipedream/api/core/ClientOptions.java +++ b/src/main/java/com/pipedream/api/core/ClientOptions.java @@ -41,10 +41,10 @@ private ClientOptions( this.headers.putAll(headers); this.headers.putAll(new HashMap() { { - 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; diff --git a/src/main/java/com/pipedream/api/types/ValidateTokenResponse.java b/src/main/java/com/pipedream/api/types/ValidateTokenResponse.java index 887b8b4..2fda3df 100644 --- a/src/main/java/com/pipedream/api/types/ValidateTokenResponse.java +++ b/src/main/java/com/pipedream/api/types/ValidateTokenResponse.java @@ -28,6 +28,8 @@ public final class ValidateTokenResponse { private final Optional oauthAppId; + private final Optional oauthAppWorkdayOfficial; + private final Optional projectAppName; private final Optional projectEnvironment; @@ -47,6 +49,7 @@ private ValidateTokenResponse( Optional error, Optional errorRedirectUri, Optional oauthAppId, + Optional oauthAppWorkdayOfficial, Optional projectAppName, Optional projectEnvironment, Optional projectId, @@ -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; @@ -96,6 +100,14 @@ public Optional getOauthAppId() { return oauthAppId; } + /** + * @return True when the resolved OAuth client is the app's Workday-official client + */ + @JsonProperty("oauth_app_workday_official") + public Optional getOauthAppWorkdayOfficial() { + return oauthAppWorkdayOfficial; + } + /** * @return Name of the project app */ @@ -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) @@ -175,6 +188,7 @@ public int hashCode() { this.error, this.errorRedirectUri, this.oauthAppId, + this.oauthAppWorkdayOfficial, this.projectAppName, this.projectEnvironment, this.projectId, @@ -233,6 +247,13 @@ public interface _FinalStage { _FinalStage oauthAppId(String oauthAppId); + /** + *

True when the resolved OAuth client is the app's Workday-official client

+ */ + _FinalStage oauthAppWorkdayOfficial(Optional oauthAppWorkdayOfficial); + + _FinalStage oauthAppWorkdayOfficial(Boolean oauthAppWorkdayOfficial); + /** *

Name of the project app

*/ @@ -283,6 +304,8 @@ public static final class Builder implements SuccessStage, _FinalStage { private Optional projectAppName = Optional.empty(); + private Optional oauthAppWorkdayOfficial = Optional.empty(); + private Optional oauthAppId = Optional.empty(); private Optional errorRedirectUri = Optional.empty(); @@ -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()); @@ -423,6 +447,26 @@ public _FinalStage projectAppName(Optional projectAppName) { return this; } + /** + *

True when the resolved OAuth client is the app's Workday-official client

+ * @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; + } + + /** + *

True when the resolved OAuth client is the app's Workday-official client

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

OAuth app ID if applicable

* @return Reference to {@code this} so that method calls can be chained together. @@ -503,6 +547,7 @@ public ValidateTokenResponse build() { error, errorRedirectUri, oauthAppId, + oauthAppWorkdayOfficial, projectAppName, projectEnvironment, projectId,