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.12'
implementation 'com.pipedream:pipedream:1.1.13'
}
```

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.12</version>
<version>1.1.13</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.12'
version = '1.1.13'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -80,7 +80,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '1.1.12'
version = '1.1.13'
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.12");
put("User-Agent", "com.pipedream:pipedream/1.1.13");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
put("X-Fern-SDK-Version", "1.1.12");
put("X-Fern-SDK-Version", "1.1.13");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public final class CreateTokenOpts {

private final Optional<String> webhookUri;

private final Optional<Boolean> allowProgressiveScopes;

private final Map<String, Object> additionalProperties;

private CreateTokenOpts(
Expand All @@ -46,6 +48,7 @@ private CreateTokenOpts(
Optional<String> scope,
Optional<String> successRedirectUri,
Optional<String> webhookUri,
Optional<Boolean> allowProgressiveScopes,
Map<String, Object> additionalProperties) {
this.allowedOrigins = allowedOrigins;
this.errorRedirectUri = errorRedirectUri;
Expand All @@ -54,6 +57,7 @@ private CreateTokenOpts(
this.scope = scope;
this.successRedirectUri = successRedirectUri;
this.webhookUri = webhookUri;
this.allowProgressiveScopes = allowProgressiveScopes;
this.additionalProperties = additionalProperties;
}

Expand Down Expand Up @@ -113,6 +117,14 @@ public Optional<String> getWebhookUri() {
return webhookUri;
}

/**
* @return When true, end users may authorize a subset of the app's OAuth scopes; only the app's functional scopes (needed for the post-OAuth test request) are enforced. Defaults to false.
*/
@JsonProperty("allow_progressive_scopes")
public Optional<Boolean> getAllowProgressiveScopes() {
return allowProgressiveScopes;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
Expand All @@ -131,7 +143,8 @@ private boolean equalTo(CreateTokenOpts other) {
&& externalUserId.equals(other.externalUserId)
&& scope.equals(other.scope)
&& successRedirectUri.equals(other.successRedirectUri)
&& webhookUri.equals(other.webhookUri);
&& webhookUri.equals(other.webhookUri)
&& allowProgressiveScopes.equals(other.allowProgressiveScopes);
}

@java.lang.Override
Expand All @@ -143,7 +156,8 @@ public int hashCode() {
this.externalUserId,
this.scope,
this.successRedirectUri,
this.webhookUri);
this.webhookUri,
this.allowProgressiveScopes);
}

@java.lang.Override
Expand Down Expand Up @@ -208,12 +222,21 @@ public interface _FinalStage {
_FinalStage webhookUri(Optional<String> webhookUri);

_FinalStage webhookUri(String webhookUri);

/**
* <p>When true, end users may authorize a subset of the app's OAuth scopes; only the app's functional scopes (needed for the post-OAuth test request) are enforced. Defaults to false.</p>
*/
_FinalStage allowProgressiveScopes(Optional<Boolean> allowProgressiveScopes);

_FinalStage allowProgressiveScopes(Boolean allowProgressiveScopes);
}

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

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

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

private Optional<String> successRedirectUri = Optional.empty();
Expand All @@ -240,6 +263,7 @@ public Builder from(CreateTokenOpts other) {
scope(other.getScope());
successRedirectUri(other.getSuccessRedirectUri());
webhookUri(other.getWebhookUri());
allowProgressiveScopes(other.getAllowProgressiveScopes());
return this;
}

Expand All @@ -255,6 +279,26 @@ public _FinalStage externalUserId(@NotNull String externalUserId) {
return this;
}

/**
* <p>When true, end users may authorize a subset of the app's OAuth scopes; only the app's functional scopes (needed for the post-OAuth test request) are enforced. Defaults to false.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage allowProgressiveScopes(Boolean allowProgressiveScopes) {
this.allowProgressiveScopes = Optional.ofNullable(allowProgressiveScopes);
return this;
}

/**
* <p>When true, end users may authorize a subset of the app's OAuth scopes; only the app's functional scopes (needed for the post-OAuth test request) are enforced. Defaults to false.</p>
*/
@java.lang.Override
@JsonSetter(value = "allow_progressive_scopes", nulls = Nulls.SKIP)
public _FinalStage allowProgressiveScopes(Optional<Boolean> allowProgressiveScopes) {
this.allowProgressiveScopes = allowProgressiveScopes;
return this;
}

/**
* <p>Webhook URI for notifications</p>
* @return Reference to {@code this} so that method calls can be chained together.
Expand Down Expand Up @@ -385,6 +429,7 @@ public CreateTokenOpts build() {
scope,
successRedirectUri,
webhookUri,
allowProgressiveScopes,
additionalProperties);
}
}
Expand Down
Loading