diff --git a/.fern/metadata.json b/.fern/metadata.json
index 8819ebf..4c70a72 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -10,10 +10,10 @@
"base-exception-class-name": "CloudPDFException",
"base-api-exception-class-name": "CloudPDFApiException"
},
- "originGitCommit": "08782e4eef6cd6ccce4b6a6883408d9915a2d7c4",
+ "originGitCommit": "b0888bd6ca83627cb07ea05c440e35c183cebbd0",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
- "requestedVersion": "3.0.0-next.11",
+ "requestedVersion": "3.0.0-next.12",
"ciProvider": "github",
- "sdkVersion": "3.0.0-next.11"
+ "sdkVersion": "3.0.0-next.12"
}
\ No newline at end of file
diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json
index db9259d..1faf5bc 100644
--- a/cloudpdf-generation.json
+++ b/cloudpdf-generation.json
@@ -1,12 +1,12 @@
{
"language": "csharp",
- "canonicalVersion": "3.0.0-next.11",
- "sdkVersion": "3.0.0-next.11",
+ "canonicalVersion": "3.0.0-next.12",
+ "sdkVersion": "3.0.0-next.12",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
- "openapiSha256": "7bc0eea37724b3e359b0437edc3102b137e3d3f499293c89bb2b3293c6e3b614",
- "gitCommit": "08782e4eef6cd6ccce4b6a6883408d9915a2d7c4",
+ "openapiSha256": "501ec54f2f28089dc8a3cf3a8d2ff3ade44c6c35d47977a3dfa47465fb83a049",
+ "gitCommit": "b0888bd6ca83627cb07ea05c440e35c183cebbd0",
"gitCommitIsDirty": false
},
"fern": {
diff --git a/reference.md b/reference.md
index ba99d57..2d21f95 100644
--- a/reference.md
+++ b/reference.md
@@ -1660,6 +1660,108 @@ await client.Doc.Annotations.UpdateAsync(
+
+
+
+
+client.Doc.Annotations.ExportAppearanceAsync(ExportAppearanceAnnotationsRequest { ... }) -> WithRawResponseTask<Stream>
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```csharp
+await client.Doc.Annotations.ExportAppearanceAsync(
+ new ExportAppearanceAnnotationsRequest
+ {
+ DocId = "docId",
+ LayerName = "layerName",
+ Pon = 1,
+ Body = new Dictionary()
+ {
+ {
+ "string",
+ new Dictionary
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `ExportAppearanceAnnotationsRequest`
+
+
+
+
+
+
+
+
+
+
+
+client.Doc.Annotations.FlattenAsync(FlattenAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsFlatten200Response>
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```csharp
+await client.Doc.Annotations.FlattenAsync(
+ new FlattenAnnotationsRequest
+ {
+ DocId = "docId",
+ LayerName = "layerName",
+ Pon = 1,
+ Body = new Dictionary() { { "key", "value" } },
+ }
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `FlattenAnnotationsRequest`
+
+
+
+
+
+
+
@@ -2254,6 +2356,100 @@ await client.Doc.Pages.MoveAsync(
+
+
+
+
+client.Doc.Pages.SetNameAsync(SetNamePagesRequest { ... }) -> WithRawResponseTask<DocPagesSetName200Response>
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```csharp
+await client.Doc.Pages.SetNameAsync(
+ new SetNamePagesRequest
+ {
+ DocId = "docId",
+ LayerName = "layerName",
+ Body = new Dictionary() { { "key", "value" } },
+ }
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `SetNamePagesRequest`
+
+
+
+
+
+
+
+
+
+
+
+client.Doc.Pages.RemoveNameAsync(RemoveNamePagesRequest { ... }) -> WithRawResponseTask<DocPagesRemoveName200Response>
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```csharp
+await client.Doc.Pages.RemoveNameAsync(
+ new RemoveNamePagesRequest
+ {
+ DocId = "docId",
+ LayerName = "layerName",
+ Body = new Dictionary() { { "key", "value" } },
+ }
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `RemoveNamePagesRequest`
+
+
+
+
+
+
+
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/FlattenTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/FlattenTest.cs
new file mode 100644
index 0000000..8f9288b
--- /dev/null
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/FlattenTest.cs
@@ -0,0 +1,179 @@
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
+using NUnit.Framework;
+
+namespace CloudPDF.Test.Unit.MockServer.Doc.Annotations;
+
+[TestFixture]
+[Parallelizable(ParallelScope.Self)]
+public class FlattenTest : BaseMockServerTest
+{
+ [NUnit.Framework.Test]
+ public async Task MockServerTest_1()
+ {
+ const string requestJson = """
+ {
+ "string": {
+ "key": "value"
+ }
+ }
+ """;
+
+ const string mockResponse = """
+ {
+ "meta": {
+ "affectedPages": [
+ {
+ "pageObjectNumber": 1,
+ "revision": {
+ "docSessionId": "docSessionId",
+ "pageObjectNumber": 1,
+ "generation": 1
+ },
+ "weakAnnotationState": {
+ "kind": "unknown"
+ }
+ },
+ {
+ "pageObjectNumber": 1,
+ "revision": {
+ "docSessionId": "docSessionId",
+ "pageObjectNumber": 1,
+ "generation": 1
+ },
+ "weakAnnotationState": {
+ "kind": "unknown"
+ }
+ }
+ ],
+ "cacheDelta": {
+ "previousDocVersion": 1,
+ "docVersion": 1,
+ "annotationsVersion": 1,
+ "pages": [
+ {
+ "pageObjectNumber": 1,
+ "cache": {
+ "contentVersion": 1,
+ "annotationVersion": 1
+ }
+ },
+ {
+ "pageObjectNumber": 1,
+ "cache": {
+ "contentVersion": 1,
+ "annotationVersion": 1
+ }
+ }
+ ]
+ }
+ }
+ }
+ """;
+
+ Server
+ .Given(
+ WireMock
+ .RequestBuilders.Request.Create()
+ .WithPath("/v1/docs/docId/layers/layerName/annotations/pages/1/items/flatten")
+ .WithHeader("Content-Type", "application/json")
+ .UsingPost()
+ .WithBodyAsJson(requestJson)
+ )
+ .RespondWith(
+ WireMock
+ .ResponseBuilders.Response.Create()
+ .WithStatusCode(200)
+ .WithBody(mockResponse)
+ );
+
+ var response = await Client.Doc.Annotations.FlattenAsync(
+ new FlattenAnnotationsRequest
+ {
+ DocId = "docId",
+ LayerName = "layerName",
+ Pon = 1,
+ Body = new Dictionary()
+ {
+ {
+ "string",
+ new Dictionary