Skip to content

Commit cfd1cfa

Browse files
committed
Release 0.1.26
1 parent 0161966 commit cfd1cfa

File tree

3 files changed

+56
-4
lines changed

3 files changed

+56
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ publishing {
4747
maven(MavenPublication) {
4848
groupId = 'io.github.seamapi'
4949
artifactId = 'java'
50-
version = '0.1.25'
50+
version = '0.1.26'
5151
from components.java
5252
}
5353
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private ClientOptions(
2626
this.headers = new HashMap<>();
2727
this.headers.putAll(headers);
2828
this.headers.putAll(Map.of(
29-
"X-Fern-SDK-Name", "com.seam.fern:api-sdk", "X-Fern-SDK-Version", "0.1.25", "X-Fern-Language", "JAVA"));
29+
"X-Fern-SDK-Name", "com.seam.fern:api-sdk", "X-Fern-SDK-Version", "0.1.26", "X-Fern-Language", "JAVA"));
3030
this.headerSuppliers = headerSuppliers;
3131
this.httpClient = httpClient;
3232
;

src/main/java/com/seam/api/resources/connectwebviews/requests/ConnectWebviewsCreateRequest.java

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public final class ConnectWebviewsCreateRequest {
3737

3838
private final Optional<Map<String, CustomMetadataValue>> customMetadata;
3939

40+
private final Optional<Boolean> automaticallyManageNewDevices;
41+
42+
private final Optional<Boolean> waitForDeviceCreation;
43+
4044
private final Map<String, Object> additionalProperties;
4145

4246
private ConnectWebviewsCreateRequest(
@@ -46,13 +50,17 @@ private ConnectWebviewsCreateRequest(
4650
Optional<List<AcceptedProvider>> acceptedProviders,
4751
Optional<ProviderCategory> providerCategory,
4852
Optional<Map<String, CustomMetadataValue>> customMetadata,
53+
Optional<Boolean> automaticallyManageNewDevices,
54+
Optional<Boolean> waitForDeviceCreation,
4955
Map<String, Object> additionalProperties) {
5056
this.deviceSelectionMode = deviceSelectionMode;
5157
this.customRedirectUrl = customRedirectUrl;
5258
this.customRedirectFailureUrl = customRedirectFailureUrl;
5359
this.acceptedProviders = acceptedProviders;
5460
this.providerCategory = providerCategory;
5561
this.customMetadata = customMetadata;
62+
this.automaticallyManageNewDevices = automaticallyManageNewDevices;
63+
this.waitForDeviceCreation = waitForDeviceCreation;
5664
this.additionalProperties = additionalProperties;
5765
}
5866

@@ -86,6 +94,16 @@ public Optional<Map<String, CustomMetadataValue>> getCustomMetadata() {
8694
return customMetadata;
8795
}
8896

97+
@JsonProperty("automatically_manage_new_devices")
98+
public Optional<Boolean> getAutomaticallyManageNewDevices() {
99+
return automaticallyManageNewDevices;
100+
}
101+
102+
@JsonProperty("wait_for_device_creation")
103+
public Optional<Boolean> getWaitForDeviceCreation() {
104+
return waitForDeviceCreation;
105+
}
106+
89107
@Override
90108
public boolean equals(Object other) {
91109
if (this == other) return true;
@@ -103,7 +121,9 @@ private boolean equalTo(ConnectWebviewsCreateRequest other) {
103121
&& customRedirectFailureUrl.equals(other.customRedirectFailureUrl)
104122
&& acceptedProviders.equals(other.acceptedProviders)
105123
&& providerCategory.equals(other.providerCategory)
106-
&& customMetadata.equals(other.customMetadata);
124+
&& customMetadata.equals(other.customMetadata)
125+
&& automaticallyManageNewDevices.equals(other.automaticallyManageNewDevices)
126+
&& waitForDeviceCreation.equals(other.waitForDeviceCreation);
107127
}
108128

109129
@Override
@@ -114,7 +134,9 @@ public int hashCode() {
114134
this.customRedirectFailureUrl,
115135
this.acceptedProviders,
116136
this.providerCategory,
117-
this.customMetadata);
137+
this.customMetadata,
138+
this.automaticallyManageNewDevices,
139+
this.waitForDeviceCreation);
118140
}
119141

120142
@Override
@@ -140,6 +162,10 @@ public static final class Builder {
140162

141163
private Optional<Map<String, CustomMetadataValue>> customMetadata = Optional.empty();
142164

165+
private Optional<Boolean> automaticallyManageNewDevices = Optional.empty();
166+
167+
private Optional<Boolean> waitForDeviceCreation = Optional.empty();
168+
143169
@JsonAnySetter
144170
private Map<String, Object> additionalProperties = new HashMap<>();
145171

@@ -152,6 +178,8 @@ public Builder from(ConnectWebviewsCreateRequest other) {
152178
acceptedProviders(other.getAcceptedProviders());
153179
providerCategory(other.getProviderCategory());
154180
customMetadata(other.getCustomMetadata());
181+
automaticallyManageNewDevices(other.getAutomaticallyManageNewDevices());
182+
waitForDeviceCreation(other.getWaitForDeviceCreation());
155183
return this;
156184
}
157185

@@ -221,6 +249,28 @@ public Builder customMetadata(Map<String, CustomMetadataValue> customMetadata) {
221249
return this;
222250
}
223251

252+
@JsonSetter(value = "automatically_manage_new_devices", nulls = Nulls.SKIP)
253+
public Builder automaticallyManageNewDevices(Optional<Boolean> automaticallyManageNewDevices) {
254+
this.automaticallyManageNewDevices = automaticallyManageNewDevices;
255+
return this;
256+
}
257+
258+
public Builder automaticallyManageNewDevices(Boolean automaticallyManageNewDevices) {
259+
this.automaticallyManageNewDevices = Optional.of(automaticallyManageNewDevices);
260+
return this;
261+
}
262+
263+
@JsonSetter(value = "wait_for_device_creation", nulls = Nulls.SKIP)
264+
public Builder waitForDeviceCreation(Optional<Boolean> waitForDeviceCreation) {
265+
this.waitForDeviceCreation = waitForDeviceCreation;
266+
return this;
267+
}
268+
269+
public Builder waitForDeviceCreation(Boolean waitForDeviceCreation) {
270+
this.waitForDeviceCreation = Optional.of(waitForDeviceCreation);
271+
return this;
272+
}
273+
224274
public ConnectWebviewsCreateRequest build() {
225275
return new ConnectWebviewsCreateRequest(
226276
deviceSelectionMode,
@@ -229,6 +279,8 @@ public ConnectWebviewsCreateRequest build() {
229279
acceptedProviders,
230280
providerCategory,
231281
customMetadata,
282+
automaticallyManageNewDevices,
283+
waitForDeviceCreation,
232284
additionalProperties);
233285
}
234286
}

0 commit comments

Comments
 (0)