Skip to content

Commit 44b7c4f

Browse files
committed
SDK regeneration
1 parent 092f40f commit 44b7c4f

File tree

57 files changed

+1623
-1148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1623
-1148
lines changed

README.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPipedreamHQ%2Fpipedream-sdk-java)
44
[![Maven Central](https://img.shields.io/maven-central/v/com.pipedream/pipedream)](https://central.sonatype.com/artifact/com.pipedream/pipedream)
55

6-
The Pipedream Java library provides convenient access to the Pipedream API from Java.
6+
The Pipedream Java library provides convenient access to the Pipedream APIs from Java.
77

88
## Installation
99

@@ -25,7 +25,7 @@ Add the dependency in your `pom.xml` file:
2525
<dependency>
2626
<groupId>com.pipedream</groupId>
2727
<artifactId>pipedream</artifactId>
28-
<version>1.0.2</version>
28+
<version>1.0.3</version>
2929
</dependency>
3030
```
3131

@@ -166,6 +166,32 @@ client.actions().run(
166166
);
167167
```
168168

169+
### Custom Headers
170+
171+
The SDK allows you to add custom headers to requests. You can configure headers at the client level or at the request level.
172+
173+
```java
174+
import com.pipedream.api.BaseClient;
175+
import com.pipedream.api.core.RequestOptions;
176+
177+
// Client level
178+
BaseClient client = BaseClient
179+
.builder()
180+
.addHeader("X-Custom-Header", "custom-value")
181+
.addHeader("X-Request-Id", "abc-123")
182+
.build();
183+
;
184+
185+
// Request level
186+
client.actions().run(
187+
...,
188+
RequestOptions
189+
.builder()
190+
.addHeader("X-Request-Header", "request-value")
191+
.build()
192+
);
193+
```
194+
169195
## Contributing
170196

171197
While we value open-source contributions to this SDK, this library is generated programmatically.
@@ -174,4 +200,7 @@ otherwise they would be overwritten upon the next generated release. Feel free t
174200
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
175201
an issue first to discuss with us!
176202

177-
On the other hand, contributions to the README are always very welcome!
203+
On the other hand, contributions to the README are always very welcome!
204+
## Reference
205+
206+
A full reference for this library is available [here](https://github.com/PipedreamHQ/pipedream-sdk-java/blob/HEAD/./reference.md).

build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ java {
4848

4949
group = 'com.pipedream'
5050

51-
version = '1.0.2'
51+
version = '1.0.3'
5252

5353
jar {
5454
dependsOn(":generatePomFileForMavenPublication")
@@ -79,7 +79,7 @@ publishing {
7979
maven(MavenPublication) {
8080
groupId = 'com.pipedream'
8181
artifactId = 'pipedream'
82-
version = '1.0.2'
82+
version = '1.0.3'
8383
from components.java
8484
pom {
8585
name = 'pipedream'
@@ -123,9 +123,10 @@ sonatypeCentralUpload {
123123
}
124124

125125
signing {
126-
def signingKeyId = "$System.env.MAVEN_SIGNATURE_SECRET_KEY"
126+
def signingKeyId = "$System.env.MAVEN_SIGNATURE_KID"
127+
def signingKey = "$System.env.MAVEN_SIGNATURE_SECRET_KEY"
127128
def signingPassword = "$System.env.MAVEN_SIGNATURE_PASSWORD"
128-
useInMemoryPgpKeys(signingKeyId, signingPassword)
129+
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
129130
sign publishing.publications.maven
130131
}
131132

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.0.2");
38+
put("User-Agent", "com.pipedream:pipedream/1.0.3");
3939
put("X-Fern-Language", "JAVA");
4040
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
41-
put("X-Fern-SDK-Version", "1.0.2");
41+
put("X-Fern-SDK-Version", "1.0.3");
4242
}
4343
});
4444
this.headerSuppliers = headerSuppliers;

src/main/java/com/pipedream/api/resources/actions/requests/RunActionOpts.java

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.fasterxml.jackson.annotation.Nulls;
1313
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
1414
import com.pipedream.api.core.ObjectMappers;
15+
import com.pipedream.api.types.ConfiguredPropValue;
1516
import com.pipedream.api.types.RunActionOptsStashId;
1617
import java.util.HashMap;
1718
import java.util.Map;
@@ -26,7 +27,7 @@ public final class RunActionOpts {
2627

2728
private final String externalUserId;
2829

29-
private final Optional<Map<String, Object>> configuredProps;
30+
private final Optional<Map<String, ConfiguredPropValue>> configuredProps;
3031

3132
private final Optional<String> dynamicPropsId;
3233

@@ -37,7 +38,7 @@ public final class RunActionOpts {
3738
private RunActionOpts(
3839
String id,
3940
String externalUserId,
40-
Optional<Map<String, Object>> configuredProps,
41+
Optional<Map<String, ConfiguredPropValue>> configuredProps,
4142
Optional<String> dynamicPropsId,
4243
Optional<RunActionOptsStashId> stashId,
4344
Map<String, Object> additionalProperties) {
@@ -65,11 +66,8 @@ public String getExternalUserId() {
6566
return externalUserId;
6667
}
6768

68-
/**
69-
* @return The configured properties for the action
70-
*/
7169
@JsonProperty("configured_props")
72-
public Optional<Map<String, Object>> getConfiguredProps() {
70+
public Optional<Map<String, ConfiguredPropValue>> getConfiguredProps() {
7371
return configuredProps;
7472
}
7573

@@ -138,12 +136,9 @@ public interface ExternalUserIdStage {
138136
public interface _FinalStage {
139137
RunActionOpts build();
140138

141-
/**
142-
* <p>The configured properties for the action</p>
143-
*/
144-
_FinalStage configuredProps(Optional<Map<String, Object>> configuredProps);
139+
_FinalStage configuredProps(Optional<Map<String, ConfiguredPropValue>> configuredProps);
145140

146-
_FinalStage configuredProps(Map<String, Object> configuredProps);
141+
_FinalStage configuredProps(Map<String, ConfiguredPropValue> configuredProps);
147142

148143
/**
149144
* <p>The ID for dynamic props</p>
@@ -167,7 +162,7 @@ public static final class Builder implements IdStage, ExternalUserIdStage, _Fina
167162

168163
private Optional<String> dynamicPropsId = Optional.empty();
169164

170-
private Optional<Map<String, Object>> configuredProps = Optional.empty();
165+
private Optional<Map<String, ConfiguredPropValue>> configuredProps = Optional.empty();
171166

172167
@JsonAnySetter
173168
private Map<String, Object> additionalProperties = new HashMap<>();
@@ -241,22 +236,15 @@ public _FinalStage dynamicPropsId(Optional<String> dynamicPropsId) {
241236
return this;
242237
}
243238

244-
/**
245-
* <p>The configured properties for the action</p>
246-
* @return Reference to {@code this} so that method calls can be chained together.
247-
*/
248239
@java.lang.Override
249-
public _FinalStage configuredProps(Map<String, Object> configuredProps) {
240+
public _FinalStage configuredProps(Map<String, ConfiguredPropValue> configuredProps) {
250241
this.configuredProps = Optional.ofNullable(configuredProps);
251242
return this;
252243
}
253244

254-
/**
255-
* <p>The configured properties for the action</p>
256-
*/
257245
@java.lang.Override
258246
@JsonSetter(value = "configured_props", nulls = Nulls.SKIP)
259-
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
247+
public _FinalStage configuredProps(Optional<Map<String, ConfiguredPropValue>> configuredProps) {
260248
this.configuredProps = configuredProps;
261249
return this;
262250
}

src/main/java/com/pipedream/api/resources/deployedtriggers/requests/UpdateTriggerOpts.java

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.fasterxml.jackson.annotation.Nulls;
1313
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
1414
import com.pipedream.api.core.ObjectMappers;
15+
import com.pipedream.api.types.ConfiguredPropValue;
1516
import java.util.HashMap;
1617
import java.util.Map;
1718
import java.util.Objects;
@@ -25,7 +26,7 @@ public final class UpdateTriggerOpts {
2526

2627
private final Optional<Boolean> active;
2728

28-
private final Optional<Map<String, Object>> configuredProps;
29+
private final Optional<Map<String, ConfiguredPropValue>> configuredProps;
2930

3031
private final Optional<String> name;
3132

@@ -34,7 +35,7 @@ public final class UpdateTriggerOpts {
3435
private UpdateTriggerOpts(
3536
String externalUserId,
3637
Optional<Boolean> active,
37-
Optional<Map<String, Object>> configuredProps,
38+
Optional<Map<String, ConfiguredPropValue>> configuredProps,
3839
Optional<String> name,
3940
Map<String, Object> additionalProperties) {
4041
this.externalUserId = externalUserId;
@@ -60,11 +61,8 @@ public Optional<Boolean> getActive() {
6061
return active;
6162
}
6263

63-
/**
64-
* @return The configured properties for the trigger
65-
*/
6664
@JsonProperty("configured_props")
67-
public Optional<Map<String, Object>> getConfiguredProps() {
65+
public Optional<Map<String, ConfiguredPropValue>> getConfiguredProps() {
6866
return configuredProps;
6967
}
7068

@@ -127,12 +125,9 @@ public interface _FinalStage {
127125

128126
_FinalStage active(Boolean active);
129127

130-
/**
131-
* <p>The configured properties for the trigger</p>
132-
*/
133-
_FinalStage configuredProps(Optional<Map<String, Object>> configuredProps);
128+
_FinalStage configuredProps(Optional<Map<String, ConfiguredPropValue>> configuredProps);
134129

135-
_FinalStage configuredProps(Map<String, Object> configuredProps);
130+
_FinalStage configuredProps(Map<String, ConfiguredPropValue> configuredProps);
136131

137132
/**
138133
* <p>The name of the trigger</p>
@@ -148,7 +143,7 @@ public static final class Builder implements ExternalUserIdStage, _FinalStage {
148143

149144
private Optional<String> name = Optional.empty();
150145

151-
private Optional<Map<String, Object>> configuredProps = Optional.empty();
146+
private Optional<Map<String, ConfiguredPropValue>> configuredProps = Optional.empty();
152147

153148
private Optional<Boolean> active = Optional.empty();
154149

@@ -198,22 +193,15 @@ public _FinalStage name(Optional<String> name) {
198193
return this;
199194
}
200195

201-
/**
202-
* <p>The configured properties for the trigger</p>
203-
* @return Reference to {@code this} so that method calls can be chained together.
204-
*/
205196
@java.lang.Override
206-
public _FinalStage configuredProps(Map<String, Object> configuredProps) {
197+
public _FinalStage configuredProps(Map<String, ConfiguredPropValue> configuredProps) {
207198
this.configuredProps = Optional.ofNullable(configuredProps);
208199
return this;
209200
}
210201

211-
/**
212-
* <p>The configured properties for the trigger</p>
213-
*/
214202
@java.lang.Override
215203
@JsonSetter(value = "configured_props", nulls = Nulls.SKIP)
216-
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
204+
public _FinalStage configuredProps(Optional<Map<String, ConfiguredPropValue>> configuredProps) {
217205
this.configuredProps = configuredProps;
218206
return this;
219207
}

src/main/java/com/pipedream/api/resources/deployedtriggers/requests/UpdateTriggerWebhooksOpts.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ public _FinalStage externalUserId(@NotNull String externalUserId) {
138138
*/
139139
@java.lang.Override
140140
public _FinalStage addAllWebhookUrls(List<String> webhookUrls) {
141-
this.webhookUrls.addAll(webhookUrls);
141+
if (webhookUrls != null) {
142+
this.webhookUrls.addAll(webhookUrls);
143+
}
142144
return this;
143145
}
144146

src/main/java/com/pipedream/api/resources/deployedtriggers/requests/UpdateTriggerWorkflowsOpts.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ public _FinalStage externalUserId(@NotNull String externalUserId) {
138138
*/
139139
@java.lang.Override
140140
public _FinalStage addAllWorkflowIds(List<String> workflowIds) {
141-
this.workflowIds.addAll(workflowIds);
141+
if (workflowIds != null) {
142+
this.workflowIds.addAll(workflowIds);
143+
}
142144
return this;
143145
}
144146

src/main/java/com/pipedream/api/resources/triggers/requests/DeployTriggerOpts.java

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.fasterxml.jackson.annotation.Nulls;
1313
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
1414
import com.pipedream.api.core.ObjectMappers;
15+
import com.pipedream.api.types.ConfiguredPropValue;
1516
import java.util.HashMap;
1617
import java.util.Map;
1718
import java.util.Objects;
@@ -25,7 +26,7 @@ public final class DeployTriggerOpts {
2526

2627
private final String externalUserId;
2728

28-
private final Optional<Map<String, Object>> configuredProps;
29+
private final Optional<Map<String, ConfiguredPropValue>> configuredProps;
2930

3031
private final Optional<String> dynamicPropsId;
3132

@@ -36,7 +37,7 @@ public final class DeployTriggerOpts {
3637
private DeployTriggerOpts(
3738
String id,
3839
String externalUserId,
39-
Optional<Map<String, Object>> configuredProps,
40+
Optional<Map<String, ConfiguredPropValue>> configuredProps,
4041
Optional<String> dynamicPropsId,
4142
Optional<String> webhookUrl,
4243
Map<String, Object> additionalProperties) {
@@ -64,11 +65,8 @@ public String getExternalUserId() {
6465
return externalUserId;
6566
}
6667

67-
/**
68-
* @return The configured properties for the trigger
69-
*/
7068
@JsonProperty("configured_props")
71-
public Optional<Map<String, Object>> getConfiguredProps() {
69+
public Optional<Map<String, ConfiguredPropValue>> getConfiguredProps() {
7270
return configuredProps;
7371
}
7472

@@ -140,12 +138,9 @@ public interface ExternalUserIdStage {
140138
public interface _FinalStage {
141139
DeployTriggerOpts build();
142140

143-
/**
144-
* <p>The configured properties for the trigger</p>
145-
*/
146-
_FinalStage configuredProps(Optional<Map<String, Object>> configuredProps);
141+
_FinalStage configuredProps(Optional<Map<String, ConfiguredPropValue>> configuredProps);
147142

148-
_FinalStage configuredProps(Map<String, Object> configuredProps);
143+
_FinalStage configuredProps(Map<String, ConfiguredPropValue> configuredProps);
149144

150145
/**
151146
* <p>The ID for dynamic props</p>
@@ -172,7 +167,7 @@ public static final class Builder implements IdStage, ExternalUserIdStage, _Fina
172167

173168
private Optional<String> dynamicPropsId = Optional.empty();
174169

175-
private Optional<Map<String, Object>> configuredProps = Optional.empty();
170+
private Optional<Map<String, ConfiguredPropValue>> configuredProps = Optional.empty();
176171

177172
@JsonAnySetter
178173
private Map<String, Object> additionalProperties = new HashMap<>();
@@ -253,22 +248,15 @@ public _FinalStage dynamicPropsId(Optional<String> dynamicPropsId) {
253248
return this;
254249
}
255250

256-
/**
257-
* <p>The configured properties for the trigger</p>
258-
* @return Reference to {@code this} so that method calls can be chained together.
259-
*/
260251
@java.lang.Override
261-
public _FinalStage configuredProps(Map<String, Object> configuredProps) {
252+
public _FinalStage configuredProps(Map<String, ConfiguredPropValue> configuredProps) {
262253
this.configuredProps = Optional.ofNullable(configuredProps);
263254
return this;
264255
}
265256

266-
/**
267-
* <p>The configured properties for the trigger</p>
268-
*/
269257
@java.lang.Override
270258
@JsonSetter(value = "configured_props", nulls = Nulls.SKIP)
271-
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
259+
public _FinalStage configuredProps(Optional<Map<String, ConfiguredPropValue>> configuredProps) {
272260
this.configuredProps = configuredProps;
273261
return this;
274262
}

0 commit comments

Comments
 (0)