Skip to content

Commit 77aa642

Browse files
SDK regeneration
1 parent a13dec5 commit 77aa642

34 files changed

+271
-68
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add the dependency in your `pom.xml` file:
4040
<dependency>
4141
<groupId>com.pipedream</groupId>
4242
<artifactId>pipedream</artifactId>
43-
<version>1.1.3</version>
43+
<version>1.1.4</version>
4444
</dependency>
4545
```
4646

@@ -119,7 +119,7 @@ try{
119119

120120
### Custom Client
121121

122-
This SDK is built to work with any instance of `OkHttpClient`. By default, if no client is provided, the SDK will construct one.
122+
This SDK is built to work with any instance of `OkHttpClient`. By default, if no client is provided, the SDK will construct one.
123123
However, you can pass your own client like so:
124124

125125
```java

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ java {
4949

5050
group = 'com.pipedream'
5151

52-
version = '1.1.3'
52+
version = '1.1.4'
5353

5454
jar {
5555
dependsOn(":generatePomFileForMavenPublication")
@@ -80,7 +80,7 @@ publishing {
8080
maven(MavenPublication) {
8181
groupId = 'com.pipedream'
8282
artifactId = 'pipedream'
83-
version = '1.1.3'
83+
version = '1.1.4'
8484
from components.java
8585
pom {
8686
name = 'pipedream'

src/main/java/com/pipedream/api/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ private ClientOptions(
3535
this.headers.putAll(headers);
3636
this.headers.putAll(new HashMap<String, String>() {
3737
{
38-
put("User-Agent", "com.pipedream:pipedream/1.1.3");
38+
put("User-Agent", "com.pipedream:pipedream/1.1.4");
3939
put("X-Fern-Language", "JAVA");
4040
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
41-
put("X-Fern-SDK-Version", "1.1.3");
41+
put("X-Fern-SDK-Version", "1.1.4");
4242
}
4343
});
4444
this.headerSuppliers = headerSuppliers;

src/main/java/com/pipedream/api/resources/apps/AsyncRawAppsClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ public CompletableFuture<BaseClientHttpResponse<SyncPagingIterable<App>>> list(
8282
QueryStringMapper.addQueryParameter(
8383
httpUrl, "sort_direction", request.getSortDirection().get(), false);
8484
}
85+
if (request.getHasComponents().isPresent()) {
86+
QueryStringMapper.addQueryParameter(
87+
httpUrl, "has_components", request.getHasComponents().get(), false);
88+
}
89+
if (request.getHasActions().isPresent()) {
90+
QueryStringMapper.addQueryParameter(
91+
httpUrl, "has_actions", request.getHasActions().get(), false);
92+
}
93+
if (request.getHasTriggers().isPresent()) {
94+
QueryStringMapper.addQueryParameter(
95+
httpUrl, "has_triggers", request.getHasTriggers().get(), false);
96+
}
8597
if (request.getCategoryIds().isPresent()) {
8698
QueryStringMapper.addQueryParameter(
8799
httpUrl, "category_ids", request.getCategoryIds().get(), true);

src/main/java/com/pipedream/api/resources/apps/RawAppsClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ public BaseClientHttpResponse<SyncPagingIterable<App>> list(
7777
QueryStringMapper.addQueryParameter(
7878
httpUrl, "sort_direction", request.getSortDirection().get(), false);
7979
}
80+
if (request.getHasComponents().isPresent()) {
81+
QueryStringMapper.addQueryParameter(
82+
httpUrl, "has_components", request.getHasComponents().get(), false);
83+
}
84+
if (request.getHasActions().isPresent()) {
85+
QueryStringMapper.addQueryParameter(
86+
httpUrl, "has_actions", request.getHasActions().get(), false);
87+
}
88+
if (request.getHasTriggers().isPresent()) {
89+
QueryStringMapper.addQueryParameter(
90+
httpUrl, "has_triggers", request.getHasTriggers().get(), false);
91+
}
8092
if (request.getCategoryIds().isPresent()) {
8193
QueryStringMapper.addQueryParameter(
8294
httpUrl, "category_ids", request.getCategoryIds().get(), true);

src/main/java/com/pipedream/api/resources/apps/requests/AppsListRequest.java

Lines changed: 112 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ public final class AppsListRequest {
3838

3939
private final Optional<AppsListRequestSortDirection> sortDirection;
4040

41+
private final Optional<Boolean> hasComponents;
42+
43+
private final Optional<Boolean> hasActions;
44+
45+
private final Optional<Boolean> hasTriggers;
46+
4147
private final Map<String, Object> additionalProperties;
4248

4349
private AppsListRequest(
@@ -48,6 +54,9 @@ private AppsListRequest(
4854
Optional<String> q,
4955
Optional<AppsListRequestSortKey> sortKey,
5056
Optional<AppsListRequestSortDirection> sortDirection,
57+
Optional<Boolean> hasComponents,
58+
Optional<Boolean> hasActions,
59+
Optional<Boolean> hasTriggers,
5160
Map<String, Object> additionalProperties) {
5261
this.categoryIds = categoryIds;
5362
this.after = after;
@@ -56,6 +65,9 @@ private AppsListRequest(
5665
this.q = q;
5766
this.sortKey = sortKey;
5867
this.sortDirection = sortDirection;
68+
this.hasComponents = hasComponents;
69+
this.hasActions = hasActions;
70+
this.hasTriggers = hasTriggers;
5971
this.additionalProperties = additionalProperties;
6072
}
6173

@@ -115,6 +127,30 @@ public Optional<AppsListRequestSortDirection> getSortDirection() {
115127
return sortDirection;
116128
}
117129

130+
/**
131+
* @return Filter to apps that have components (actions or triggers)
132+
*/
133+
@JsonProperty("has_components")
134+
public Optional<Boolean> getHasComponents() {
135+
return hasComponents;
136+
}
137+
138+
/**
139+
* @return Filter to apps that have actions
140+
*/
141+
@JsonProperty("has_actions")
142+
public Optional<Boolean> getHasActions() {
143+
return hasActions;
144+
}
145+
146+
/**
147+
* @return Filter to apps that have triggers
148+
*/
149+
@JsonProperty("has_triggers")
150+
public Optional<Boolean> getHasTriggers() {
151+
return hasTriggers;
152+
}
153+
118154
@java.lang.Override
119155
public boolean equals(Object other) {
120156
if (this == other) return true;
@@ -133,13 +169,25 @@ private boolean equalTo(AppsListRequest other) {
133169
&& limit.equals(other.limit)
134170
&& q.equals(other.q)
135171
&& sortKey.equals(other.sortKey)
136-
&& sortDirection.equals(other.sortDirection);
172+
&& sortDirection.equals(other.sortDirection)
173+
&& hasComponents.equals(other.hasComponents)
174+
&& hasActions.equals(other.hasActions)
175+
&& hasTriggers.equals(other.hasTriggers);
137176
}
138177

139178
@java.lang.Override
140179
public int hashCode() {
141180
return Objects.hash(
142-
this.categoryIds, this.after, this.before, this.limit, this.q, this.sortKey, this.sortDirection);
181+
this.categoryIds,
182+
this.after,
183+
this.before,
184+
this.limit,
185+
this.q,
186+
this.sortKey,
187+
this.sortDirection,
188+
this.hasComponents,
189+
this.hasActions,
190+
this.hasTriggers);
143191
}
144192

145193
@java.lang.Override
@@ -167,6 +215,12 @@ public static final class Builder {
167215

168216
private Optional<AppsListRequestSortDirection> sortDirection = Optional.empty();
169217

218+
private Optional<Boolean> hasComponents = Optional.empty();
219+
220+
private Optional<Boolean> hasActions = Optional.empty();
221+
222+
private Optional<Boolean> hasTriggers = Optional.empty();
223+
170224
@JsonAnySetter
171225
private Map<String, Object> additionalProperties = new HashMap<>();
172226

@@ -180,6 +234,9 @@ public Builder from(AppsListRequest other) {
180234
q(other.getQ());
181235
sortKey(other.getSortKey());
182236
sortDirection(other.getSortDirection());
237+
hasComponents(other.getHasComponents());
238+
hasActions(other.getHasActions());
239+
hasTriggers(other.getHasTriggers());
183240
return this;
184241
}
185242

@@ -286,9 +343,61 @@ public Builder sortDirection(AppsListRequestSortDirection sortDirection) {
286343
return this;
287344
}
288345

346+
/**
347+
* <p>Filter to apps that have components (actions or triggers)</p>
348+
*/
349+
@JsonSetter(value = "has_components", nulls = Nulls.SKIP)
350+
public Builder hasComponents(Optional<Boolean> hasComponents) {
351+
this.hasComponents = hasComponents;
352+
return this;
353+
}
354+
355+
public Builder hasComponents(Boolean hasComponents) {
356+
this.hasComponents = Optional.ofNullable(hasComponents);
357+
return this;
358+
}
359+
360+
/**
361+
* <p>Filter to apps that have actions</p>
362+
*/
363+
@JsonSetter(value = "has_actions", nulls = Nulls.SKIP)
364+
public Builder hasActions(Optional<Boolean> hasActions) {
365+
this.hasActions = hasActions;
366+
return this;
367+
}
368+
369+
public Builder hasActions(Boolean hasActions) {
370+
this.hasActions = Optional.ofNullable(hasActions);
371+
return this;
372+
}
373+
374+
/**
375+
* <p>Filter to apps that have triggers</p>
376+
*/
377+
@JsonSetter(value = "has_triggers", nulls = Nulls.SKIP)
378+
public Builder hasTriggers(Optional<Boolean> hasTriggers) {
379+
this.hasTriggers = hasTriggers;
380+
return this;
381+
}
382+
383+
public Builder hasTriggers(Boolean hasTriggers) {
384+
this.hasTriggers = Optional.ofNullable(hasTriggers);
385+
return this;
386+
}
387+
289388
public AppsListRequest build() {
290389
return new AppsListRequest(
291-
categoryIds, after, before, limit, q, sortKey, sortDirection, additionalProperties);
390+
categoryIds,
391+
after,
392+
before,
393+
limit,
394+
q,
395+
sortKey,
396+
sortDirection,
397+
hasComponents,
398+
hasActions,
399+
hasTriggers,
400+
additionalProperties);
292401
}
293402
}
294403
}

src/main/java/com/pipedream/api/resources/projects/requests/CreateProjectOpts.java

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@ public final class CreateProjectOpts {
2727

2828
private final Optional<String> supportEmail;
2929

30+
private final Optional<Boolean> connectRequireKeyAuthTest;
31+
3032
private final Map<String, Object> additionalProperties;
3133

3234
private CreateProjectOpts(
3335
String name,
3436
Optional<String> appName,
3537
Optional<String> supportEmail,
38+
Optional<Boolean> connectRequireKeyAuthTest,
3639
Map<String, Object> additionalProperties) {
3740
this.name = name;
3841
this.appName = appName;
3942
this.supportEmail = supportEmail;
43+
this.connectRequireKeyAuthTest = connectRequireKeyAuthTest;
4044
this.additionalProperties = additionalProperties;
4145
}
4246

@@ -64,6 +68,14 @@ public Optional<String> getSupportEmail() {
6468
return supportEmail;
6569
}
6670

71+
/**
72+
* @return Send a test request to the upstream API when adding Connect accounts for key-based apps
73+
*/
74+
@JsonProperty("connect_require_key_auth_test")
75+
public Optional<Boolean> getConnectRequireKeyAuthTest() {
76+
return connectRequireKeyAuthTest;
77+
}
78+
6779
@java.lang.Override
6880
public boolean equals(Object other) {
6981
if (this == other) return true;
@@ -76,12 +88,15 @@ public Map<String, Object> getAdditionalProperties() {
7688
}
7789

7890
private boolean equalTo(CreateProjectOpts other) {
79-
return name.equals(other.name) && appName.equals(other.appName) && supportEmail.equals(other.supportEmail);
91+
return name.equals(other.name)
92+
&& appName.equals(other.appName)
93+
&& supportEmail.equals(other.supportEmail)
94+
&& connectRequireKeyAuthTest.equals(other.connectRequireKeyAuthTest);
8095
}
8196

8297
@java.lang.Override
8398
public int hashCode() {
84-
return Objects.hash(this.name, this.appName, this.supportEmail);
99+
return Objects.hash(this.name, this.appName, this.supportEmail, this.connectRequireKeyAuthTest);
85100
}
86101

87102
@java.lang.Override
@@ -118,12 +133,21 @@ public interface _FinalStage {
118133
_FinalStage supportEmail(Optional<String> supportEmail);
119134

120135
_FinalStage supportEmail(String supportEmail);
136+
137+
/**
138+
* <p>Send a test request to the upstream API when adding Connect accounts for key-based apps</p>
139+
*/
140+
_FinalStage connectRequireKeyAuthTest(Optional<Boolean> connectRequireKeyAuthTest);
141+
142+
_FinalStage connectRequireKeyAuthTest(Boolean connectRequireKeyAuthTest);
121143
}
122144

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

149+
private Optional<Boolean> connectRequireKeyAuthTest = Optional.empty();
150+
127151
private Optional<String> supportEmail = Optional.empty();
128152

129153
private Optional<String> appName = Optional.empty();
@@ -138,6 +162,7 @@ public Builder from(CreateProjectOpts other) {
138162
name(other.getName());
139163
appName(other.getAppName());
140164
supportEmail(other.getSupportEmail());
165+
connectRequireKeyAuthTest(other.getConnectRequireKeyAuthTest());
141166
return this;
142167
}
143168

@@ -153,6 +178,26 @@ public _FinalStage name(@NotNull String name) {
153178
return this;
154179
}
155180

181+
/**
182+
* <p>Send a test request to the upstream API when adding Connect accounts for key-based apps</p>
183+
* @return Reference to {@code this} so that method calls can be chained together.
184+
*/
185+
@java.lang.Override
186+
public _FinalStage connectRequireKeyAuthTest(Boolean connectRequireKeyAuthTest) {
187+
this.connectRequireKeyAuthTest = Optional.ofNullable(connectRequireKeyAuthTest);
188+
return this;
189+
}
190+
191+
/**
192+
* <p>Send a test request to the upstream API when adding Connect accounts for key-based apps</p>
193+
*/
194+
@java.lang.Override
195+
@JsonSetter(value = "connect_require_key_auth_test", nulls = Nulls.SKIP)
196+
public _FinalStage connectRequireKeyAuthTest(Optional<Boolean> connectRequireKeyAuthTest) {
197+
this.connectRequireKeyAuthTest = connectRequireKeyAuthTest;
198+
return this;
199+
}
200+
156201
/**
157202
* <p>Support email displayed to end users</p>
158203
* @return Reference to {@code this} so that method calls can be chained together.
@@ -195,7 +240,7 @@ public _FinalStage appName(Optional<String> appName) {
195240

196241
@java.lang.Override
197242
public CreateProjectOpts build() {
198-
return new CreateProjectOpts(name, appName, supportEmail, additionalProperties);
243+
return new CreateProjectOpts(name, appName, supportEmail, connectRequireKeyAuthTest, additionalProperties);
199244
}
200245
}
201246
}

0 commit comments

Comments
 (0)