diff --git a/.fern/metadata.json b/.fern/metadata.json
index 90a43e1..9bf854d 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -10,9 +10,9 @@
"base-exception-class-name": "CloudPDFException",
"base-api-exception-class-name": "CloudPDFApiException"
},
- "originGitCommit": "3283147ded32fc15c426768f75557a4d95943d84",
+ "originGitCommit": "ce65e1390549db1272ac3720a5ddfcea55be2c07",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
- "requestedVersion": "3.0.0-alpha.21",
+ "requestedVersion": "3.0.0-alpha.22",
"ciProvider": "github"
}
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 194be9c..83be202 100644
--- a/build.gradle
+++ b/build.gradle
@@ -46,7 +46,7 @@ java {
group = 'com.cloudpdf'
-version = '3.0.0-alpha.21'
+version = '3.0.0-alpha.22'
jar {
dependsOn(":generatePomFileForMavenPublication")
@@ -73,7 +73,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.cloudpdf'
artifactId = 'sdk'
- version = '3.0.0-alpha.21'
+ version = '3.0.0-alpha.22'
from components.java
pom {
name = 'CloudPDF'
diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json
index 3efa5e6..2b13cfe 100644
--- a/cloudpdf-generation.json
+++ b/cloudpdf-generation.json
@@ -1,12 +1,12 @@
{
"language": "java",
- "canonicalVersion": "3.0.0-next.21",
- "sdkVersion": "3.0.0-alpha.21",
+ "canonicalVersion": "3.0.0-next.22",
+ "sdkVersion": "3.0.0-alpha.22",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
- "openapiSha256": "f85648401f5c683a32e2b50acc3d753df9f4ce06df8492e5d2b599beceb0e788",
- "gitCommit": "3283147ded32fc15c426768f75557a4d95943d84",
+ "openapiSha256": "1f5aa976eec4d5fc4e2b22efe725df58a01389896733ec1870f96a6441b62859",
+ "gitCommit": "ce65e1390549db1272ac3720a5ddfcea55be2c07",
"gitCommitIsDirty": false
},
"fern": {
diff --git a/reference.md b/reference.md
index 44e2a3c..7cc1cba 100644
--- a/reference.md
+++ b/reference.md
@@ -21,6 +21,45 @@ client.deployment().licenseStatus();
+
+
+
+
+client.deployment.modules() -> DeploymentModulesResponse
+
+
+
+#### 📝 Description
+
+
+
+
+
+
+
+What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their `features` (`tenants.get`); what it costs, if anything, is the operator's.
+
+
+
+
+
+#### 🔌 Usage
+
+
+
+
+
+
+
+```java
+client.deployment().modules();
+```
+
+
+
+
+
+
@@ -1659,6 +1698,22 @@ client.tenants().usage(
**period:** `Optional`
+
+
+
+
+
+
+**from:** `Optional`
+
+
+
+
+
+
+
+**to:** `Optional`
+
diff --git a/src/main/java/api/core/ClientOptions.java b/src/main/java/api/core/ClientOptions.java
index 6ff21ba..59d93e3 100644
--- a/src/main/java/api/core/ClientOptions.java
+++ b/src/main/java/api/core/ClientOptions.java
@@ -49,7 +49,7 @@ private ClientOptions(
{
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.cloudpdf:sdk");
- put("X-Fern-SDK-Version", "3.0.0-alpha.21");
+ put("X-Fern-SDK-Version", "3.0.0-alpha.22");
}
});
this.headerSuppliers = headerSuppliers;
diff --git a/src/main/java/api/resources/deployment/AsyncDeploymentClient.java b/src/main/java/api/resources/deployment/AsyncDeploymentClient.java
index 70af145..d2f897c 100644
--- a/src/main/java/api/resources/deployment/AsyncDeploymentClient.java
+++ b/src/main/java/api/resources/deployment/AsyncDeploymentClient.java
@@ -6,6 +6,7 @@
import com.cloudpdf.api.core.ClientOptions;
import com.cloudpdf.api.core.RequestOptions;
import com.cloudpdf.api.types.DeploymentLicenseStatusResponse;
+import com.cloudpdf.api.types.DeploymentModulesResponse;
import java.util.concurrent.CompletableFuture;
public class AsyncDeploymentClient {
@@ -32,4 +33,18 @@ public CompletableFuture licenseStatus() {
public CompletableFuture licenseStatus(RequestOptions requestOptions) {
return this.rawClient.licenseStatus(requestOptions).thenApply(response -> response.body());
}
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public CompletableFuture modules() {
+ return this.rawClient.modules().thenApply(response -> response.body());
+ }
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public CompletableFuture modules(RequestOptions requestOptions) {
+ return this.rawClient.modules(requestOptions).thenApply(response -> response.body());
+ }
}
diff --git a/src/main/java/api/resources/deployment/AsyncRawDeploymentClient.java b/src/main/java/api/resources/deployment/AsyncRawDeploymentClient.java
index cf8fc16..01a6d64 100644
--- a/src/main/java/api/resources/deployment/AsyncRawDeploymentClient.java
+++ b/src/main/java/api/resources/deployment/AsyncRawDeploymentClient.java
@@ -11,6 +11,7 @@
import com.cloudpdf.api.core.RequestOptions;
import com.cloudpdf.api.core.RetryInterceptor;
import com.cloudpdf.api.types.DeploymentLicenseStatusResponse;
+import com.cloudpdf.api.types.DeploymentModulesResponse;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.io.IOException;
import java.util.concurrent.CompletableFuture;
@@ -97,4 +98,76 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
});
return future;
}
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public CompletableFuture> modules() {
+ return modules(null);
+ }
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public CompletableFuture> modules(
+ RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("v1/deployment/modules");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("GET", null)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) {
+ okhttpRequest = okhttpRequest
+ .newBuilder()
+ .tag(
+ RetryInterceptor.MaxRetriesOverride.class,
+ new RetryInterceptor.MaxRetriesOverride(
+ requestOptions.getMaxRetries().get()))
+ .build();
+ }
+ CompletableFuture> future = new CompletableFuture<>();
+ client.newCall(okhttpRequest).enqueue(new Callback() {
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody responseBody = response.body()) {
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ if (response.isSuccessful()) {
+ future.complete(new CloudPDFClientHttpResponse<>(
+ ObjectMappers.JSON_MAPPER.readValue(
+ responseBodyString, DeploymentModulesResponse.class),
+ response));
+ return;
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ future.completeExceptionally(new CloudPDFApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response));
+ return;
+ } catch (JsonProcessingException e) {
+ future.completeExceptionally(
+ new CloudPDFException("Failed to deserialize response: " + e.getMessage(), e));
+ } catch (IOException e) {
+ future.completeExceptionally(new CloudPDFException("Network error executing HTTP request", e));
+ }
+ }
+
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ future.completeExceptionally(new CloudPDFException("Network error executing HTTP request", e));
+ }
+ });
+ return future;
+ }
}
diff --git a/src/main/java/api/resources/deployment/DeploymentClient.java b/src/main/java/api/resources/deployment/DeploymentClient.java
index e0a19ed..fe3695a 100644
--- a/src/main/java/api/resources/deployment/DeploymentClient.java
+++ b/src/main/java/api/resources/deployment/DeploymentClient.java
@@ -6,6 +6,7 @@
import com.cloudpdf.api.core.ClientOptions;
import com.cloudpdf.api.core.RequestOptions;
import com.cloudpdf.api.types.DeploymentLicenseStatusResponse;
+import com.cloudpdf.api.types.DeploymentModulesResponse;
public class DeploymentClient {
protected final ClientOptions clientOptions;
@@ -31,4 +32,18 @@ public DeploymentLicenseStatusResponse licenseStatus() {
public DeploymentLicenseStatusResponse licenseStatus(RequestOptions requestOptions) {
return this.rawClient.licenseStatus(requestOptions).body();
}
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public DeploymentModulesResponse modules() {
+ return this.rawClient.modules().body();
+ }
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public DeploymentModulesResponse modules(RequestOptions requestOptions) {
+ return this.rawClient.modules(requestOptions).body();
+ }
}
diff --git a/src/main/java/api/resources/deployment/RawDeploymentClient.java b/src/main/java/api/resources/deployment/RawDeploymentClient.java
index 4680573..4c534cd 100644
--- a/src/main/java/api/resources/deployment/RawDeploymentClient.java
+++ b/src/main/java/api/resources/deployment/RawDeploymentClient.java
@@ -11,6 +11,7 @@
import com.cloudpdf.api.core.RequestOptions;
import com.cloudpdf.api.core.RetryInterceptor;
import com.cloudpdf.api.types.DeploymentLicenseStatusResponse;
+import com.cloudpdf.api.types.DeploymentModulesResponse;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.io.IOException;
import okhttp3.Headers;
@@ -76,4 +77,60 @@ public CloudPDFClientHttpResponse licenseStatus
throw new CloudPDFException("Network error executing HTTP request", e);
}
}
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public CloudPDFClientHttpResponse modules() {
+ return modules(null);
+ }
+
+ /**
+ * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their features (tenants.get); what it costs, if anything, is the operator's.
+ */
+ public CloudPDFClientHttpResponse modules(RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("v1/deployment/modules");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("GET", null)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ if (requestOptions != null && requestOptions.getMaxRetries().isPresent()) {
+ okhttpRequest = okhttpRequest
+ .newBuilder()
+ .tag(
+ RetryInterceptor.MaxRetriesOverride.class,
+ new RetryInterceptor.MaxRetriesOverride(
+ requestOptions.getMaxRetries().get()))
+ .build();
+ }
+ try (Response response = client.newCall(okhttpRequest).execute()) {
+ ResponseBody responseBody = response.body();
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ if (response.isSuccessful()) {
+ return new CloudPDFClientHttpResponse<>(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, DeploymentModulesResponse.class),
+ response);
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ throw new CloudPDFApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response);
+ } catch (JsonProcessingException e) {
+ throw new CloudPDFException("Failed to deserialize response: " + e.getMessage(), e);
+ } catch (IOException e) {
+ throw new CloudPDFException("Network error executing HTTP request", e);
+ }
+ }
}
diff --git a/src/main/java/api/resources/tenants/AsyncRawTenantsClient.java b/src/main/java/api/resources/tenants/AsyncRawTenantsClient.java
index bbfa499..fdcc505 100644
--- a/src/main/java/api/resources/tenants/AsyncRawTenantsClient.java
+++ b/src/main/java/api/resources/tenants/AsyncRawTenantsClient.java
@@ -717,6 +717,13 @@ public CompletableFuture> us
QueryStringMapper.addQueryParameter(
httpUrl, "period", request.getPeriod().get(), false);
}
+ if (request.getFrom().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "from", request.getFrom().get(), false);
+ }
+ if (request.getTo().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "to", request.getTo().get(), false);
+ }
if (requestOptions != null) {
requestOptions.getQueryParameters().forEach((_key, _value) -> {
httpUrl.addQueryParameter(_key, _value);
diff --git a/src/main/java/api/resources/tenants/RawTenantsClient.java b/src/main/java/api/resources/tenants/RawTenantsClient.java
index bcefea0..34c8ab2 100644
--- a/src/main/java/api/resources/tenants/RawTenantsClient.java
+++ b/src/main/java/api/resources/tenants/RawTenantsClient.java
@@ -598,6 +598,13 @@ public CloudPDFClientHttpResponse usage(
QueryStringMapper.addQueryParameter(
httpUrl, "period", request.getPeriod().get(), false);
}
+ if (request.getFrom().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "from", request.getFrom().get(), false);
+ }
+ if (request.getTo().isPresent()) {
+ QueryStringMapper.addQueryParameter(httpUrl, "to", request.getTo().get(), false);
+ }
if (requestOptions != null) {
requestOptions.getQueryParameters().forEach((_key, _value) -> {
httpUrl.addQueryParameter(_key, _value);
diff --git a/src/main/java/api/resources/tenants/requests/UsageTenantsRequest.java b/src/main/java/api/resources/tenants/requests/UsageTenantsRequest.java
index a35fb29..68e5eba 100644
--- a/src/main/java/api/resources/tenants/requests/UsageTenantsRequest.java
+++ b/src/main/java/api/resources/tenants/requests/UsageTenantsRequest.java
@@ -22,10 +22,20 @@
public final class UsageTenantsRequest {
private final Optional period;
+ private final Optional from;
+
+ private final Optional to;
+
private final Map additionalProperties;
- private UsageTenantsRequest(Optional period, Map additionalProperties) {
+ private UsageTenantsRequest(
+ Optional period,
+ Optional from,
+ Optional to,
+ Map additionalProperties) {
this.period = period;
+ this.from = from;
+ this.to = to;
this.additionalProperties = additionalProperties;
}
@@ -34,6 +44,16 @@ public Optional getPeriod() {
return period;
}
+ @JsonProperty("from")
+ public Optional getFrom() {
+ return from;
+ }
+
+ @JsonProperty("to")
+ public Optional getTo() {
+ return to;
+ }
+
@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
@@ -46,12 +66,12 @@ public Map getAdditionalProperties() {
}
private boolean equalTo(UsageTenantsRequest other) {
- return period.equals(other.period);
+ return period.equals(other.period) && from.equals(other.from) && to.equals(other.to);
}
@java.lang.Override
public int hashCode() {
- return Objects.hash(this.period);
+ return Objects.hash(this.period, this.from, this.to);
}
@java.lang.Override
@@ -67,6 +87,10 @@ public static Builder builder() {
public static final class Builder {
private Optional period = Optional.empty();
+ private Optional from = Optional.empty();
+
+ private Optional to = Optional.empty();
+
@JsonAnySetter
private Map additionalProperties = new HashMap<>();
@@ -74,6 +98,8 @@ private Builder() {}
public Builder from(UsageTenantsRequest other) {
period(other.getPeriod());
+ from(other.getFrom());
+ to(other.getTo());
return this;
}
@@ -88,8 +114,30 @@ public Builder period(String period) {
return this;
}
+ @JsonSetter(value = "from", nulls = Nulls.SKIP)
+ public Builder from(Optional from) {
+ this.from = from;
+ return this;
+ }
+
+ public Builder from(String from) {
+ this.from = Optional.ofNullable(from);
+ return this;
+ }
+
+ @JsonSetter(value = "to", nulls = Nulls.SKIP)
+ public Builder to(Optional to) {
+ this.to = to;
+ return this;
+ }
+
+ public Builder to(String to) {
+ this.to = Optional.ofNullable(to);
+ return this;
+ }
+
public UsageTenantsRequest build() {
- return new UsageTenantsRequest(period, additionalProperties);
+ return new UsageTenantsRequest(period, from, to, additionalProperties);
}
public Builder additionalProperty(String key, Object value) {
diff --git a/src/main/java/api/types/AnnotationCaret.java b/src/main/java/api/types/AnnotationCaret.java
index 8bae4d6..af57261 100644
--- a/src/main/java/api/types/AnnotationCaret.java
+++ b/src/main/java/api/types/AnnotationCaret.java
@@ -88,6 +88,8 @@ public final class AnnotationCaret {
private final Optional actions;
+ private final Optional richText;
+
private final String color;
private final double opacity;
@@ -132,6 +134,7 @@ private AnnotationCaret(
Optional modifiedBy,
Optional importedBy,
Optional actions,
+ Optional richText,
String color,
double opacity,
AnnotationCaretBox box,
@@ -169,6 +172,7 @@ private AnnotationCaret(
this.modifiedBy = modifiedBy;
this.importedBy = importedBy;
this.actions = actions;
+ this.richText = richText;
this.color = color;
this.opacity = opacity;
this.box = box;
@@ -380,6 +384,14 @@ public Optional getActions() {
return actions;
}
+ @JsonIgnore
+ public Optional getRichText() {
+ if (richText == null) {
+ return Optional.empty();
+ }
+ return richText;
+ }
+
@JsonProperty("color")
public String getColor() {
return color;
@@ -507,6 +519,12 @@ private Optional _getActions() {
return actions;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("richText")
+ private Optional _getRichText() {
+ return richText;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("rotation")
private Optional _getRotation() {
@@ -562,6 +580,7 @@ private boolean equalTo(AnnotationCaret other) {
&& modifiedBy.equals(other.modifiedBy)
&& importedBy.equals(other.importedBy)
&& actions.equals(other.actions)
+ && richText.equals(other.richText)
&& color.equals(other.color)
&& opacity == other.opacity
&& box.equals(other.box)
@@ -603,6 +622,7 @@ public int hashCode() {
this.modifiedBy,
this.importedBy,
this.actions,
+ this.richText,
this.color,
this.opacity,
this.box,
@@ -796,6 +816,12 @@ public interface _FinalStage {
_FinalStage actions(Nullable actions);
+ _FinalStage richText(Optional richText);
+
+ _FinalStage richText(RichTextDocument richText);
+
+ _FinalStage richText(Nullable richText);
+
_FinalStage rotation(Optional rotation);
_FinalStage rotation(Double rotation);
@@ -870,6 +896,8 @@ public static final class Builder
private Optional rotation = Optional.empty();
+ private Optional richText = Optional.empty();
+
private Optional actions = Optional.empty();
private Optional importedBy = Optional.empty();
@@ -940,6 +968,7 @@ public Builder from(AnnotationCaret other) {
modifiedBy(other.getModifiedBy());
importedBy(other.getImportedBy());
actions(other.getActions());
+ richText(other.getRichText());
color(other.getColor());
opacity(other.getOpacity());
box(other.getBox());
@@ -1124,6 +1153,31 @@ public _FinalStage rotation(Optional rotation) {
return this;
}
+ @java.lang.Override
+ public _FinalStage richText(Nullable richText) {
+ if (richText.isNull()) {
+ this.richText = null;
+ } else if (richText.isEmpty()) {
+ this.richText = Optional.empty();
+ } else {
+ this.richText = Optional.of(richText.get());
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage richText(RichTextDocument richText) {
+ this.richText = Optional.ofNullable(richText);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "richText", nulls = Nulls.SKIP)
+ public _FinalStage richText(Optional richText) {
+ this.richText = richText;
+ return this;
+ }
+
@java.lang.Override
public _FinalStage actions(Nullable actions) {
if (actions.isNull()) {
@@ -1558,6 +1612,7 @@ public AnnotationCaret build() {
modifiedBy,
importedBy,
actions,
+ richText,
color,
opacity,
box,
diff --git a/src/main/java/api/types/AnnotationCircle.java b/src/main/java/api/types/AnnotationCircle.java
index abe1388..b031cd1 100644
--- a/src/main/java/api/types/AnnotationCircle.java
+++ b/src/main/java/api/types/AnnotationCircle.java
@@ -88,7 +88,9 @@ public final class AnnotationCircle {
private final Optional actions;
- private final String color;
+ private final Optional richText;
+
+ private final Optional color;
private final double opacity;
@@ -140,7 +142,8 @@ private AnnotationCircle(
Optional modifiedBy,
Optional importedBy,
Optional actions,
- String color,
+ Optional richText,
+ Optional color,
double opacity,
double strokeWidth,
AnnotationCircleBorderStyle borderStyle,
@@ -181,6 +184,7 @@ private AnnotationCircle(
this.modifiedBy = modifiedBy;
this.importedBy = importedBy;
this.actions = actions;
+ this.richText = richText;
this.color = color;
this.opacity = opacity;
this.strokeWidth = strokeWidth;
@@ -396,8 +400,19 @@ public Optional getActions() {
return actions;
}
- @JsonProperty("color")
- public String getColor() {
+ @JsonIgnore
+ public Optional getRichText() {
+ if (richText == null) {
+ return Optional.empty();
+ }
+ return richText;
+ }
+
+ @JsonIgnore
+ public Optional getColor() {
+ if (color == null) {
+ return Optional.empty();
+ }
return color;
}
@@ -549,6 +564,18 @@ private Optional _getActions() {
return actions;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("richText")
+ private Optional _getRichText() {
+ return richText;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("color")
+ private Optional _getColor() {
+ return color;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("dashArray")
private Optional> _getDashArray() {
@@ -616,6 +643,7 @@ private boolean equalTo(AnnotationCircle other) {
&& modifiedBy.equals(other.modifiedBy)
&& importedBy.equals(other.importedBy)
&& actions.equals(other.actions)
+ && richText.equals(other.richText)
&& color.equals(other.color)
&& opacity == other.opacity
&& strokeWidth == other.strokeWidth
@@ -661,6 +689,7 @@ public int hashCode() {
this.modifiedBy,
this.importedBy,
this.actions,
+ this.richText,
this.color,
this.opacity,
this.strokeWidth,
@@ -740,11 +769,7 @@ public interface ToggleNoViewStage {
}
public interface LockedContentsStage {
- ColorStage lockedContents(boolean lockedContents);
- }
-
- public interface ColorStage {
- OpacityStage color(@NotNull String color);
+ OpacityStage lockedContents(boolean lockedContents);
}
public interface OpacityStage {
@@ -866,6 +891,18 @@ public interface _FinalStage {
_FinalStage actions(Nullable actions);
+ _FinalStage richText(Optional richText);
+
+ _FinalStage richText(RichTextDocument richText);
+
+ _FinalStage richText(Nullable richText);
+
+ _FinalStage color(Optional color);
+
+ _FinalStage color(String color);
+
+ _FinalStage color(Nullable color);
+
_FinalStage dashArray(Optional> dashArray);
_FinalStage dashArray(List dashArray);
@@ -908,7 +945,6 @@ public static final class Builder
LockedStage,
ToggleNoViewStage,
LockedContentsStage,
- ColorStage,
OpacityStage,
StrokeWidthStage,
BorderStyleStage,
@@ -944,8 +980,6 @@ public static final class Builder
private boolean lockedContents;
- private String color;
-
private double opacity;
private double strokeWidth;
@@ -962,6 +996,10 @@ public static final class Builder
private Optional> dashArray = Optional.empty();
+ private Optional color = Optional.empty();
+
+ private Optional richText = Optional.empty();
+
private Optional actions = Optional.empty();
private Optional importedBy = Optional.empty();
@@ -1032,6 +1070,7 @@ public Builder from(AnnotationCircle other) {
modifiedBy(other.getModifiedBy());
importedBy(other.getImportedBy());
actions(other.getActions());
+ richText(other.getRichText());
color(other.getColor());
opacity(other.getOpacity());
strokeWidth(other.getStrokeWidth());
@@ -1144,18 +1183,11 @@ public LockedContentsStage toggleNoView(boolean toggleNoView) {
@java.lang.Override
@JsonSetter("lockedContents")
- public ColorStage lockedContents(boolean lockedContents) {
+ public OpacityStage lockedContents(boolean lockedContents) {
this.lockedContents = lockedContents;
return this;
}
- @java.lang.Override
- @JsonSetter("color")
- public OpacityStage color(@NotNull String color) {
- this.color = Objects.requireNonNull(color, "color must not be null");
- return this;
- }
-
@java.lang.Override
@JsonSetter("opacity")
public StrokeWidthStage opacity(double opacity) {
@@ -1284,6 +1316,56 @@ public _FinalStage dashArray(Optional> dashArray) {
return this;
}
+ @java.lang.Override
+ public _FinalStage color(Nullable color) {
+ if (color.isNull()) {
+ this.color = null;
+ } else if (color.isEmpty()) {
+ this.color = Optional.empty();
+ } else {
+ this.color = Optional.of(color.get());
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage color(String color) {
+ this.color = Optional.ofNullable(color);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "color", nulls = Nulls.SKIP)
+ public _FinalStage color(Optional color) {
+ this.color = color;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage richText(Nullable richText) {
+ if (richText.isNull()) {
+ this.richText = null;
+ } else if (richText.isEmpty()) {
+ this.richText = Optional.empty();
+ } else {
+ this.richText = Optional.of(richText.get());
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage richText(RichTextDocument richText) {
+ this.richText = Optional.ofNullable(richText);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "richText", nulls = Nulls.SKIP)
+ public _FinalStage richText(Optional richText) {
+ this.richText = richText;
+ return this;
+ }
+
@java.lang.Override
public _FinalStage actions(Nullable actions) {
if (actions.isNull()) {
@@ -1718,6 +1800,7 @@ public AnnotationCircle build() {
modifiedBy,
importedBy,
actions,
+ richText,
color,
opacity,
strokeWidth,
diff --git a/src/main/java/api/types/AnnotationDraftCaret.java b/src/main/java/api/types/AnnotationDraftCaret.java
index f509e03..636d8e2 100644
--- a/src/main/java/api/types/AnnotationDraftCaret.java
+++ b/src/main/java/api/types/AnnotationDraftCaret.java
@@ -85,6 +85,8 @@ public final class AnnotationDraftCaret {
private final Optional actions;
+ private final Optional richText;
+
private final Optional color;
private final Optional opacity;
@@ -129,6 +131,7 @@ private AnnotationDraftCaret(
Optional modifiedBy,
Optional importedBy,
Optional actions,
+ Optional richText,
Optional color,
Optional opacity,
Optional box,
@@ -166,6 +169,7 @@ private AnnotationDraftCaret(
this.modifiedBy = modifiedBy;
this.importedBy = importedBy;
this.actions = actions;
+ this.richText = richText;
this.color = color;
this.opacity = opacity;
this.box = box;
@@ -344,6 +348,14 @@ public Optional getActions() {
return actions;
}
+ @JsonIgnore
+ public Optional getRichText() {
+ if (richText == null) {
+ return Optional.empty();
+ }
+ return richText;
+ }
+
@JsonProperty("color")
public Optional getColor() {
return color;
@@ -405,6 +417,12 @@ private Optional _getGroupId() {
return groupId;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("richText")
+ private Optional _getRichText() {
+ return richText;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("rotation")
private Optional _getRotation() {
@@ -460,6 +478,7 @@ private boolean equalTo(AnnotationDraftCaret other) {
&& modifiedBy.equals(other.modifiedBy)
&& importedBy.equals(other.importedBy)
&& actions.equals(other.actions)
+ && richText.equals(other.richText)
&& color.equals(other.color)
&& opacity.equals(other.opacity)
&& box.equals(other.box)
@@ -501,6 +520,7 @@ public int hashCode() {
this.modifiedBy,
this.importedBy,
this.actions,
+ this.richText,
this.color,
this.opacity,
this.box,
@@ -581,6 +601,8 @@ public static final class Builder {
private Optional actions = Optional.empty();
+ private Optional richText = Optional.empty();
+
private Optional color = Optional.empty();
private Optional opacity = Optional.empty();
@@ -628,6 +650,7 @@ public Builder from(AnnotationDraftCaret other) {
modifiedBy(other.getModifiedBy());
importedBy(other.getImportedBy());
actions(other.getActions());
+ richText(other.getRichText());
color(other.getColor());
opacity(other.getOpacity());
box(other.getBox());
@@ -1032,6 +1055,28 @@ public Builder actions(Object actions) {
return this;
}
+ @JsonSetter(value = "richText", nulls = Nulls.SKIP)
+ public Builder richText(Optional richText) {
+ this.richText = richText;
+ return this;
+ }
+
+ public Builder richText(RichTextDocumentInput richText) {
+ this.richText = Optional.ofNullable(richText);
+ return this;
+ }
+
+ public Builder richText(Nullable richText) {
+ if (richText.isNull()) {
+ this.richText = null;
+ } else if (richText.isEmpty()) {
+ this.richText = Optional.empty();
+ } else {
+ this.richText = Optional.of(richText.get());
+ }
+ return this;
+ }
+
@JsonSetter(value = "color", nulls = Nulls.SKIP)
public Builder color(Optional color) {
this.color = color;
@@ -1142,6 +1187,7 @@ public AnnotationDraftCaret build() {
modifiedBy,
importedBy,
actions,
+ richText,
color,
opacity,
box,
diff --git a/src/main/java/api/types/AnnotationDraftCircle.java b/src/main/java/api/types/AnnotationDraftCircle.java
index 3ec98b4..d9dd668 100644
--- a/src/main/java/api/types/AnnotationDraftCircle.java
+++ b/src/main/java/api/types/AnnotationDraftCircle.java
@@ -86,6 +86,8 @@ public final class AnnotationDraftCircle {
private final Optional actions;
+ private final Optional richText;
+
private final Optional color;
private final Optional opacity;
@@ -138,6 +140,7 @@ private AnnotationDraftCircle(
Optional modifiedBy,
Optional importedBy,
Optional actions,
+ Optional richText,
Optional color,
Optional opacity,
Optional strokeWidth,
@@ -179,6 +182,7 @@ private AnnotationDraftCircle(
this.modifiedBy = modifiedBy;
this.importedBy = importedBy;
this.actions = actions;
+ this.richText = richText;
this.color = color;
this.opacity = opacity;
this.strokeWidth = strokeWidth;
@@ -361,8 +365,19 @@ public Optional getActions() {
return actions;
}
- @JsonProperty("color")
+ @JsonIgnore
+ public Optional getRichText() {
+ if (richText == null) {
+ return Optional.empty();
+ }
+ return richText;
+ }
+
+ @JsonIgnore
public Optional getColor() {
+ if (color == null) {
+ return Optional.empty();
+ }
return color;
}
@@ -448,6 +463,18 @@ private Optional _getGroupId() {
return groupId;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("richText")
+ private Optional _getRichText() {
+ return richText;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("color")
+ private Optional _getColor() {
+ return color;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("dashArray")
private Optional> _getDashArray() {
@@ -515,6 +542,7 @@ private boolean equalTo(AnnotationDraftCircle other) {
&& modifiedBy.equals(other.modifiedBy)
&& importedBy.equals(other.importedBy)
&& actions.equals(other.actions)
+ && richText.equals(other.richText)
&& color.equals(other.color)
&& opacity.equals(other.opacity)
&& strokeWidth.equals(other.strokeWidth)
@@ -560,6 +588,7 @@ public int hashCode() {
this.modifiedBy,
this.importedBy,
this.actions,
+ this.richText,
this.color,
this.opacity,
this.strokeWidth,
@@ -644,6 +673,8 @@ public static final class Builder {
private Optional actions = Optional.empty();
+ private Optional richText = Optional.empty();
+
private Optional color = Optional.empty();
private Optional opacity = Optional.empty();
@@ -699,6 +730,7 @@ public Builder from(AnnotationDraftCircle other) {
modifiedBy(other.getModifiedBy());
importedBy(other.getImportedBy());
actions(other.getActions());
+ richText(other.getRichText());
color(other.getColor());
opacity(other.getOpacity());
strokeWidth(other.getStrokeWidth());
@@ -1107,6 +1139,28 @@ public Builder actions(Object actions) {
return this;
}
+ @JsonSetter(value = "richText", nulls = Nulls.SKIP)
+ public Builder richText(Optional richText) {
+ this.richText = richText;
+ return this;
+ }
+
+ public Builder richText(RichTextDocumentInput richText) {
+ this.richText = Optional.ofNullable(richText);
+ return this;
+ }
+
+ public Builder richText(Nullable richText) {
+ if (richText.isNull()) {
+ this.richText = null;
+ } else if (richText.isEmpty()) {
+ this.richText = Optional.empty();
+ } else {
+ this.richText = Optional.of(richText.get());
+ }
+ return this;
+ }
+
@JsonSetter(value = "color", nulls = Nulls.SKIP)
public Builder color(Optional color) {
this.color = color;
@@ -1118,6 +1172,17 @@ public Builder color(String color) {
return this;
}
+ public Builder color(Nullable color) {
+ if (color.isNull()) {
+ this.color = null;
+ } else if (color.isEmpty()) {
+ this.color = Optional.empty();
+ } else {
+ this.color = Optional.of(color.get());
+ }
+ return this;
+ }
+
@JsonSetter(value = "opacity", nulls = Nulls.SKIP)
public Builder opacity(Optional opacity) {
this.opacity = opacity;
@@ -1283,6 +1348,7 @@ public AnnotationDraftCircle build() {
modifiedBy,
importedBy,
actions,
+ richText,
color,
opacity,
strokeWidth,
diff --git a/src/main/java/api/types/AnnotationDraftFileAttachment.java b/src/main/java/api/types/AnnotationDraftFileAttachment.java
index 6da2e9a..1f90431 100644
--- a/src/main/java/api/types/AnnotationDraftFileAttachment.java
+++ b/src/main/java/api/types/AnnotationDraftFileAttachment.java
@@ -86,6 +86,8 @@ public final class AnnotationDraftFileAttachment {
private final Optional actions;
+ private final Optional richText;
+
private final Optional color;
private final Optional opacity;
@@ -128,6 +130,7 @@ private AnnotationDraftFileAttachment(
Optional modifiedBy,
Optional importedBy,
Optional actions,
+ Optional richText,
Optional color,
Optional opacity,
Optional icon,
@@ -164,6 +167,7 @@ private AnnotationDraftFileAttachment(
this.modifiedBy = modifiedBy;
this.importedBy = importedBy;
this.actions = actions;
+ this.richText = richText;
this.color = color;
this.opacity = opacity;
this.icon = icon;
@@ -341,6 +345,14 @@ public Optional getActions() {
return actions;
}
+ @JsonIgnore
+ public Optional getRichText() {
+ if (richText == null) {
+ return Optional.empty();
+ }
+ return richText;
+ }
+
@JsonProperty("color")
public Optional getColor() {
return color;
@@ -394,6 +406,12 @@ private Optional _getGroupId() {
return groupId;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("richText")
+ private Optional _getRichText() {
+ return richText;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("file")
private Optional _getFile() {
@@ -443,6 +461,7 @@ private boolean equalTo(AnnotationDraftFileAttachment other) {
&& modifiedBy.equals(other.modifiedBy)
&& importedBy.equals(other.importedBy)
&& actions.equals(other.actions)
+ && richText.equals(other.richText)
&& color.equals(other.color)
&& opacity.equals(other.opacity)
&& icon.equals(other.icon)
@@ -483,6 +502,7 @@ public int hashCode() {
this.modifiedBy,
this.importedBy,
this.actions,
+ this.richText,
this.color,
this.opacity,
this.icon,
@@ -641,6 +661,12 @@ public interface _FinalStage {
_FinalStage actions(Object actions);
+ _FinalStage richText(Optional richText);
+
+ _FinalStage richText(RichTextDocumentInput richText);
+
+ _FinalStage richText(Nullable richText);
+
_FinalStage color(Optional color);
_FinalStage color(String color);
@@ -672,6 +698,8 @@ public static final class Builder implements RectStage, _FinalStage {
private Optional color = Optional.empty();
+ private Optional richText = Optional.empty();
+
private Optional actions = Optional.empty();
private Optional importedBy = Optional.empty();
@@ -770,6 +798,7 @@ public Builder from(AnnotationDraftFileAttachment other) {
modifiedBy(other.getModifiedBy());
importedBy(other.getImportedBy());
actions(other.getActions());
+ richText(other.getRichText());
color(other.getColor());
opacity(other.getOpacity());
icon(other.getIcon());
@@ -848,6 +877,31 @@ public _FinalStage color(Optional color) {
return this;
}
+ @java.lang.Override
+ public _FinalStage richText(Nullable richText) {
+ if (richText.isNull()) {
+ this.richText = null;
+ } else if (richText.isEmpty()) {
+ this.richText = Optional.empty();
+ } else {
+ this.richText = Optional.of(richText.get());
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage richText(RichTextDocumentInput richText) {
+ this.richText = Optional.ofNullable(richText);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "richText", nulls = Nulls.SKIP)
+ public _FinalStage richText(Optional richText) {
+ this.richText = richText;
+ return this;
+ }
+
@java.lang.Override
public _FinalStage actions(Object actions) {
this.actions = Optional.ofNullable(actions);
@@ -1332,6 +1386,7 @@ public AnnotationDraftFileAttachment build() {
modifiedBy,
importedBy,
actions,
+ richText,
color,
opacity,
icon,
diff --git a/src/main/java/api/types/AnnotationDraftFreeText.java b/src/main/java/api/types/AnnotationDraftFreeText.java
index ec7ed16..54d1207 100644
--- a/src/main/java/api/types/AnnotationDraftFreeText.java
+++ b/src/main/java/api/types/AnnotationDraftFreeText.java
@@ -86,6 +86,8 @@ public final class AnnotationDraftFreeText {
private final Optional actions;
+ private final Optional richText;
+
private final Optional box;
private final Optional rotation;
@@ -100,8 +102,6 @@ public final class AnnotationDraftFreeText {
private final Optional verticalAlign;
- private final Optional richText;
-
private final Optional color;
private final Optional fontColor;
@@ -156,6 +156,7 @@ private AnnotationDraftFreeText(
Optional modifiedBy,
Optional importedBy,
Optional actions,
+ Optional richText,
Optional box,
Optional rotation,
Optional intent,
@@ -163,7 +164,6 @@ private AnnotationDraftFreeText(
Optional fontSize,
Optional textAlign,
Optional verticalAlign,
- Optional richText,
Optional color,
Optional fontColor,
Optional interiorColor,
@@ -206,6 +206,7 @@ private AnnotationDraftFreeText(
this.modifiedBy = modifiedBy;
this.importedBy = importedBy;
this.actions = actions;
+ this.richText = richText;
this.box = box;
this.rotation = rotation;
this.intent = intent;
@@ -213,7 +214,6 @@ private AnnotationDraftFreeText(
this.fontSize = fontSize;
this.textAlign = textAlign;
this.verticalAlign = verticalAlign;
- this.richText = richText;
this.color = color;
this.fontColor = fontColor;
this.interiorColor = interiorColor;
@@ -397,6 +397,11 @@ public Optional getActions() {
return actions;
}
+ @JsonProperty("richText")
+ public Optional getRichText() {
+ return richText;
+ }
+
@JsonProperty("box")
public Optional getBox() {
return box;
@@ -435,11 +440,6 @@ public Optional getVerticalAlign() {
return verticalAlign;
}
- @JsonProperty("richText")
- public Optional getRichText() {
- return richText;
- }
-
@JsonProperty("color")
public Optional getColor() {
return color;
@@ -614,6 +614,7 @@ private boolean equalTo(AnnotationDraftFreeText other) {
&& modifiedBy.equals(other.modifiedBy)
&& importedBy.equals(other.importedBy)
&& actions.equals(other.actions)
+ && richText.equals(other.richText)
&& box.equals(other.box)
&& rotation.equals(other.rotation)
&& intent.equals(other.intent)
@@ -621,7 +622,6 @@ private boolean equalTo(AnnotationDraftFreeText other) {
&& fontSize.equals(other.fontSize)
&& textAlign.equals(other.textAlign)
&& verticalAlign.equals(other.verticalAlign)
- && richText.equals(other.richText)
&& color.equals(other.color)
&& fontColor.equals(other.fontColor)
&& interiorColor.equals(other.interiorColor)
@@ -668,6 +668,7 @@ public int hashCode() {
this.modifiedBy,
this.importedBy,
this.actions,
+ this.richText,
this.box,
this.rotation,
this.intent,
@@ -675,7 +676,6 @@ public int hashCode() {
this.fontSize,
this.textAlign,
this.verticalAlign,
- this.richText,
this.color,
this.fontColor,
this.interiorColor,
@@ -761,6 +761,8 @@ public static final class Builder {
private Optional actions = Optional.empty();
+ private Optional richText = Optional.empty();
+
private Optional box = Optional.empty();
private Optional rotation = Optional.empty();
@@ -775,8 +777,6 @@ public static final class Builder {
private Optional verticalAlign = Optional.empty();
- private Optional richText = Optional.empty();
-
private Optional color = Optional.empty();
private Optional fontColor = Optional.empty();
@@ -834,6 +834,7 @@ public Builder from(AnnotationDraftFreeText other) {
modifiedBy(other.getModifiedBy());
importedBy(other.getImportedBy());
actions(other.getActions());
+ richText(other.getRichText());
box(other.getBox());
rotation(other.getRotation());
intent(other.getIntent());
@@ -841,7 +842,6 @@ public Builder from(AnnotationDraftFreeText other) {
fontSize(other.getFontSize());
textAlign(other.getTextAlign());
verticalAlign(other.getVerticalAlign());
- richText(other.getRichText());
color(other.getColor());
fontColor(other.getFontColor());
interiorColor(other.getInteriorColor());
@@ -1251,6 +1251,17 @@ public Builder actions(Object actions) {
return this;
}
+ @JsonSetter(value = "richText", nulls = Nulls.SKIP)
+ public Builder richText(Optional richText) {
+ this.richText = richText;
+ return this;
+ }
+
+ public Builder richText(RichTextDocumentInput richText) {
+ this.richText = Optional.ofNullable(richText);
+ return this;
+ }
+
@JsonSetter(value = "box", nulls = Nulls.SKIP)
public Builder box(Optional box) {
this.box = box;
@@ -1339,17 +1350,6 @@ public Builder verticalAlign(AnnotationDraftFreeTextVerticalAlign verticalAlign)
return this;
}
- @JsonSetter(value = "richText", nulls = Nulls.SKIP)
- public Builder richText(Optional richText) {
- this.richText = richText;
- return this;
- }
-
- public Builder richText(AnnotationDraftFreeTextRichText richText) {
- this.richText = Optional.ofNullable(richText);
- return this;
- }
-
@JsonSetter(value = "color", nulls = Nulls.SKIP)
public Builder color(Optional color) {
this.color = color;
@@ -1548,6 +1548,7 @@ public AnnotationDraftFreeText build() {
modifiedBy,
importedBy,
actions,
+ richText,
box,
rotation,
intent,
@@ -1555,7 +1556,6 @@ public AnnotationDraftFreeText build() {
fontSize,
textAlign,
verticalAlign,
- richText,
color,
fontColor,
interiorColor,
diff --git a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItem.java b/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItem.java
deleted file mode 100644
index c03e1cc..0000000
--- a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItem.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-package com.cloudpdf.api.types;
-
-import com.cloudpdf.api.core.ObjectMappers;
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSetter;
-import com.fasterxml.jackson.annotation.Nulls;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Optional;
-
-@JsonInclude(JsonInclude.Include.NON_ABSENT)
-@JsonDeserialize(builder = AnnotationDraftFreeTextRichTextParagraphsItem.Builder.class)
-public final class AnnotationDraftFreeTextRichTextParagraphsItem {
- private final Optional align;
-
- private final Optional dir;
-
- private final Optional lineHeight;
-
- private final Optional margins;
-
- private final Optional textIndent;
-
- private final Optional unknown;
-
- private final List runs;
-
- private final Map additionalProperties;
-
- private AnnotationDraftFreeTextRichTextParagraphsItem(
- Optional align,
- Optional dir,
- Optional lineHeight,
- Optional margins,
- Optional textIndent,
- Optional unknown,
- List runs,
- Map additionalProperties) {
- this.align = align;
- this.dir = dir;
- this.lineHeight = lineHeight;
- this.margins = margins;
- this.textIndent = textIndent;
- this.unknown = unknown;
- this.runs = runs;
- this.additionalProperties = additionalProperties;
- }
-
- @JsonProperty("align")
- public Optional getAlign() {
- return align;
- }
-
- @JsonProperty("dir")
- public Optional getDir() {
- return dir;
- }
-
- @JsonProperty("lineHeight")
- public Optional getLineHeight() {
- return lineHeight;
- }
-
- @JsonProperty("margins")
- public Optional getMargins() {
- return margins;
- }
-
- @JsonProperty("textIndent")
- public Optional getTextIndent() {
- return textIndent;
- }
-
- @JsonProperty("unknown")
- public Optional getUnknown() {
- return unknown;
- }
-
- @JsonProperty("runs")
- public List getRuns() {
- return runs;
- }
-
- @java.lang.Override
- public boolean equals(Object other) {
- if (this == other) return true;
- return other instanceof AnnotationDraftFreeTextRichTextParagraphsItem
- && equalTo((AnnotationDraftFreeTextRichTextParagraphsItem) other);
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- private boolean equalTo(AnnotationDraftFreeTextRichTextParagraphsItem other) {
- return align.equals(other.align)
- && dir.equals(other.dir)
- && lineHeight.equals(other.lineHeight)
- && margins.equals(other.margins)
- && textIndent.equals(other.textIndent)
- && unknown.equals(other.unknown)
- && runs.equals(other.runs);
- }
-
- @java.lang.Override
- public int hashCode() {
- return Objects.hash(
- this.align, this.dir, this.lineHeight, this.margins, this.textIndent, this.unknown, this.runs);
- }
-
- @java.lang.Override
- public String toString() {
- return ObjectMappers.stringify(this);
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- @JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder {
- private Optional align = Optional.empty();
-
- private Optional dir = Optional.empty();
-
- private Optional lineHeight = Optional.empty();
-
- private Optional margins = Optional.empty();
-
- private Optional textIndent = Optional.empty();
-
- private Optional unknown = Optional.empty();
-
- private List runs = new ArrayList<>();
-
- @JsonAnySetter
- private Map additionalProperties = new HashMap<>();
-
- private Builder() {}
-
- public Builder from(AnnotationDraftFreeTextRichTextParagraphsItem other) {
- align(other.getAlign());
- dir(other.getDir());
- lineHeight(other.getLineHeight());
- margins(other.getMargins());
- textIndent(other.getTextIndent());
- unknown(other.getUnknown());
- runs(other.getRuns());
- return this;
- }
-
- @JsonSetter(value = "align", nulls = Nulls.SKIP)
- public Builder align(Optional align) {
- this.align = align;
- return this;
- }
-
- public Builder align(AnnotationDraftFreeTextRichTextParagraphsItemAlign align) {
- this.align = Optional.ofNullable(align);
- return this;
- }
-
- @JsonSetter(value = "dir", nulls = Nulls.SKIP)
- public Builder dir(Optional dir) {
- this.dir = dir;
- return this;
- }
-
- public Builder dir(AnnotationDraftFreeTextRichTextParagraphsItemDir dir) {
- this.dir = Optional.ofNullable(dir);
- return this;
- }
-
- @JsonSetter(value = "lineHeight", nulls = Nulls.SKIP)
- public Builder lineHeight(Optional lineHeight) {
- this.lineHeight = lineHeight;
- return this;
- }
-
- public Builder lineHeight(Double lineHeight) {
- this.lineHeight = Optional.ofNullable(lineHeight);
- return this;
- }
-
- @JsonSetter(value = "margins", nulls = Nulls.SKIP)
- public Builder margins(Optional margins) {
- this.margins = margins;
- return this;
- }
-
- public Builder margins(AnnotationDraftFreeTextRichTextParagraphsItemMargins margins) {
- this.margins = Optional.ofNullable(margins);
- return this;
- }
-
- @JsonSetter(value = "textIndent", nulls = Nulls.SKIP)
- public Builder textIndent(Optional textIndent) {
- this.textIndent = textIndent;
- return this;
- }
-
- public Builder textIndent(Double textIndent) {
- this.textIndent = Optional.ofNullable(textIndent);
- return this;
- }
-
- @JsonSetter(value = "unknown", nulls = Nulls.SKIP)
- public Builder unknown(Optional unknown) {
- this.unknown = unknown;
- return this;
- }
-
- public Builder unknown(String unknown) {
- this.unknown = Optional.ofNullable(unknown);
- return this;
- }
-
- @JsonSetter(value = "runs", nulls = Nulls.SKIP)
- public Builder runs(List runs) {
- this.runs.clear();
- if (runs != null) {
- this.runs.addAll(runs);
- }
- return this;
- }
-
- public Builder addRuns(AnnotationDraftFreeTextRichTextParagraphsItemRunsItem runs) {
- this.runs.add(runs);
- return this;
- }
-
- public Builder addAllRuns(List runs) {
- if (runs != null) {
- this.runs.addAll(runs);
- }
- return this;
- }
-
- public AnnotationDraftFreeTextRichTextParagraphsItem build() {
- return new AnnotationDraftFreeTextRichTextParagraphsItem(
- align, dir, lineHeight, margins, textIndent, unknown, runs, additionalProperties);
- }
-
- public Builder additionalProperty(String key, Object value) {
- this.additionalProperties.put(key, value);
- return this;
- }
-
- public Builder additionalProperties(Map additionalProperties) {
- this.additionalProperties.putAll(additionalProperties);
- return this;
- }
- }
-}
diff --git a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemAlign.java b/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemAlign.java
deleted file mode 100644
index e47e570..0000000
--- a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemAlign.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-package com.cloudpdf.api.types;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-public final class AnnotationDraftFreeTextRichTextParagraphsItemAlign {
- public static final AnnotationDraftFreeTextRichTextParagraphsItemAlign JUSTIFY =
- new AnnotationDraftFreeTextRichTextParagraphsItemAlign(Value.JUSTIFY, "justify");
-
- public static final AnnotationDraftFreeTextRichTextParagraphsItemAlign LEFT =
- new AnnotationDraftFreeTextRichTextParagraphsItemAlign(Value.LEFT, "left");
-
- public static final AnnotationDraftFreeTextRichTextParagraphsItemAlign RIGHT =
- new AnnotationDraftFreeTextRichTextParagraphsItemAlign(Value.RIGHT, "right");
-
- public static final AnnotationDraftFreeTextRichTextParagraphsItemAlign CENTER =
- new AnnotationDraftFreeTextRichTextParagraphsItemAlign(Value.CENTER, "center");
-
- private final Value value;
-
- private final String string;
-
- AnnotationDraftFreeTextRichTextParagraphsItemAlign(Value value, String string) {
- this.value = value;
- this.string = string;
- }
-
- public Value getEnumValue() {
- return value;
- }
-
- @java.lang.Override
- @JsonValue
- public String toString() {
- return this.string;
- }
-
- @java.lang.Override
- public boolean equals(Object other) {
- return (this == other)
- || (other instanceof AnnotationDraftFreeTextRichTextParagraphsItemAlign
- && this.string.equals(((AnnotationDraftFreeTextRichTextParagraphsItemAlign) other).string));
- }
-
- @java.lang.Override
- public int hashCode() {
- return this.string.hashCode();
- }
-
- public T visit(Visitor visitor) {
- switch (value) {
- case JUSTIFY:
- return visitor.visitJustify();
- case LEFT:
- return visitor.visitLeft();
- case RIGHT:
- return visitor.visitRight();
- case CENTER:
- return visitor.visitCenter();
- case UNKNOWN:
- default:
- return visitor.visitUnknown(string);
- }
- }
-
- @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
- public static AnnotationDraftFreeTextRichTextParagraphsItemAlign valueOf(String value) {
- switch (value) {
- case "justify":
- return JUSTIFY;
- case "left":
- return LEFT;
- case "right":
- return RIGHT;
- case "center":
- return CENTER;
- default:
- return new AnnotationDraftFreeTextRichTextParagraphsItemAlign(Value.UNKNOWN, value);
- }
- }
-
- public enum Value {
- LEFT,
-
- CENTER,
-
- RIGHT,
-
- JUSTIFY,
-
- UNKNOWN
- }
-
- public interface Visitor {
- T visitLeft();
-
- T visitCenter();
-
- T visitRight();
-
- T visitJustify();
-
- T visitUnknown(String unknownType);
- }
-}
diff --git a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemDir.java b/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemDir.java
deleted file mode 100644
index 7313a40..0000000
--- a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemDir.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-package com.cloudpdf.api.types;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-public final class AnnotationDraftFreeTextRichTextParagraphsItemDir {
- public static final AnnotationDraftFreeTextRichTextParagraphsItemDir LTR =
- new AnnotationDraftFreeTextRichTextParagraphsItemDir(Value.LTR, "ltr");
-
- public static final AnnotationDraftFreeTextRichTextParagraphsItemDir RTL =
- new AnnotationDraftFreeTextRichTextParagraphsItemDir(Value.RTL, "rtl");
-
- private final Value value;
-
- private final String string;
-
- AnnotationDraftFreeTextRichTextParagraphsItemDir(Value value, String string) {
- this.value = value;
- this.string = string;
- }
-
- public Value getEnumValue() {
- return value;
- }
-
- @java.lang.Override
- @JsonValue
- public String toString() {
- return this.string;
- }
-
- @java.lang.Override
- public boolean equals(Object other) {
- return (this == other)
- || (other instanceof AnnotationDraftFreeTextRichTextParagraphsItemDir
- && this.string.equals(((AnnotationDraftFreeTextRichTextParagraphsItemDir) other).string));
- }
-
- @java.lang.Override
- public int hashCode() {
- return this.string.hashCode();
- }
-
- public T visit(Visitor visitor) {
- switch (value) {
- case LTR:
- return visitor.visitLtr();
- case RTL:
- return visitor.visitRtl();
- case UNKNOWN:
- default:
- return visitor.visitUnknown(string);
- }
- }
-
- @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
- public static AnnotationDraftFreeTextRichTextParagraphsItemDir valueOf(String value) {
- switch (value) {
- case "ltr":
- return LTR;
- case "rtl":
- return RTL;
- default:
- return new AnnotationDraftFreeTextRichTextParagraphsItemDir(Value.UNKNOWN, value);
- }
- }
-
- public enum Value {
- LTR,
-
- RTL,
-
- UNKNOWN
- }
-
- public interface Visitor {
- T visitLtr();
-
- T visitRtl();
-
- T visitUnknown(String unknownType);
- }
-}
diff --git a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemMargins.java b/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemMargins.java
deleted file mode 100644
index 1f78018..0000000
--- a/src/main/java/api/types/AnnotationDraftFreeTextRichTextParagraphsItemMargins.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-package com.cloudpdf.api.types;
-
-import com.cloudpdf.api.core.ObjectMappers;
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSetter;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-@JsonInclude(JsonInclude.Include.NON_ABSENT)
-@JsonDeserialize(builder = AnnotationDraftFreeTextRichTextParagraphsItemMargins.Builder.class)
-public final class AnnotationDraftFreeTextRichTextParagraphsItemMargins {
- private final double top;
-
- private final double bottom;
-
- private final double left;
-
- private final double right;
-
- private final Map