Skip to content

Commit aa33404

Browse files
cloudpdf-sdk-release[bot]cloudpdf-sdk-bot
andauthored
chore: generate CloudPDF Java SDK 3.0.0-alpha.10 (#12)
Co-authored-by: cloudpdf-sdk-bot <hello@cloudpdf.com>
1 parent e2bb3bf commit aa33404

1,332 files changed

Lines changed: 296620 additions & 69 deletions

File tree

Some content is hidden

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

‎.fern/metadata.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"base-exception-class-name": "CloudPDFException",
1111
"base-api-exception-class-name": "CloudPDFApiException"
1212
},
13-
"originGitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd",
13+
"originGitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2",
1414
"originGitCommitIsDirty": false,
1515
"invokedBy": "ci",
16-
"requestedVersion": "3.0.0-alpha.9",
16+
"requestedVersion": "3.0.0-alpha.10",
1717
"ciProvider": "github"
1818
}

‎build.gradle‎

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

4747
group = 'com.cloudpdf'
4848

49-
version = '3.0.0-alpha.9'
49+
version = '3.0.0-alpha.10'
5050

5151
jar {
5252
dependsOn(":generatePomFileForMavenPublication")
@@ -73,7 +73,7 @@ publishing {
7373
maven(MavenPublication) {
7474
groupId = 'com.cloudpdf'
7575
artifactId = 'sdk'
76-
version = '3.0.0-alpha.9'
76+
version = '3.0.0-alpha.10'
7777
from components.java
7878
pom {
7979
name = 'CloudPDF'

‎cloudpdf-generation.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"language": "java",
3-
"canonicalVersion": "3.0.0-next.9",
4-
"sdkVersion": "3.0.0-alpha.9",
3+
"canonicalVersion": "3.0.0-next.10",
4+
"sdkVersion": "3.0.0-alpha.10",
55
"source": {
66
"repository": "embedpdf/embed-pdf-viewer",
77
"openapi": "cloudpdf/contract/openapi.json",
8-
"openapiSha256": "4ee27900dbb0b13408ce00a0e80d606444ab81e9d5a76186fa984c8c8dfe09fe",
9-
"gitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd",
8+
"openapiSha256": "9d6c7cdd459982ba9e718a3842c969003b466e3fd73883fef7783dc78e12cdfe",
9+
"gitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2",
1010
"gitCommitIsDirty": false
1111
},
1212
"fern": {

‎reference.md‎

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,6 +2032,82 @@ client.tokens().revoke(
20322032
</details>
20332033

20342034
## Doc Annotations
2035+
<details><summary><code>client.doc.annotations.listAll(docId, layerName) -> DocAnnotationsListAll200Response</code></summary>
2036+
<dl>
2037+
<dd>
2038+
2039+
#### 📝 Description
2040+
2041+
<dl>
2042+
<dd>
2043+
2044+
<dl>
2045+
<dd>
2046+
2047+
Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by `pageState.pageObjectNumber` when display order matters.
2048+
</dd>
2049+
</dl>
2050+
</dd>
2051+
</dl>
2052+
2053+
#### 🔌 Usage
2054+
2055+
<dl>
2056+
<dd>
2057+
2058+
<dl>
2059+
<dd>
2060+
2061+
```java
2062+
client.doc().annotations().listAll(
2063+
"docId",
2064+
"layerName",
2065+
ListAllAnnotationsRequest
2066+
.builder()
2067+
.build()
2068+
);
2069+
```
2070+
</dd>
2071+
</dl>
2072+
</dd>
2073+
</dl>
2074+
2075+
#### ⚙️ Parameters
2076+
2077+
<dl>
2078+
<dd>
2079+
2080+
<dl>
2081+
<dd>
2082+
2083+
**docId:** `String`
2084+
2085+
</dd>
2086+
</dl>
2087+
2088+
<dl>
2089+
<dd>
2090+
2091+
**layerName:** `String`
2092+
2093+
</dd>
2094+
</dl>
2095+
2096+
<dl>
2097+
<dd>
2098+
2099+
**documentPassword:** `Optional<String>` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.
2100+
2101+
</dd>
2102+
</dl>
2103+
</dd>
2104+
</dl>
2105+
2106+
2107+
</dd>
2108+
</dl>
2109+
</details>
2110+
20352111
<details><summary><code>client.doc.annotations.list(docId, layerName, pon) -> DocAnnotationsList200Response</code></summary>
20362112
<dl>
20372113
<dd>

‎src/main/java/api/core/ClientOptions.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private ClientOptions(
4949
{
5050
put("X-Fern-Language", "JAVA");
5151
put("X-Fern-SDK-Name", "com.cloudpdf:sdk");
52-
put("X-Fern-SDK-Version", "3.0.0-alpha.9");
52+
put("X-Fern-SDK-Version", "3.0.0-alpha.10");
5353
}
5454
});
5555
this.headerSuppliers = headerSuppliers;

‎src/main/java/api/errors/ConflictError.java‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44
package com.cloudpdf.api.errors;
55

66
import com.cloudpdf.api.core.CloudPDFApiException;
7-
import com.cloudpdf.api.types.DocumentsUploadProxy409Response;
87
import okhttp3.Response;
98

109
public final class ConflictError extends CloudPDFApiException {
1110
/**
1211
* The body of the response that triggered the exception.
1312
*/
14-
private final DocumentsUploadProxy409Response body;
13+
private final Object body;
1514

16-
public ConflictError(DocumentsUploadProxy409Response body) {
15+
public ConflictError(Object body) {
1716
super("ConflictError", 409, body);
1817
this.body = body;
1918
}
2019

21-
public ConflictError(DocumentsUploadProxy409Response body, Response rawResponse) {
20+
public ConflictError(Object body, Response rawResponse) {
2221
super("ConflictError", 409, body, rawResponse);
2322
this.body = body;
2423
}
@@ -27,7 +26,7 @@ public ConflictError(DocumentsUploadProxy409Response body, Response rawResponse)
2726
* @return the body
2827
*/
2928
@java.lang.Override
30-
public DocumentsUploadProxy409Response body() {
29+
public Object body() {
3130
return this.body;
3231
}
3332
}

‎src/main/java/api/resources/doc/annotations/AnnotationsClient.java‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
import com.cloudpdf.api.core.RequestOptions;
88
import com.cloudpdf.api.resources.doc.annotations.requests.CreateAnnotationsRequest;
99
import com.cloudpdf.api.resources.doc.annotations.requests.DeleteAnnotationsRequest;
10+
import com.cloudpdf.api.resources.doc.annotations.requests.ListAllAnnotationsRequest;
1011
import com.cloudpdf.api.resources.doc.annotations.requests.ListAnnotationsRequest;
1112
import com.cloudpdf.api.resources.doc.annotations.requests.UpdateAnnotationsRequest;
1213
import com.cloudpdf.api.types.DocAnnotationsCreate200Response;
1314
import com.cloudpdf.api.types.DocAnnotationsDelete200Response;
1415
import com.cloudpdf.api.types.DocAnnotationsList200Response;
16+
import com.cloudpdf.api.types.DocAnnotationsListAll200Response;
1517
import com.cloudpdf.api.types.DocAnnotationsUpdate200Response;
1618
import java.util.Map;
1719

@@ -32,6 +34,35 @@ public RawAnnotationsClient withRawResponse() {
3234
return this.rawClient;
3335
}
3436

37+
/**
38+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
39+
*/
40+
public DocAnnotationsListAll200Response listAll(String docId, String layerName) {
41+
return this.rawClient.listAll(docId, layerName).body();
42+
}
43+
44+
/**
45+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
46+
*/
47+
public DocAnnotationsListAll200Response listAll(String docId, String layerName, RequestOptions requestOptions) {
48+
return this.rawClient.listAll(docId, layerName, requestOptions).body();
49+
}
50+
51+
/**
52+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
53+
*/
54+
public DocAnnotationsListAll200Response listAll(String docId, String layerName, ListAllAnnotationsRequest request) {
55+
return this.rawClient.listAll(docId, layerName, request).body();
56+
}
57+
58+
/**
59+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
60+
*/
61+
public DocAnnotationsListAll200Response listAll(
62+
String docId, String layerName, ListAllAnnotationsRequest request, RequestOptions requestOptions) {
63+
return this.rawClient.listAll(docId, layerName, request, requestOptions).body();
64+
}
65+
3566
public DocAnnotationsList200Response list(String docId, String layerName, int pon) {
3667
return this.rawClient.list(docId, layerName, pon).body();
3768
}

‎src/main/java/api/resources/doc/annotations/AsyncAnnotationsClient.java‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
import com.cloudpdf.api.core.RequestOptions;
88
import com.cloudpdf.api.resources.doc.annotations.requests.CreateAnnotationsRequest;
99
import com.cloudpdf.api.resources.doc.annotations.requests.DeleteAnnotationsRequest;
10+
import com.cloudpdf.api.resources.doc.annotations.requests.ListAllAnnotationsRequest;
1011
import com.cloudpdf.api.resources.doc.annotations.requests.ListAnnotationsRequest;
1112
import com.cloudpdf.api.resources.doc.annotations.requests.UpdateAnnotationsRequest;
1213
import com.cloudpdf.api.types.DocAnnotationsCreate200Response;
1314
import com.cloudpdf.api.types.DocAnnotationsDelete200Response;
1415
import com.cloudpdf.api.types.DocAnnotationsList200Response;
16+
import com.cloudpdf.api.types.DocAnnotationsListAll200Response;
1517
import com.cloudpdf.api.types.DocAnnotationsUpdate200Response;
1618
import java.util.Map;
1719
import java.util.concurrent.CompletableFuture;
@@ -33,6 +35,37 @@ public AsyncRawAnnotationsClient withRawResponse() {
3335
return this.rawClient;
3436
}
3537

38+
/**
39+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
40+
*/
41+
public CompletableFuture<DocAnnotationsListAll200Response> listAll(String docId, String layerName) {
42+
return this.rawClient.listAll(docId, layerName).thenApply(response -> response.body());
43+
}
44+
45+
/**
46+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
47+
*/
48+
public CompletableFuture<DocAnnotationsListAll200Response> listAll(
49+
String docId, String layerName, RequestOptions requestOptions) {
50+
return this.rawClient.listAll(docId, layerName, requestOptions).thenApply(response -> response.body());
51+
}
52+
53+
/**
54+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
55+
*/
56+
public CompletableFuture<DocAnnotationsListAll200Response> listAll(
57+
String docId, String layerName, ListAllAnnotationsRequest request) {
58+
return this.rawClient.listAll(docId, layerName, request).thenApply(response -> response.body());
59+
}
60+
61+
/**
62+
* Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by <code>pageState.pageObjectNumber</code> when display order matters.
63+
*/
64+
public CompletableFuture<DocAnnotationsListAll200Response> listAll(
65+
String docId, String layerName, ListAllAnnotationsRequest request, RequestOptions requestOptions) {
66+
return this.rawClient.listAll(docId, layerName, request, requestOptions).thenApply(response -> response.body());
67+
}
68+
3669
public CompletableFuture<DocAnnotationsList200Response> list(String docId, String layerName, int pon) {
3770
return this.rawClient.list(docId, layerName, pon).thenApply(response -> response.body());
3871
}

0 commit comments

Comments
 (0)