Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"base-exception-class-name": "CloudPDFException",
"base-api-exception-class-name": "CloudPDFApiException"
},
"originGitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd",
"originGitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.0.0-alpha.9",
"requestedVersion": "3.0.0-alpha.10",
"ciProvider": "github"
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ java {

group = 'com.cloudpdf'

version = '3.0.0-alpha.9'
version = '3.0.0-alpha.10'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand All @@ -73,7 +73,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.cloudpdf'
artifactId = 'sdk'
version = '3.0.0-alpha.9'
version = '3.0.0-alpha.10'
from components.java
pom {
name = 'CloudPDF'
Expand Down
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"language": "java",
"canonicalVersion": "3.0.0-next.9",
"sdkVersion": "3.0.0-alpha.9",
"canonicalVersion": "3.0.0-next.10",
"sdkVersion": "3.0.0-alpha.10",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "4ee27900dbb0b13408ce00a0e80d606444ab81e9d5a76186fa984c8c8dfe09fe",
"gitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd",
"openapiSha256": "9d6c7cdd459982ba9e718a3842c969003b466e3fd73883fef7783dc78e12cdfe",
"gitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
76 changes: 76 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,82 @@ client.tokens().revoke(
</details>

## Doc Annotations
<details><summary><code>client.doc.annotations.listAll(docId, layerName) -> DocAnnotationsListAll200Response</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

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.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.doc().annotations().listAll(
"docId",
"layerName",
ListAllAnnotationsRequest
.builder()
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**docId:** `String`

</dd>
</dl>

<dl>
<dd>

**layerName:** `String`

</dd>
</dl>

<dl>
<dd>

**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.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.doc.annotations.list(docId, layerName, pon) -> DocAnnotationsList200Response</code></summary>
<dl>
<dd>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.9");
put("X-Fern-SDK-Version", "3.0.0-alpha.10");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
9 changes: 4 additions & 5 deletions src/main/java/api/errors/ConflictError.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
package com.cloudpdf.api.errors;

import com.cloudpdf.api.core.CloudPDFApiException;
import com.cloudpdf.api.types.DocumentsUploadProxy409Response;
import okhttp3.Response;

public final class ConflictError extends CloudPDFApiException {
/**
* The body of the response that triggered the exception.
*/
private final DocumentsUploadProxy409Response body;
private final Object body;

public ConflictError(DocumentsUploadProxy409Response body) {
public ConflictError(Object body) {
super("ConflictError", 409, body);
this.body = body;
}

public ConflictError(DocumentsUploadProxy409Response body, Response rawResponse) {
public ConflictError(Object body, Response rawResponse) {
super("ConflictError", 409, body, rawResponse);
this.body = body;
}
Expand All @@ -27,7 +26,7 @@ public ConflictError(DocumentsUploadProxy409Response body, Response rawResponse)
* @return the body
*/
@java.lang.Override
public DocumentsUploadProxy409Response body() {
public Object body() {
return this.body;
}
}
31 changes: 31 additions & 0 deletions src/main/java/api/resources/doc/annotations/AnnotationsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
import com.cloudpdf.api.core.RequestOptions;
import com.cloudpdf.api.resources.doc.annotations.requests.CreateAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.DeleteAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.ListAllAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.ListAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.UpdateAnnotationsRequest;
import com.cloudpdf.api.types.DocAnnotationsCreate200Response;
import com.cloudpdf.api.types.DocAnnotationsDelete200Response;
import com.cloudpdf.api.types.DocAnnotationsList200Response;
import com.cloudpdf.api.types.DocAnnotationsListAll200Response;
import com.cloudpdf.api.types.DocAnnotationsUpdate200Response;
import java.util.Map;

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

/**
* 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.
*/
public DocAnnotationsListAll200Response listAll(String docId, String layerName) {
return this.rawClient.listAll(docId, layerName).body();
}

/**
* 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.
*/
public DocAnnotationsListAll200Response listAll(String docId, String layerName, RequestOptions requestOptions) {
return this.rawClient.listAll(docId, layerName, requestOptions).body();
}

/**
* 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.
*/
public DocAnnotationsListAll200Response listAll(String docId, String layerName, ListAllAnnotationsRequest request) {
return this.rawClient.listAll(docId, layerName, request).body();
}

/**
* 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.
*/
public DocAnnotationsListAll200Response listAll(
String docId, String layerName, ListAllAnnotationsRequest request, RequestOptions requestOptions) {
return this.rawClient.listAll(docId, layerName, request, requestOptions).body();
}

public DocAnnotationsList200Response list(String docId, String layerName, int pon) {
return this.rawClient.list(docId, layerName, pon).body();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
import com.cloudpdf.api.core.RequestOptions;
import com.cloudpdf.api.resources.doc.annotations.requests.CreateAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.DeleteAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.ListAllAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.ListAnnotationsRequest;
import com.cloudpdf.api.resources.doc.annotations.requests.UpdateAnnotationsRequest;
import com.cloudpdf.api.types.DocAnnotationsCreate200Response;
import com.cloudpdf.api.types.DocAnnotationsDelete200Response;
import com.cloudpdf.api.types.DocAnnotationsList200Response;
import com.cloudpdf.api.types.DocAnnotationsListAll200Response;
import com.cloudpdf.api.types.DocAnnotationsUpdate200Response;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
Expand All @@ -33,6 +35,37 @@ public AsyncRawAnnotationsClient withRawResponse() {
return this.rawClient;
}

/**
* 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.
*/
public CompletableFuture<DocAnnotationsListAll200Response> listAll(String docId, String layerName) {
return this.rawClient.listAll(docId, layerName).thenApply(response -> response.body());
}

/**
* 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.
*/
public CompletableFuture<DocAnnotationsListAll200Response> listAll(
String docId, String layerName, RequestOptions requestOptions) {
return this.rawClient.listAll(docId, layerName, requestOptions).thenApply(response -> response.body());
}

/**
* 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.
*/
public CompletableFuture<DocAnnotationsListAll200Response> listAll(
String docId, String layerName, ListAllAnnotationsRequest request) {
return this.rawClient.listAll(docId, layerName, request).thenApply(response -> response.body());
}

/**
* 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.
*/
public CompletableFuture<DocAnnotationsListAll200Response> listAll(
String docId, String layerName, ListAllAnnotationsRequest request, RequestOptions requestOptions) {
return this.rawClient.listAll(docId, layerName, request, requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<DocAnnotationsList200Response> list(String docId, String layerName, int pon) {
return this.rawClient.list(docId, layerName, pon).thenApply(response -> response.body());
}
Expand Down
Loading
Loading