diff --git a/.fern/metadata.json b/.fern/metadata.json
index 24eedb9..dd87523 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": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd",
+ "originGitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
- "requestedVersion": "3.0.0-next.9",
+ "requestedVersion": "3.0.0-next.10",
"ciProvider": "github",
- "sdkVersion": "3.0.0-next.9"
+ "sdkVersion": "3.0.0-next.10"
}
\ No newline at end of file
diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json
index 2fadc6f..9019088 100644
--- a/cloudpdf-generation.json
+++ b/cloudpdf-generation.json
@@ -1,12 +1,12 @@
{
"language": "csharp",
- "canonicalVersion": "3.0.0-next.9",
- "sdkVersion": "3.0.0-next.9",
+ "canonicalVersion": "3.0.0-next.10",
+ "sdkVersion": "3.0.0-next.10",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
- "openapiSha256": "4ee27900dbb0b13408ce00a0e80d606444ab81e9d5a76186fa984c8c8dfe09fe",
- "gitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd",
+ "openapiSha256": "9d6c7cdd459982ba9e718a3842c969003b466e3fd73883fef7783dc78e12cdfe",
+ "gitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2",
"gitCommitIsDirty": false
},
"fern": {
diff --git a/reference.md b/reference.md
index 0159a9d..ba99d57 100644
--- a/reference.md
+++ b/reference.md
@@ -1402,6 +1402,62 @@ await client.Tokens.RevokeAsync(new TokensRevokeRequest { TenantId = "tenantId",
## Doc Annotations
+client.Doc.Annotations.ListAllAsync (ListAllAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsListAll200Response>
+
+
+
+#### 📝 Description
+
+
+
+
+
+
+
+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.
+
+
+
+
+
+#### 🔌 Usage
+
+
+
+
+
+
+
+```csharp
+await client.Doc.Annotations.ListAllAsync(
+ new ListAllAnnotationsRequest { DocId = "docId", LayerName = "layerName" }
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+
+
+
+
+
+**request:** `ListAllAnnotationsRequest`
+
+
+
+
+
+
+
+
+
+
+
client.Doc.Annotations.ListAsync (ListAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsList200Response>
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
index 8ce03c3..5559150 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -133,6 +134,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
index 4f06266..04a8e69 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
@@ -42,6 +42,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -111,6 +112,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListAllTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListAllTest.cs
new file mode 100644
index 0000000..a3ff029
--- /dev/null
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListAllTest.cs
@@ -0,0 +1,894 @@
+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 ListAllTest : BaseMockServerTest
+{
+ [NUnit.Framework.Test]
+ public async Task MockServerTest_1()
+ {
+ const string mockResponse = """
+ {
+ "pages": [
+ {
+ "pageState": {
+ "pageObjectNumber": 1,
+ "revision": {
+ "docSessionId": "docSessionId",
+ "pageObjectNumber": 1,
+ "generation": 1
+ },
+ "weakAnnotationState": {
+ "kind": "unknown"
+ }
+ },
+ "annotations": [
+ {
+ "subtype": "highlight",
+ "ref": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "pageObjectNumber": 1,
+ "index": 1,
+ "identityQuality": "durable",
+ "nm": "nm",
+ "flags": {
+ "invisible": true,
+ "hidden": true,
+ "print": true,
+ "noZoom": true,
+ "noRotate": true,
+ "noView": true,
+ "readOnly": true,
+ "locked": true,
+ "toggleNoView": true,
+ "lockedContents": true
+ },
+ "rect": {
+ "left": 1.1,
+ "bottom": 1.1,
+ "right": 1.1,
+ "top": 1.1
+ },
+ "contents": "contents",
+ "subject": "subject",
+ "author": "author",
+ "created": "2024-01-15T09:30:00.000Z",
+ "modified": "2024-01-15T09:30:00.000Z",
+ "blendMode": "normal",
+ "inReplyTo": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "replyType": "reply",
+ "userId": "userId",
+ "groupId": "groupId",
+ "createdBy": "createdBy",
+ "updatedBy": "updatedBy",
+ "actions": {
+ "activate": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorEnter": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorExit": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseDown": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseUp": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "focus": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "blur": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageOpen": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageClose": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageVisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageInvisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ }
+ },
+ "color": {
+ "r": 255,
+ "g": 255,
+ "b": 255
+ },
+ "opacity": 1,
+ "quadPoints": [
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ },
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ }
+ ]
+ },
+ {
+ "subtype": "highlight",
+ "ref": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "pageObjectNumber": 1,
+ "index": 1,
+ "identityQuality": "durable",
+ "nm": "nm",
+ "flags": {
+ "invisible": true,
+ "hidden": true,
+ "print": true,
+ "noZoom": true,
+ "noRotate": true,
+ "noView": true,
+ "readOnly": true,
+ "locked": true,
+ "toggleNoView": true,
+ "lockedContents": true
+ },
+ "rect": {
+ "left": 1.1,
+ "bottom": 1.1,
+ "right": 1.1,
+ "top": 1.1
+ },
+ "contents": "contents",
+ "subject": "subject",
+ "author": "author",
+ "created": "2024-01-15T09:30:00.000Z",
+ "modified": "2024-01-15T09:30:00.000Z",
+ "blendMode": "normal",
+ "inReplyTo": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "replyType": "reply",
+ "userId": "userId",
+ "groupId": "groupId",
+ "createdBy": "createdBy",
+ "updatedBy": "updatedBy",
+ "actions": {
+ "activate": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorEnter": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorExit": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseDown": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseUp": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "focus": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "blur": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageOpen": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageClose": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageVisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageInvisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ }
+ },
+ "color": {
+ "r": 255,
+ "g": 255,
+ "b": 255
+ },
+ "opacity": 1,
+ "quadPoints": [
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ },
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "pageState": {
+ "pageObjectNumber": 1,
+ "revision": {
+ "docSessionId": "docSessionId",
+ "pageObjectNumber": 1,
+ "generation": 1
+ },
+ "weakAnnotationState": {
+ "kind": "unknown"
+ }
+ },
+ "annotations": [
+ {
+ "subtype": "highlight",
+ "ref": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "pageObjectNumber": 1,
+ "index": 1,
+ "identityQuality": "durable",
+ "nm": "nm",
+ "flags": {
+ "invisible": true,
+ "hidden": true,
+ "print": true,
+ "noZoom": true,
+ "noRotate": true,
+ "noView": true,
+ "readOnly": true,
+ "locked": true,
+ "toggleNoView": true,
+ "lockedContents": true
+ },
+ "rect": {
+ "left": 1.1,
+ "bottom": 1.1,
+ "right": 1.1,
+ "top": 1.1
+ },
+ "contents": "contents",
+ "subject": "subject",
+ "author": "author",
+ "created": "2024-01-15T09:30:00.000Z",
+ "modified": "2024-01-15T09:30:00.000Z",
+ "blendMode": "normal",
+ "inReplyTo": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "replyType": "reply",
+ "userId": "userId",
+ "groupId": "groupId",
+ "createdBy": "createdBy",
+ "updatedBy": "updatedBy",
+ "actions": {
+ "activate": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorEnter": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorExit": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseDown": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseUp": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "focus": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "blur": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageOpen": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageClose": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageVisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageInvisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ }
+ },
+ "color": {
+ "r": 255,
+ "g": 255,
+ "b": 255
+ },
+ "opacity": 1,
+ "quadPoints": [
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ },
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ }
+ ]
+ },
+ {
+ "subtype": "highlight",
+ "ref": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "pageObjectNumber": 1,
+ "index": 1,
+ "identityQuality": "durable",
+ "nm": "nm",
+ "flags": {
+ "invisible": true,
+ "hidden": true,
+ "print": true,
+ "noZoom": true,
+ "noRotate": true,
+ "noView": true,
+ "readOnly": true,
+ "locked": true,
+ "toggleNoView": true,
+ "lockedContents": true
+ },
+ "rect": {
+ "left": 1.1,
+ "bottom": 1.1,
+ "right": 1.1,
+ "top": 1.1
+ },
+ "contents": "contents",
+ "subject": "subject",
+ "author": "author",
+ "created": "2024-01-15T09:30:00.000Z",
+ "modified": "2024-01-15T09:30:00.000Z",
+ "blendMode": "normal",
+ "inReplyTo": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "replyType": "reply",
+ "userId": "userId",
+ "groupId": "groupId",
+ "createdBy": "createdBy",
+ "updatedBy": "updatedBy",
+ "actions": {
+ "activate": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorEnter": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "cursorExit": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseDown": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "mouseUp": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "focus": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "blur": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageOpen": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageClose": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageVisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ },
+ "pageInvisible": {
+ "incomplete": true,
+ "warningFlags": 1,
+ "warnings": [
+ "cycle-dropped",
+ "cycle-dropped"
+ ]
+ }
+ },
+ "color": {
+ "r": 255,
+ "g": 255,
+ "b": 255
+ },
+ "opacity": 1,
+ "quadPoints": [
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ },
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "auditHead": 1
+ }
+ """;
+
+ Server
+ .Given(
+ WireMock
+ .RequestBuilders.Request.Create()
+ .WithPath("/v1/docs/docId/layers/layerName/annotations/items")
+ .UsingGet()
+ )
+ .RespondWith(
+ WireMock
+ .ResponseBuilders.Response.Create()
+ .WithStatusCode(200)
+ .WithBody(mockResponse)
+ );
+
+ var response = await Client.Doc.Annotations.ListAllAsync(
+ new ListAllAnnotationsRequest { DocId = "docId", LayerName = "layerName" }
+ );
+ JsonAssert.AreEqual(response, mockResponse);
+ }
+
+ [NUnit.Framework.Test]
+ public async Task MockServerTest_2()
+ {
+ const string mockResponse = """
+ {
+ "pages": [
+ {
+ "pageState": {
+ "pageObjectNumber": 1,
+ "revision": {
+ "docSessionId": "docSessionId",
+ "pageObjectNumber": 1,
+ "generation": 1
+ },
+ "weakAnnotationState": {
+ "kind": "unknown"
+ }
+ },
+ "annotations": [
+ {
+ "subtype": "highlight",
+ "ref": {
+ "kind": "objectNumber",
+ "pageObjectNumber": 1,
+ "annotObjectNumber": 1
+ },
+ "pageObjectNumber": 1,
+ "index": 1,
+ "identityQuality": "durable",
+ "flags": {
+ "invisible": true,
+ "hidden": true,
+ "print": true,
+ "noZoom": true,
+ "noRotate": true,
+ "noView": true,
+ "readOnly": true,
+ "locked": true,
+ "toggleNoView": true,
+ "lockedContents": true
+ },
+ "rect": {
+ "left": 1.1,
+ "bottom": 1.1,
+ "right": 1.1,
+ "top": 1.1
+ },
+ "blendMode": "normal",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1
+ },
+ "opacity": 1.1,
+ "quadPoints": [
+ {
+ "p1": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p2": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p3": {
+ "x": 1.1,
+ "y": 1.1
+ },
+ "p4": {
+ "x": 1.1,
+ "y": 1.1
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "auditHead": 1
+ }
+ """;
+
+ Server
+ .Given(
+ WireMock
+ .RequestBuilders.Request.Create()
+ .WithPath("/v1/docs/docId/layers/layerName/annotations/items")
+ .UsingGet()
+ )
+ .RespondWith(
+ WireMock
+ .ResponseBuilders.Response.Create()
+ .WithStatusCode(200)
+ .WithBody(mockResponse)
+ );
+
+ var response = await Client.Doc.Annotations.ListAllAsync(
+ new ListAllAnnotationsRequest { DocId = "docId", LayerName = "layerName" }
+ );
+ JsonAssert.AreEqual(response, mockResponse);
+ }
+}
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
index 38e9869..1dbfdca 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
@@ -56,6 +56,7 @@ public async Task MockServerTest_1()
"top": 1.1
},
"contents": "contents",
+ "subject": "subject",
"author": "author",
"created": "2024-01-15T09:30:00.000Z",
"modified": "2024-01-15T09:30:00.000Z",
@@ -378,6 +379,7 @@ public async Task MockServerTest_1()
"top": 1.1
},
"contents": "contents",
+ "subject": "subject",
"author": "author",
"created": "2024-01-15T09:30:00.000Z",
"modified": "2024-01-15T09:30:00.000Z",
@@ -746,6 +748,7 @@ public async Task MockServerTest_2()
"top": 1.1
},
"contents": "contents",
+ "subject": "subject",
"author": "author",
"created": "2024-01-15T09:30:00.000Z",
"modified": "2024-01-15T09:30:00.000Z",
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
index dd26790..7053572 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -134,6 +135,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
index 2e09eb8..fd4a3fa 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -132,6 +133,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ResetTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
index 109b6d3..326a875 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
@@ -42,6 +42,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -110,6 +111,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
index 87537c4..f58fd4c 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -133,6 +134,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/ManifestTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/ManifestTest.cs
index 8ce89ec..c83037b 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/ManifestTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/ManifestTest.cs
@@ -19,6 +19,7 @@ public async Task MockServerTest_1()
"metadataVersion": 1,
"actionsVersion": 1,
"attachmentsVersion": 1,
+ "annotationsVersion": 1,
"auditHead": 1,
"baseSha": "baseSha",
"scopes": {
@@ -98,6 +99,7 @@ public async Task MockServerTest_2()
"metadataVersion": 1,
"actionsVersion": 1,
"attachmentsVersion": 1,
+ "annotationsVersion": 1,
"auditHead": 1,
"baseSha": "baseSha",
"scopes": {
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
index 31eba2c..03e80d4 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -132,6 +133,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
index 7974c61..e88e733 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -132,6 +133,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/InsertBlankTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/InsertBlankTest.cs
index 91cc789..688be7e 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/InsertBlankTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/InsertBlankTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -132,6 +133,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/MoveTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
index d174507..9da7144 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -132,6 +133,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/RotateTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
index 4fcb9ea..844f643 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -132,6 +133,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
index 1d2d435..5d41d14 100644
--- a/src/CloudPDF.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
@@ -50,6 +50,7 @@ public async Task MockServerTest_1()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
@@ -132,6 +133,7 @@ public async Task MockServerTest_2()
"cacheDelta": {
"previousDocVersion": 1,
"docVersion": 1,
+ "annotationsVersion": 1,
"pages": [
{
"pageObjectNumber": 1,
diff --git a/src/CloudPDF/CloudPDF.csproj b/src/CloudPDF/CloudPDF.csproj
index 08da019..20d78d3 100644
--- a/src/CloudPDF/CloudPDF.csproj
+++ b/src/CloudPDF/CloudPDF.csproj
@@ -11,7 +11,7 @@
enable
12
enable
- 3.0.0-next.9
+ 3.0.0-next.10
3.0.0.0
3.0.0.0
README.md
diff --git a/src/CloudPDF/Core/Public/Version.cs b/src/CloudPDF/Core/Public/Version.cs
index 44fbbb3..020dbec 100644
--- a/src/CloudPDF/Core/Public/Version.cs
+++ b/src/CloudPDF/Core/Public/Version.cs
@@ -3,5 +3,5 @@ namespace CloudPDF;
[Serializable]
internal class Version
{
- public const string Current = "3.0.0-next.9";
+ public const string Current = "3.0.0-next.10";
}
diff --git a/src/CloudPDF/Doc/Annotations/AnnotationsClient.cs b/src/CloudPDF/Doc/Annotations/AnnotationsClient.cs
index de69964..c3ddd89 100644
--- a/src/CloudPDF/Doc/Annotations/AnnotationsClient.cs
+++ b/src/CloudPDF/Doc/Annotations/AnnotationsClient.cs
@@ -13,6 +13,128 @@ internal AnnotationsClient(RawClient client)
_client = client;
}
+ private async Task> ListAllAsyncCore(
+ ListAllAnnotationsRequest request,
+ RequestOptions? options = null,
+ CancellationToken cancellationToken = default
+ )
+ {
+ var _queryString = new CloudPDF.Core.QueryStringBuilder.Builder(capacity: 0)
+ .MergeAdditional(options?.AdditionalQueryParameters)
+ .Build();
+ var _headers = await new CloudPDF.Core.HeadersBuilder.Builder()
+ .Add("X-Document-Password", request.DocumentPassword)
+ .Add(_client.Options.Headers)
+ .Add(_client.Options.AdditionalHeaders)
+ .Add(options?.AdditionalHeaders)
+ .BuildAsync()
+ .ConfigureAwait(false);
+ var response = await _client
+ .SendRequestAsync(
+ new JsonRequest
+ {
+ Method = HttpMethod.Get,
+ Path = string.Format(
+ "v1/docs/{0}/layers/{1}/annotations/items",
+ ValueConvert.ToPathParameterString(request.DocId),
+ ValueConvert.ToPathParameterString(request.LayerName)
+ ),
+ QueryString = _queryString,
+ Headers = _headers,
+ Options = options,
+ },
+ cancellationToken
+ )
+ .ConfigureAwait(false);
+ if (response.StatusCode is >= 200 and < 400)
+ {
+ var responseBody = await response
+ .Raw.Content.ReadAsStringAsync(cancellationToken)
+ .ConfigureAwait(false);
+ try
+ {
+ var responseData = JsonUtils.Deserialize(
+ responseBody
+ )!;
+ return new WithRawResponse()
+ {
+ Data = responseData,
+ RawResponse = new CloudPDF.RawResponse()
+ {
+ StatusCode = response.Raw.StatusCode,
+ Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
+ Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
+ },
+ };
+ }
+ catch (JsonException e)
+ {
+ throw new CloudPDFApiException(
+ "Failed to deserialize response",
+ response.StatusCode,
+ responseBody,
+ e,
+ rawResponse: new CloudPDF.RawResponse()
+ {
+ StatusCode = response.Raw.StatusCode,
+ Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
+ Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
+ }
+ );
+ }
+ }
+ {
+ var responseBody = await response
+ .Raw.Content.ReadAsStringAsync(cancellationToken)
+ .ConfigureAwait(false);
+ try
+ {
+ switch (response.StatusCode)
+ {
+ case 404:
+ throw new NotFoundError(
+ JsonUtils.Deserialize(responseBody),
+ rawResponse: new CloudPDF.RawResponse()
+ {
+ StatusCode = response.Raw.StatusCode,
+ Url =
+ response.Raw.RequestMessage?.RequestUri
+ ?? new Uri("about:blank"),
+ Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
+ }
+ );
+ case 409:
+ throw new ConflictError(
+ JsonUtils.Deserialize(responseBody),
+ rawResponse: new CloudPDF.RawResponse()
+ {
+ StatusCode = response.Raw.StatusCode,
+ Url =
+ response.Raw.RequestMessage?.RequestUri
+ ?? new Uri("about:blank"),
+ Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
+ }
+ );
+ }
+ }
+ catch (JsonException)
+ {
+ // unable to map error response, throwing generic error
+ }
+ throw new CloudPDFApiException(
+ $"Error with status code {response.StatusCode}",
+ response.StatusCode,
+ responseBody,
+ rawResponse: new CloudPDF.RawResponse()
+ {
+ StatusCode = response.Raw.StatusCode,
+ Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
+ Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
+ }
+ );
+ }
+ }
+
private async Task> ListAsyncCore(
ListAnnotationsRequest request,
RequestOptions? options = null,
@@ -487,6 +609,25 @@ private async Task> UpdateAsync
}
}
+ ///
+ /// 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.
+ ///
+ ///
+ /// await client.Doc.Annotations.ListAllAsync(
+ /// new ListAllAnnotationsRequest { DocId = "docId", LayerName = "layerName" }
+ /// );
+ ///
+ public WithRawResponseTask ListAllAsync(
+ ListAllAnnotationsRequest request,
+ RequestOptions? options = null,
+ CancellationToken cancellationToken = default
+ )
+ {
+ return new WithRawResponseTask(
+ ListAllAsyncCore(request, options, cancellationToken)
+ );
+ }
+
///
/// await client.Doc.Annotations.ListAsync(
/// new ListAnnotationsRequest
diff --git a/src/CloudPDF/Doc/Annotations/IAnnotationsClient.cs b/src/CloudPDF/Doc/Annotations/IAnnotationsClient.cs
index 2e4cd1a..49888f7 100644
--- a/src/CloudPDF/Doc/Annotations/IAnnotationsClient.cs
+++ b/src/CloudPDF/Doc/Annotations/IAnnotationsClient.cs
@@ -4,6 +4,15 @@ namespace CloudPDF.Doc;
public partial interface IAnnotationsClient
{
+ ///
+ /// 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.
+ ///
+ WithRawResponseTask ListAllAsync(
+ ListAllAnnotationsRequest request,
+ RequestOptions? options = null,
+ CancellationToken cancellationToken = default
+ );
+
WithRawResponseTask ListAsync(
ListAnnotationsRequest request,
RequestOptions? options = null,
diff --git a/src/CloudPDF/Doc/Annotations/Requests/ListAllAnnotationsRequest.cs b/src/CloudPDF/Doc/Annotations/Requests/ListAllAnnotationsRequest.cs
new file mode 100644
index 0000000..e34589c
--- /dev/null
+++ b/src/CloudPDF/Doc/Annotations/Requests/ListAllAnnotationsRequest.cs
@@ -0,0 +1,26 @@
+using CloudPDF.Core;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF.Doc;
+
+[Serializable]
+public record ListAllAnnotationsRequest
+{
+ [JsonIgnore]
+ public required string DocId { get; set; }
+
+ [JsonIgnore]
+ public required string LayerName { get; set; }
+
+ ///
+ /// 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.
+ ///
+ [JsonIgnore]
+ public string? DocumentPassword { get; set; }
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Documents/DocumentsClient.cs b/src/CloudPDF/Documents/DocumentsClient.cs
index 08cc119..d79fa63 100644
--- a/src/CloudPDF/Documents/DocumentsClient.cs
+++ b/src/CloudPDF/Documents/DocumentsClient.cs
@@ -728,7 +728,7 @@ private async Task> UploadProxy
);
case 409:
throw new ConflictError(
- JsonUtils.Deserialize(responseBody),
+ JsonUtils.Deserialize(responseBody),
rawResponse: new CloudPDF.RawResponse()
{
StatusCode = response.Raw.StatusCode,
diff --git a/src/CloudPDF/Exceptions/ConflictError.cs b/src/CloudPDF/Exceptions/ConflictError.cs
index 4cea6f1..4dd6a18 100644
--- a/src/CloudPDF/Exceptions/ConflictError.cs
+++ b/src/CloudPDF/Exceptions/ConflictError.cs
@@ -4,13 +4,5 @@ namespace CloudPDF;
/// This exception type will be thrown for any non-2XX API responses.
///
[Serializable]
-public class ConflictError(
- DocumentsUploadProxy409Response body,
- CloudPDF.RawResponse? rawResponse = null
-) : CloudPDFApiException("ConflictError", 409, body, rawResponse: rawResponse)
-{
- ///
- /// The body of the response that triggered the exception.
- ///
- public new DocumentsUploadProxy409Response Body => body;
-}
+public class ConflictError(object body, CloudPDF.RawResponse? rawResponse = null)
+ : CloudPDFApiException("ConflictError", 409, body, rawResponse: rawResponse);
diff --git a/src/CloudPDF/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.cs b/src/CloudPDF/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.cs
index 33b55d4..4fa7713 100644
--- a/src/CloudPDF/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.cs
+++ b/src/CloudPDF/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.cs
@@ -17,6 +17,9 @@ public record DocAnnotationsCreate200ResponseMetaCacheDelta : IJsonOnDeserialize
[JsonPropertyName("docVersion")]
public required int DocVersion { get; set; }
+ [JsonPropertyName("annotationsVersion")]
+ public int? AnnotationsVersion { get; set; }
+
[JsonPropertyName("pages")]
public IEnumerable Pages { get; set; } =
new List();
diff --git a/src/CloudPDF/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.cs b/src/CloudPDF/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.cs
index 24cf610..7c78c14 100644
--- a/src/CloudPDF/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.cs
+++ b/src/CloudPDF/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.cs
@@ -17,6 +17,9 @@ public record DocAnnotationsDelete200ResponseMetaCacheDelta : IJsonOnDeserialize
[JsonPropertyName("docVersion")]
public required int DocVersion { get; set; }
+ [JsonPropertyName("annotationsVersion")]
+ public int? AnnotationsVersion { get; set; }
+
[JsonPropertyName("pages")]
public IEnumerable Pages { get; set; } =
new List();
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.cs
index 00b189d..93589c2 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemCaret : IJsonOnDeseria
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.cs
index f825702..c607ed0 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemCircle : IJsonOnDeseri
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.cs
index 346f580..9787c91 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemFileAttachment : IJson
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.cs
index c38000d..5bfaa2a 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemFreeText : IJsonOnDese
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.cs
index 3753cf8..bdf80b0 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemHighlight : IJsonOnDes
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemInk.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemInk.cs
index 783efe8..ec2826c 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemInk.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemInk.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemInk : IJsonOnDeseriali
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLine.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLine.cs
index 905b576..f7e70e3 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLine.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLine.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemLine : IJsonOnDeserial
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLink.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLink.cs
index 0c5362a..ec47a13 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLink.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemLink.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemLink : IJsonOnDeserial
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.cs
index 42adcd8..c54d0ec 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemPolygon : IJsonOnDeser
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.cs
index b330740..b1fbabb 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemPolyline : IJsonOnDese
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.cs
index 1e8122f..77039b8 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemRedact : IJsonOnDeseri
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.cs
index 9af9f92..884eefe 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemSquare : IJsonOnDeseri
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.cs
index 24ae8ac..4776064 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemSquiggly : IJsonOnDese
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.cs
index 7fe621b..e783935 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemStamp : IJsonOnDeseria
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.cs
index aaeb3e8..357144b 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemStrikeout : IJsonOnDes
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemText.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemText.cs
index 4762a5a..15ac075 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemText.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemText.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemText : IJsonOnDeserial
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
@@ -77,6 +80,12 @@ public record DocAnnotationsList200ResponseAnnotationsItemText : IJsonOnDeserial
[JsonPropertyName("icon")]
public required DocAnnotationsList200ResponseAnnotationsItemTextIcon Icon { get; set; }
+ [JsonPropertyName("state")]
+ public string? State { get; set; }
+
+ [JsonPropertyName("stateModel")]
+ public string? StateModel { get; set; }
+
[JsonIgnore]
public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.cs
index d49ebe7..5eee45f 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemUnderline : IJsonOnDes
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.cs
index 1b97146..a924185 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemUnsupported : IJsonOnD
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.cs b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.cs
index 2d678e2..6e2bdd0 100644
--- a/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.cs
+++ b/src/CloudPDF/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.cs
@@ -35,6 +35,9 @@ public record DocAnnotationsList200ResponseAnnotationsItemWidget : IJsonOnDeseri
[JsonPropertyName("contents")]
public string? Contents { get; set; }
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
[JsonPropertyName("author")]
public string? Author { get; set; }
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200Response.cs b/src/CloudPDF/Types/DocAnnotationsListAll200Response.cs
new file mode 100644
index 0000000..09f3b34
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200Response.cs
@@ -0,0 +1,32 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200Response : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pages")]
+ public IEnumerable Pages { get; set; } =
+ new List();
+
+ [JsonPropertyName("auditHead")]
+ public int? AuditHead { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItem.cs
new file mode 100644
index 0000000..f1d0c55
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItem.cs
@@ -0,0 +1,32 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItem : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pageState")]
+ public required DocAnnotationsListAll200ResponsePagesItemPageState PageState { get; set; }
+
+ [JsonPropertyName("annotations")]
+ public IEnumerable Annotations { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.cs
new file mode 100644
index 0000000..c1c26db
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.cs
@@ -0,0 +1,1739 @@
+// ReSharper disable NullableWarningSuppressionIsUsed
+// ReSharper disable InconsistentNaming
+
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Nodes;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.JsonConverter))]
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItem
+{
+ internal DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(string type, object? value)
+ {
+ Subtype = type;
+ Value = value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Highlight value
+ )
+ {
+ Subtype = "highlight";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Underline value
+ )
+ {
+ Subtype = "underline";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Squiggly value
+ )
+ {
+ Subtype = "squiggly";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Strikeout value
+ )
+ {
+ Subtype = "strikeout";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Circle value
+ )
+ {
+ Subtype = "circle";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Square value
+ )
+ {
+ Subtype = "square";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Polygon value
+ )
+ {
+ Subtype = "polygon";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Polyline value
+ )
+ {
+ Subtype = "polyline";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Line value
+ )
+ {
+ Subtype = "line";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Link value
+ )
+ {
+ Subtype = "link";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Ink value
+ )
+ {
+ Subtype = "ink";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.FreeText value
+ )
+ {
+ Subtype = "free-text";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Caret value
+ )
+ {
+ Subtype = "caret";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Text value
+ )
+ {
+ Subtype = "text";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Stamp value
+ )
+ {
+ Subtype = "stamp";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.FileAttachment value
+ )
+ {
+ Subtype = "file-attachment";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Widget value
+ )
+ {
+ Subtype = "widget";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Redact value
+ )
+ {
+ Subtype = "redact";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItem with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Unsupported value
+ )
+ {
+ Subtype = "unsupported";
+ Value = value.Value;
+ }
+
+ ///
+ /// Discriminant value
+ ///
+ [JsonPropertyName("subtype")]
+ public string Subtype { get; internal set; }
+
+ ///
+ /// Discriminated union value
+ ///
+ public object? Value { get; internal set; }
+
+ ///
+ /// Returns true if is "highlight"
+ ///
+ public bool IsHighlight => Subtype == "highlight";
+
+ ///
+ /// Returns true if is "underline"
+ ///
+ public bool IsUnderline => Subtype == "underline";
+
+ ///
+ /// Returns true if is "squiggly"
+ ///
+ public bool IsSquiggly => Subtype == "squiggly";
+
+ ///
+ /// Returns true if is "strikeout"
+ ///
+ public bool IsStrikeout => Subtype == "strikeout";
+
+ ///
+ /// Returns true if is "circle"
+ ///
+ public bool IsCircle => Subtype == "circle";
+
+ ///
+ /// Returns true if is "square"
+ ///
+ public bool IsSquare => Subtype == "square";
+
+ ///
+ /// Returns true if is "polygon"
+ ///
+ public bool IsPolygon => Subtype == "polygon";
+
+ ///
+ /// Returns true if is "polyline"
+ ///
+ public bool IsPolyline => Subtype == "polyline";
+
+ ///
+ /// Returns true if is "line"
+ ///
+ public bool IsLine => Subtype == "line";
+
+ ///
+ /// Returns true if is "link"
+ ///
+ public bool IsLink => Subtype == "link";
+
+ ///
+ /// Returns true if is "ink"
+ ///
+ public bool IsInk => Subtype == "ink";
+
+ ///
+ /// Returns true if is "free-text"
+ ///
+ public bool IsFreeText => Subtype == "free-text";
+
+ ///
+ /// Returns true if is "caret"
+ ///
+ public bool IsCaret => Subtype == "caret";
+
+ ///
+ /// Returns true if is "text"
+ ///
+ public bool IsText => Subtype == "text";
+
+ ///
+ /// Returns true if is "stamp"
+ ///
+ public bool IsStamp => Subtype == "stamp";
+
+ ///
+ /// Returns true if is "file-attachment"
+ ///
+ public bool IsFileAttachment => Subtype == "file-attachment";
+
+ ///
+ /// Returns true if is "widget"
+ ///
+ public bool IsWidget => Subtype == "widget";
+
+ ///
+ /// Returns true if is "redact"
+ ///
+ public bool IsRedact => Subtype == "redact";
+
+ ///
+ /// Returns true if is "unsupported"
+ ///
+ public bool IsUnsupported => Subtype == "unsupported";
+
+ ///
+ /// Returns the value as a if is 'highlight', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'highlight'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight AsHighlight() =>
+ IsHighlight
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'highlight'"
+ );
+
+ ///
+ /// Returns the value as a if is 'underline', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'underline'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline AsUnderline() =>
+ IsUnderline
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'underline'"
+ );
+
+ ///
+ /// Returns the value as a if is 'squiggly', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'squiggly'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly AsSquiggly() =>
+ IsSquiggly
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'squiggly'"
+ );
+
+ ///
+ /// Returns the value as a if is 'strikeout', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'strikeout'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout AsStrikeout() =>
+ IsStrikeout
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'strikeout'"
+ );
+
+ ///
+ /// Returns the value as a if is 'circle', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'circle'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle AsCircle() =>
+ IsCircle
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'circle'"
+ );
+
+ ///
+ /// Returns the value as a if is 'square', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'square'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare AsSquare() =>
+ IsSquare
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'square'"
+ );
+
+ ///
+ /// Returns the value as a if is 'polygon', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'polygon'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon AsPolygon() =>
+ IsPolygon
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'polygon'"
+ );
+
+ ///
+ /// Returns the value as a if is 'polyline', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'polyline'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline AsPolyline() =>
+ IsPolyline
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'polyline'"
+ );
+
+ ///
+ /// Returns the value as a if is 'line', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'line'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine AsLine() =>
+ IsLine
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'line'"
+ );
+
+ ///
+ /// Returns the value as a if is 'link', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'link'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink AsLink() =>
+ IsLink
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'link'"
+ );
+
+ ///
+ /// Returns the value as a if is 'ink', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'ink'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk AsInk() =>
+ IsInk
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'ink'"
+ );
+
+ ///
+ /// Returns the value as a if is 'free-text', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'free-text'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText AsFreeText() =>
+ IsFreeText
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'free-text'"
+ );
+
+ ///
+ /// Returns the value as a if is 'caret', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'caret'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret AsCaret() =>
+ IsCaret
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'caret'"
+ );
+
+ ///
+ /// Returns the value as a if is 'text', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'text'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText AsText() =>
+ IsText
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'text'"
+ );
+
+ ///
+ /// Returns the value as a if is 'stamp', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'stamp'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp AsStamp() =>
+ IsStamp
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'stamp'"
+ );
+
+ ///
+ /// Returns the value as a if is 'file-attachment', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'file-attachment'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment AsFileAttachment() =>
+ IsFileAttachment
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment)
+ Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'file-attachment'"
+ );
+
+ ///
+ /// Returns the value as a if is 'widget', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'widget'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget AsWidget() =>
+ IsWidget
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'widget'"
+ );
+
+ ///
+ /// Returns the value as a if is 'redact', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'redact'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact AsRedact() =>
+ IsRedact
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'redact'"
+ );
+
+ ///
+ /// Returns the value as a if is 'unsupported', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'unsupported'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported AsUnsupported() =>
+ IsUnsupported
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Subtype is not 'unsupported'"
+ );
+
+ public T Match(
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight,
+ T
+ > onHighlight,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline,
+ T
+ > onUnderline,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly,
+ T
+ > onSquiggly,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout,
+ T
+ > onStrikeout,
+ Func onCircle,
+ Func onSquare,
+ Func onPolygon,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline,
+ T
+ > onPolyline,
+ Func onLine,
+ Func onLink,
+ Func onInk,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText,
+ T
+ > onFreeText,
+ Func onCaret,
+ Func onText,
+ Func onStamp,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment,
+ T
+ > onFileAttachment,
+ Func onWidget,
+ Func onRedact,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported,
+ T
+ > onUnsupported,
+ Func onUnknown_
+ )
+ {
+ return Subtype switch
+ {
+ "highlight" => onHighlight(AsHighlight()),
+ "underline" => onUnderline(AsUnderline()),
+ "squiggly" => onSquiggly(AsSquiggly()),
+ "strikeout" => onStrikeout(AsStrikeout()),
+ "circle" => onCircle(AsCircle()),
+ "square" => onSquare(AsSquare()),
+ "polygon" => onPolygon(AsPolygon()),
+ "polyline" => onPolyline(AsPolyline()),
+ "line" => onLine(AsLine()),
+ "link" => onLink(AsLink()),
+ "ink" => onInk(AsInk()),
+ "free-text" => onFreeText(AsFreeText()),
+ "caret" => onCaret(AsCaret()),
+ "text" => onText(AsText()),
+ "stamp" => onStamp(AsStamp()),
+ "file-attachment" => onFileAttachment(AsFileAttachment()),
+ "widget" => onWidget(AsWidget()),
+ "redact" => onRedact(AsRedact()),
+ "unsupported" => onUnsupported(AsUnsupported()),
+ _ => onUnknown_(Subtype, Value),
+ };
+ }
+
+ public void Visit(
+ Action onHighlight,
+ Action onUnderline,
+ Action onSquiggly,
+ Action onStrikeout,
+ Action onCircle,
+ Action onSquare,
+ Action onPolygon,
+ Action onPolyline,
+ Action onLine,
+ Action onLink,
+ Action onInk,
+ Action onFreeText,
+ Action onCaret,
+ Action onText,
+ Action onStamp,
+ Action onFileAttachment,
+ Action onWidget,
+ Action onRedact,
+ Action onUnsupported,
+ Action onUnknown_
+ )
+ {
+ switch (Subtype)
+ {
+ case "highlight":
+ onHighlight(AsHighlight());
+ break;
+ case "underline":
+ onUnderline(AsUnderline());
+ break;
+ case "squiggly":
+ onSquiggly(AsSquiggly());
+ break;
+ case "strikeout":
+ onStrikeout(AsStrikeout());
+ break;
+ case "circle":
+ onCircle(AsCircle());
+ break;
+ case "square":
+ onSquare(AsSquare());
+ break;
+ case "polygon":
+ onPolygon(AsPolygon());
+ break;
+ case "polyline":
+ onPolyline(AsPolyline());
+ break;
+ case "line":
+ onLine(AsLine());
+ break;
+ case "link":
+ onLink(AsLink());
+ break;
+ case "ink":
+ onInk(AsInk());
+ break;
+ case "free-text":
+ onFreeText(AsFreeText());
+ break;
+ case "caret":
+ onCaret(AsCaret());
+ break;
+ case "text":
+ onText(AsText());
+ break;
+ case "stamp":
+ onStamp(AsStamp());
+ break;
+ case "file-attachment":
+ onFileAttachment(AsFileAttachment());
+ break;
+ case "widget":
+ onWidget(AsWidget());
+ break;
+ case "redact":
+ onRedact(AsRedact());
+ break;
+ case "unsupported":
+ onUnsupported(AsUnsupported());
+ break;
+ default:
+ onUnknown_(Subtype, Value);
+ break;
+ }
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsHighlight(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight? value
+ )
+ {
+ if (Subtype == "highlight")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsUnderline(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline? value
+ )
+ {
+ if (Subtype == "underline")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsSquiggly(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly? value
+ )
+ {
+ if (Subtype == "squiggly")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsStrikeout(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout? value
+ )
+ {
+ if (Subtype == "strikeout")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsCircle(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle? value
+ )
+ {
+ if (Subtype == "circle")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsSquare(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare? value
+ )
+ {
+ if (Subtype == "square")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsPolygon(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon? value
+ )
+ {
+ if (Subtype == "polygon")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsPolyline(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline? value
+ )
+ {
+ if (Subtype == "polyline")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsLine(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine? value
+ )
+ {
+ if (Subtype == "line")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsLink(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink? value
+ )
+ {
+ if (Subtype == "link")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsInk(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk? value
+ )
+ {
+ if (Subtype == "ink")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsFreeText(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText? value
+ )
+ {
+ if (Subtype == "free-text")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsCaret(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret? value
+ )
+ {
+ if (Subtype == "caret")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsText(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText? value
+ )
+ {
+ if (Subtype == "text")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsStamp(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp? value
+ )
+ {
+ if (Subtype == "stamp")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsFileAttachment(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment? value
+ )
+ {
+ if (Subtype == "file-attachment")
+ {
+ value =
+ (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsWidget(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget? value
+ )
+ {
+ if (Subtype == "widget")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsRedact(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact? value
+ )
+ {
+ if (Subtype == "redact")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact)Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsUnsupported(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported? value
+ )
+ {
+ if (Subtype == "unsupported")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ public override string ToString() => JsonUtils.Serialize(this);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Highlight value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Underline value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Squiggly value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Strikeout value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Circle value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Square value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Polygon value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Polyline value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Line value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Link value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Ink value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.FreeText value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Caret value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Text value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Stamp value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.FileAttachment value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Widget value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Redact value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Unsupported value
+ ) => new(value);
+
+ [Serializable]
+ internal sealed class JsonConverter
+ : JsonConverter
+ {
+ public override bool CanConvert(global::System.Type typeToConvert) =>
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItem).IsAssignableFrom(
+ typeToConvert
+ );
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItem Read(
+ ref Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var json = JsonElement.ParseValue(ref reader);
+ if (!json.TryGetProperty("subtype", out var discriminatorElement))
+ {
+ throw new JsonException("Missing discriminator property 'subtype'");
+ }
+ if (discriminatorElement.ValueKind != JsonValueKind.String)
+ {
+ if (discriminatorElement.ValueKind == JsonValueKind.Null)
+ {
+ throw new JsonException("Discriminator property 'subtype' is null");
+ }
+
+ throw new JsonException(
+ $"Discriminator property 'subtype' is not a string, instead is {discriminatorElement.ToString()}"
+ );
+ }
+
+ var discriminator =
+ discriminatorElement.GetString()
+ ?? throw new JsonException("Discriminator property 'subtype' is null");
+
+ // Strip the discriminant property to prevent it from leaking into AdditionalProperties
+ var jsonObject = System.Text.Json.Nodes.JsonObject.Create(json);
+ jsonObject?.Remove("subtype");
+ var jsonWithoutDiscriminator =
+ jsonObject != null ? JsonSerializer.SerializeToElement(jsonObject, options) : json;
+
+ var value = discriminator switch
+ {
+ "highlight" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight"
+ ),
+ "underline" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline"
+ ),
+ "squiggly" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly"
+ ),
+ "strikeout" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout"
+ ),
+ "circle" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle"
+ ),
+ "square" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare"
+ ),
+ "polygon" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon"
+ ),
+ "polyline" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline"
+ ),
+ "line" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine"
+ ),
+ "link" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink"
+ ),
+ "ink" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk"
+ ),
+ "free-text" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText"
+ ),
+ "caret" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret"
+ ),
+ "text" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText"
+ ),
+ "stamp" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp"
+ ),
+ "file-attachment" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment"
+ ),
+ "widget" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget"
+ ),
+ "redact" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact"
+ ),
+ "unsupported" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported"
+ ),
+ _ => json.Deserialize(options),
+ };
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ discriminator,
+ value
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ JsonNode json =
+ value.Subtype switch
+ {
+ "highlight" => JsonSerializer.SerializeToNode(value.Value, options),
+ "underline" => JsonSerializer.SerializeToNode(value.Value, options),
+ "squiggly" => JsonSerializer.SerializeToNode(value.Value, options),
+ "strikeout" => JsonSerializer.SerializeToNode(value.Value, options),
+ "circle" => JsonSerializer.SerializeToNode(value.Value, options),
+ "square" => JsonSerializer.SerializeToNode(value.Value, options),
+ "polygon" => JsonSerializer.SerializeToNode(value.Value, options),
+ "polyline" => JsonSerializer.SerializeToNode(value.Value, options),
+ "line" => JsonSerializer.SerializeToNode(value.Value, options),
+ "link" => JsonSerializer.SerializeToNode(value.Value, options),
+ "ink" => JsonSerializer.SerializeToNode(value.Value, options),
+ "free-text" => JsonSerializer.SerializeToNode(value.Value, options),
+ "caret" => JsonSerializer.SerializeToNode(value.Value, options),
+ "text" => JsonSerializer.SerializeToNode(value.Value, options),
+ "stamp" => JsonSerializer.SerializeToNode(value.Value, options),
+ "file-attachment" => JsonSerializer.SerializeToNode(value.Value, options),
+ "widget" => JsonSerializer.SerializeToNode(value.Value, options),
+ "redact" => JsonSerializer.SerializeToNode(value.Value, options),
+ "unsupported" => JsonSerializer.SerializeToNode(value.Value, options),
+ _ => JsonSerializer.SerializeToNode(value.Value, options),
+ } ?? new JsonObject();
+ json["subtype"] = value.Subtype;
+ json.WriteTo(writer, options);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new JsonException("The JSON property name could not be read as a string.");
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem(
+ stringValue,
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Subtype);
+ }
+ }
+
+ ///
+ /// Discriminated union type for highlight
+ ///
+ [Serializable]
+ public struct Highlight
+ {
+ public Highlight(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Highlight(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for underline
+ ///
+ [Serializable]
+ public struct Underline
+ {
+ public Underline(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Underline(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for squiggly
+ ///
+ [Serializable]
+ public struct Squiggly
+ {
+ public Squiggly(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Squiggly(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for strikeout
+ ///
+ [Serializable]
+ public struct Strikeout
+ {
+ public Strikeout(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Strikeout(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for circle
+ ///
+ [Serializable]
+ public struct Circle
+ {
+ public Circle(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Circle(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for square
+ ///
+ [Serializable]
+ public struct Square
+ {
+ public Square(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Square(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for polygon
+ ///
+ [Serializable]
+ public struct Polygon
+ {
+ public Polygon(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Polygon(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for polyline
+ ///
+ [Serializable]
+ public struct Polyline
+ {
+ public Polyline(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Polyline(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for line
+ ///
+ [Serializable]
+ public struct Line
+ {
+ public Line(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Line(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for link
+ ///
+ [Serializable]
+ public struct Link
+ {
+ public Link(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Link(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for ink
+ ///
+ [Serializable]
+ public struct Ink
+ {
+ public Ink(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Ink(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for free-text
+ ///
+ [Serializable]
+ public struct FreeText
+ {
+ public FreeText(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.FreeText(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for caret
+ ///
+ [Serializable]
+ public struct Caret
+ {
+ public Caret(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Caret(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for text
+ ///
+ [Serializable]
+ public struct Text
+ {
+ public Text(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Text(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for stamp
+ ///
+ [Serializable]
+ public struct Stamp
+ {
+ public Stamp(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Stamp(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for file-attachment
+ ///
+ [Serializable]
+ public struct FileAttachment
+ {
+ public FileAttachment(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.FileAttachment(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for widget
+ ///
+ [Serializable]
+ public struct Widget
+ {
+ public Widget(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Widget(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for redact
+ ///
+ [Serializable]
+ public struct Redact
+ {
+ public Redact(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Redact(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for unsupported
+ ///
+ [Serializable]
+ public struct Unsupported
+ {
+ public Unsupported(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.Unsupported(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported value
+ ) => new(value);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret.cs
new file mode 100644
index 0000000..ce8cfc9
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret.cs
@@ -0,0 +1,103 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("ref")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef Ref { get; set; }
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("index")]
+ public required int Index { get; set; }
+
+ [JsonPropertyName("identityQuality")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality IdentityQuality { get; set; }
+
+ [JsonPropertyName("nm")]
+ public string? Nm { get; set; }
+
+ [JsonPropertyName("flags")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags Flags { get; set; }
+
+ [JsonPropertyName("rect")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect Rect { get; set; }
+
+ [JsonPropertyName("contents")]
+ public string? Contents { get; set; }
+
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
+ [JsonPropertyName("author")]
+ public string? Author { get; set; }
+
+ [JsonPropertyName("created")]
+ public DateTime? Created { get; set; }
+
+ [JsonPropertyName("modified")]
+ public DateTime? Modified { get; set; }
+
+ [JsonPropertyName("blendMode")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode BlendMode { get; set; }
+
+ [JsonPropertyName("inReplyTo")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo? InReplyTo { get; set; }
+
+ [JsonPropertyName("replyType")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType? ReplyType { get; set; }
+
+ [JsonPropertyName("userId")]
+ public string? UserId { get; set; }
+
+ [JsonPropertyName("groupId")]
+ public string? GroupId { get; set; }
+
+ [JsonPropertyName("createdBy")]
+ public string? CreatedBy { get; set; }
+
+ [JsonPropertyName("updatedBy")]
+ public string? UpdatedBy { get; set; }
+
+ [JsonPropertyName("actions")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions? Actions { get; set; }
+
+ [JsonPropertyName("color")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor Color { get; set; }
+
+ [JsonPropertyName("opacity")]
+ public required double Opacity { get; set; }
+
+ [JsonPropertyName("intent")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent? Intent { get; set; }
+
+ [JsonPropertyName("rectDifferences")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences? RectDifferences { get; set; }
+
+ [JsonPropertyName("rotation")]
+ public double? Rotation { get; set; }
+
+ [JsonPropertyName("unrotatedRect")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect? UnrotatedRect { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions.cs
new file mode 100644
index 0000000..2141fcd
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions.cs
@@ -0,0 +1,59 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("activate")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate? Activate { get; set; }
+
+ [JsonPropertyName("cursorEnter")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter? CursorEnter { get; set; }
+
+ [JsonPropertyName("cursorExit")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit? CursorExit { get; set; }
+
+ [JsonPropertyName("mouseDown")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown? MouseDown { get; set; }
+
+ [JsonPropertyName("mouseUp")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp? MouseUp { get; set; }
+
+ [JsonPropertyName("focus")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus? Focus { get; set; }
+
+ [JsonPropertyName("blur")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur? Blur { get; set; }
+
+ [JsonPropertyName("pageOpen")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen? PageOpen { get; set; }
+
+ [JsonPropertyName("pageClose")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose? PageClose { get; set; }
+
+ [JsonPropertyName("pageVisible")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible? PageVisible { get; set; }
+
+ [JsonPropertyName("pageInvisible")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible? PageInvisible { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate.cs
new file mode 100644
index 0000000..40b2004
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot.cs
new file mode 100644
index 0000000..de9177d
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType.cs
new file mode 100644
index 0000000..1d734ed
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem.cs
new file mode 100644
index 0000000..8db0b83
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur.cs
new file mode 100644
index 0000000..b14c405
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot.cs
new file mode 100644
index 0000000..efe02e3
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType.cs
new file mode 100644
index 0000000..684df0b
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem.cs
new file mode 100644
index 0000000..fe99a61
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter.cs
new file mode 100644
index 0000000..f098a25
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot.cs
new file mode 100644
index 0000000..5ff62f2
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType.cs
new file mode 100644
index 0000000..6ebadcd
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem.cs
new file mode 100644
index 0000000..999cd28
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit.cs
new file mode 100644
index 0000000..0baa8a7
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot.cs
new file mode 100644
index 0000000..e2db8b9
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType.cs
new file mode 100644
index 0000000..3788a8b
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem.cs
new file mode 100644
index 0000000..1f027cc
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus.cs
new file mode 100644
index 0000000..8efe05d
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot.cs
new file mode 100644
index 0000000..fb77b97
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType.cs
new file mode 100644
index 0000000..b814d14
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem.cs
new file mode 100644
index 0000000..4adc403
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown.cs
new file mode 100644
index 0000000..c954841
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot.cs
new file mode 100644
index 0000000..7febfb9
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType.cs
new file mode 100644
index 0000000..8bb94a1
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem.cs
new file mode 100644
index 0000000..d99c75b
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp.cs
new file mode 100644
index 0000000..51bab55
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot.cs
new file mode 100644
index 0000000..a29d18b
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType.cs
new file mode 100644
index 0000000..8438fac
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem.cs
new file mode 100644
index 0000000..a56229f
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose.cs
new file mode 100644
index 0000000..369845d
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot.cs
new file mode 100644
index 0000000..787a20d
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType.cs
new file mode 100644
index 0000000..23ed3ae
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem.cs
new file mode 100644
index 0000000..9a77e12
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible.cs
new file mode 100644
index 0000000..7953d7d
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot.cs
new file mode 100644
index 0000000..3412a42
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType.cs
new file mode 100644
index 0000000..8426b3e
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem.cs
new file mode 100644
index 0000000..8fa5947
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen.cs
new file mode 100644
index 0000000..c86a482
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot.cs
new file mode 100644
index 0000000..57c6c11
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType.cs
new file mode 100644
index 0000000..a5f1d9e
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem.cs
new file mode 100644
index 0000000..f5eb978
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible.cs
new file mode 100644
index 0000000..f897b8b
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible.cs
@@ -0,0 +1,39 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("root")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot? Root { get; set; }
+
+ [JsonPropertyName("incomplete")]
+ public required bool Incomplete { get; set; }
+
+ [JsonPropertyName("warningFlags")]
+ public required int WarningFlags { get; set; }
+
+ [JsonPropertyName("warnings")]
+ public IEnumerable Warnings { get; set; } =
+ new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot.cs
new file mode 100644
index 0000000..69c61c7
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("type")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Type { get; set; }
+
+ [JsonPropertyName("subtype")]
+ public required string Subtype { get; set; }
+
+ [JsonPropertyName("script")]
+ public string? Script { get; set; }
+
+ [JsonPropertyName("next")]
+ public IEnumerable Next { get; set; } = new List();
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType.cs
new file mode 100644
index 0000000..a66573e
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType.cs
@@ -0,0 +1,224 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Unknown =
+ new(Values.Unknown);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Goto =
+ new(Values.Goto);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType GotoRemote =
+ new(Values.GotoRemote);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType GotoEmbedded =
+ new(Values.GotoEmbedded);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Launch =
+ new(Values.Launch);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Thread =
+ new(Values.Thread);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Uri =
+ new(Values.Uri);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Sound =
+ new(Values.Sound);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Movie =
+ new(Values.Movie);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Hide =
+ new(Values.Hide);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Named =
+ new(Values.Named);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType SubmitForm =
+ new(Values.SubmitForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType ResetForm =
+ new(Values.ResetForm);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType ImportData =
+ new(Values.ImportData);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Javascript =
+ new(Values.Javascript);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType SetOcgState =
+ new(Values.SetOcgState);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Rendition =
+ new(Values.Rendition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Transition =
+ new(Values.Transition);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Goto3DView =
+ new(Values.Goto3DView);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Unknown = "unknown";
+
+ public const string Goto = "goto";
+
+ public const string GotoRemote = "goto-remote";
+
+ public const string GotoEmbedded = "goto-embedded";
+
+ public const string Launch = "launch";
+
+ public const string Thread = "thread";
+
+ public const string Uri = "uri";
+
+ public const string Sound = "sound";
+
+ public const string Movie = "movie";
+
+ public const string Hide = "hide";
+
+ public const string Named = "named";
+
+ public const string SubmitForm = "submit-form";
+
+ public const string ResetForm = "reset-form";
+
+ public const string ImportData = "import-data";
+
+ public const string Javascript = "javascript";
+
+ public const string SetOcgState = "set-ocg-state";
+
+ public const string Rendition = "rendition";
+
+ public const string Transition = "transition";
+
+ public const string Goto3DView = "goto-3d-view";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem.cs
new file mode 100644
index 0000000..28987d5
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem.cs
@@ -0,0 +1,144 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem CycleDropped =
+ new(Values.CycleDropped);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem MalformedNext =
+ new(Values.MalformedNext);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem Incomplete =
+ new(Values.Incomplete);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string CycleDropped = "cycle-dropped";
+
+ public const string MalformedNext = "malformed-next";
+
+ public const string Incomplete = "incomplete";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode.cs
new file mode 100644
index 0000000..f3ac0ca
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode.cs
@@ -0,0 +1,205 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Normal =
+ new(Values.Normal);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Multiply =
+ new(Values.Multiply);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Screen =
+ new(Values.Screen);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Overlay =
+ new(Values.Overlay);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Darken =
+ new(Values.Darken);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Lighten =
+ new(Values.Lighten);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode ColorDodge =
+ new(Values.ColorDodge);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode ColorBurn =
+ new(Values.ColorBurn);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode HardLight =
+ new(Values.HardLight);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode SoftLight =
+ new(Values.SoftLight);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Difference =
+ new(Values.Difference);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Exclusion =
+ new(Values.Exclusion);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Hue =
+ new(Values.Hue);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Saturation =
+ new(Values.Saturation);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Color =
+ new(Values.Color);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Luminosity =
+ new(Values.Luminosity);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode(string value)
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode(value);
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Normal = "normal";
+
+ public const string Multiply = "multiply";
+
+ public const string Screen = "screen";
+
+ public const string Overlay = "overlay";
+
+ public const string Darken = "darken";
+
+ public const string Lighten = "lighten";
+
+ public const string ColorDodge = "color-dodge";
+
+ public const string ColorBurn = "color-burn";
+
+ public const string HardLight = "hard-light";
+
+ public const string SoftLight = "soft-light";
+
+ public const string Difference = "difference";
+
+ public const string Exclusion = "exclusion";
+
+ public const string Hue = "hue";
+
+ public const string Saturation = "saturation";
+
+ public const string Color = "color";
+
+ public const string Luminosity = "luminosity";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor.cs
new file mode 100644
index 0000000..c9725e5
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor.cs
@@ -0,0 +1,35 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("r")]
+ public required int R { get; set; }
+
+ [JsonPropertyName("g")]
+ public required int G { get; set; }
+
+ [JsonPropertyName("b")]
+ public required int B { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags.cs
new file mode 100644
index 0000000..acfac64
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags.cs
@@ -0,0 +1,56 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("invisible")]
+ public required bool Invisible { get; set; }
+
+ [JsonPropertyName("hidden")]
+ public required bool Hidden { get; set; }
+
+ [JsonPropertyName("print")]
+ public required bool Print { get; set; }
+
+ [JsonPropertyName("noZoom")]
+ public required bool NoZoom { get; set; }
+
+ [JsonPropertyName("noRotate")]
+ public required bool NoRotate { get; set; }
+
+ [JsonPropertyName("noView")]
+ public required bool NoView { get; set; }
+
+ [JsonPropertyName("readOnly")]
+ public required bool ReadOnly { get; set; }
+
+ [JsonPropertyName("locked")]
+ public required bool Locked { get; set; }
+
+ [JsonPropertyName("toggleNoView")]
+ public required bool ToggleNoView { get; set; }
+
+ [JsonPropertyName("lockedContents")]
+ public required bool LockedContents { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality.cs
new file mode 100644
index 0000000..c349326
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality.cs
@@ -0,0 +1,139 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualitySerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality Durable =
+ new(Values.Durable);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality Weak =
+ new(Values.Weak);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality(
+ string value
+ )
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality(
+ value
+ );
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualitySerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Durable = "durable";
+
+ public const string Weak = "weak";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.cs
new file mode 100644
index 0000000..fb9afea
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.cs
@@ -0,0 +1,419 @@
+// ReSharper disable NullableWarningSuppressionIsUsed
+// ReSharper disable InconsistentNaming
+
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Nodes;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.JsonConverter)
+)]
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo
+{
+ internal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ string type,
+ object? value
+ )
+ {
+ Kind = type;
+ Value = value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.ObjectNumber value
+ )
+ {
+ Kind = "objectNumber";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Nm value
+ )
+ {
+ Kind = "nm";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Index value
+ )
+ {
+ Kind = "index";
+ Value = value.Value;
+ }
+
+ ///
+ /// Discriminant value
+ ///
+ [JsonPropertyName("kind")]
+ public string Kind { get; internal set; }
+
+ ///
+ /// Discriminated union value
+ ///
+ public object? Value { get; internal set; }
+
+ ///
+ /// Returns true if is "objectNumber"
+ ///
+ public bool IsObjectNumber => Kind == "objectNumber";
+
+ ///
+ /// Returns true if is "nm"
+ ///
+ public bool IsNm => Kind == "nm";
+
+ ///
+ /// Returns true if is "index"
+ ///
+ public bool IsIndex => Kind == "index";
+
+ ///
+ /// Returns the value as a if is 'objectNumber', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'objectNumber'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber AsObjectNumber() =>
+ IsObjectNumber
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber)
+ Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Kind is not 'objectNumber'"
+ );
+
+ ///
+ /// Returns the value as a if is 'nm', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'nm'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm AsNm() =>
+ IsNm
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm)
+ Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Kind is not 'nm'"
+ );
+
+ ///
+ /// Returns the value as a if is 'index', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'index'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex AsIndex() =>
+ IsIndex
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex)
+ Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Kind is not 'index'"
+ );
+
+ public T Match(
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber,
+ T
+ > onObjectNumber,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm,
+ T
+ > onNm,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex,
+ T
+ > onIndex,
+ Func onUnknown_
+ )
+ {
+ return Kind switch
+ {
+ "objectNumber" => onObjectNumber(AsObjectNumber()),
+ "nm" => onNm(AsNm()),
+ "index" => onIndex(AsIndex()),
+ _ => onUnknown_(Kind, Value),
+ };
+ }
+
+ public void Visit(
+ Action onObjectNumber,
+ Action onNm,
+ Action onIndex,
+ Action onUnknown_
+ )
+ {
+ switch (Kind)
+ {
+ case "objectNumber":
+ onObjectNumber(AsObjectNumber());
+ break;
+ case "nm":
+ onNm(AsNm());
+ break;
+ case "index":
+ onIndex(AsIndex());
+ break;
+ default:
+ onUnknown_(Kind, Value);
+ break;
+ }
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsObjectNumber(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber? value
+ )
+ {
+ if (Kind == "objectNumber")
+ {
+ value =
+ (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsNm(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm? value
+ )
+ {
+ if (Kind == "nm")
+ {
+ value =
+ (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsIndex(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex? value
+ )
+ {
+ if (Kind == "index")
+ {
+ value =
+ (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ public override string ToString() => JsonUtils.Serialize(this);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.ObjectNumber value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Nm value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Index value
+ ) => new(value);
+
+ [Serializable]
+ internal sealed class JsonConverter
+ : JsonConverter
+ {
+ public override bool CanConvert(global::System.Type typeToConvert) =>
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo).IsAssignableFrom(
+ typeToConvert
+ );
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo Read(
+ ref Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var json = JsonElement.ParseValue(ref reader);
+ if (!json.TryGetProperty("kind", out var discriminatorElement))
+ {
+ throw new JsonException("Missing discriminator property 'kind'");
+ }
+ if (discriminatorElement.ValueKind != JsonValueKind.String)
+ {
+ if (discriminatorElement.ValueKind == JsonValueKind.Null)
+ {
+ throw new JsonException("Discriminator property 'kind' is null");
+ }
+
+ throw new JsonException(
+ $"Discriminator property 'kind' is not a string, instead is {discriminatorElement.ToString()}"
+ );
+ }
+
+ var discriminator =
+ discriminatorElement.GetString()
+ ?? throw new JsonException("Discriminator property 'kind' is null");
+
+ // Strip the discriminant property to prevent it from leaking into AdditionalProperties
+ var jsonObject = System.Text.Json.Nodes.JsonObject.Create(json);
+ jsonObject?.Remove("kind");
+ var jsonWithoutDiscriminator =
+ jsonObject != null ? JsonSerializer.SerializeToElement(jsonObject, options) : json;
+
+ var value = discriminator switch
+ {
+ "objectNumber" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber"
+ ),
+ "nm" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm"
+ ),
+ "index" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex"
+ ),
+ _ => json.Deserialize(options),
+ };
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ discriminator,
+ value
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo value,
+ JsonSerializerOptions options
+ )
+ {
+ JsonNode json =
+ value.Kind switch
+ {
+ "objectNumber" => JsonSerializer.SerializeToNode(value.Value, options),
+ "nm" => JsonSerializer.SerializeToNode(value.Value, options),
+ "index" => JsonSerializer.SerializeToNode(value.Value, options),
+ _ => JsonSerializer.SerializeToNode(value.Value, options),
+ } ?? new JsonObject();
+ json["kind"] = value.Kind;
+ json.WriteTo(writer, options);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new JsonException("The JSON property name could not be read as a string.");
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(
+ stringValue,
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Kind);
+ }
+ }
+
+ ///
+ /// Discriminated union type for objectNumber
+ ///
+ [Serializable]
+ public struct ObjectNumber
+ {
+ public ObjectNumber(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.ObjectNumber(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for nm
+ ///
+ [Serializable]
+ public struct Nm
+ {
+ public Nm(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Nm(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for index
+ ///
+ [Serializable]
+ public struct Index
+ {
+ public Index(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo.Index(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex value
+ ) => new(value);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex.cs
new file mode 100644
index 0000000..70de6a5
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex.cs
@@ -0,0 +1,35 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("index")]
+ public required int Index { get; set; }
+
+ [JsonPropertyName("revision")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision Revision { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision.cs
new file mode 100644
index 0000000..bd4ed07
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision.cs
@@ -0,0 +1,35 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("docSessionId")]
+ public required string DocSessionId { get; set; }
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("generation")]
+ public required int Generation { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm.cs
new file mode 100644
index 0000000..867850e
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm.cs
@@ -0,0 +1,32 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("nm")]
+ public required string Nm { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber.cs
new file mode 100644
index 0000000..c86aa56
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber.cs
@@ -0,0 +1,32 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("annotObjectNumber")]
+ public required int AnnotObjectNumber { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent.cs
new file mode 100644
index 0000000..8139dc6
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent.cs
@@ -0,0 +1,130 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent Replace =
+ new(Values.Replace);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent(string value)
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent(value);
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Replace = "replace";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect.cs
new file mode 100644
index 0000000..22e874f
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("left")]
+ public required double Left { get; set; }
+
+ [JsonPropertyName("bottom")]
+ public required double Bottom { get; set; }
+
+ [JsonPropertyName("right")]
+ public required double Right { get; set; }
+
+ [JsonPropertyName("top")]
+ public required double Top { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences.cs
new file mode 100644
index 0000000..ea3146c
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("left")]
+ public required double Left { get; set; }
+
+ [JsonPropertyName("top")]
+ public required double Top { get; set; }
+
+ [JsonPropertyName("right")]
+ public required double Right { get; set; }
+
+ [JsonPropertyName("bottom")]
+ public required double Bottom { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.cs
new file mode 100644
index 0000000..b7c1485
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.cs
@@ -0,0 +1,410 @@
+// ReSharper disable NullableWarningSuppressionIsUsed
+// ReSharper disable InconsistentNaming
+
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Nodes;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.JsonConverter)
+)]
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef
+{
+ internal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ string type,
+ object? value
+ )
+ {
+ Kind = type;
+ Value = value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.ObjectNumber value
+ )
+ {
+ Kind = "objectNumber";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Nm value
+ )
+ {
+ Kind = "nm";
+ Value = value.Value;
+ }
+
+ ///
+ /// Create an instance of DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef with .
+ ///
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Index value
+ )
+ {
+ Kind = "index";
+ Value = value.Value;
+ }
+
+ ///
+ /// Discriminant value
+ ///
+ [JsonPropertyName("kind")]
+ public string Kind { get; internal set; }
+
+ ///
+ /// Discriminated union value
+ ///
+ public object? Value { get; internal set; }
+
+ ///
+ /// Returns true if is "objectNumber"
+ ///
+ public bool IsObjectNumber => Kind == "objectNumber";
+
+ ///
+ /// Returns true if is "nm"
+ ///
+ public bool IsNm => Kind == "nm";
+
+ ///
+ /// Returns true if is "index"
+ ///
+ public bool IsIndex => Kind == "index";
+
+ ///
+ /// Returns the value as a if is 'objectNumber', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'objectNumber'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber AsObjectNumber() =>
+ IsObjectNumber
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber)
+ Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Kind is not 'objectNumber'"
+ );
+
+ ///
+ /// Returns the value as a if is 'nm', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'nm'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm AsNm() =>
+ IsNm
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Kind is not 'nm'"
+ );
+
+ ///
+ /// Returns the value as a if is 'index', otherwise throws an exception.
+ ///
+ /// Thrown when is not 'index'.
+ public CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex AsIndex() =>
+ IsIndex
+ ? (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex)Value!
+ : throw new global::System.Exception(
+ "DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Kind is not 'index'"
+ );
+
+ public T Match(
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber,
+ T
+ > onObjectNumber,
+ Func onNm,
+ Func<
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex,
+ T
+ > onIndex,
+ Func onUnknown_
+ )
+ {
+ return Kind switch
+ {
+ "objectNumber" => onObjectNumber(AsObjectNumber()),
+ "nm" => onNm(AsNm()),
+ "index" => onIndex(AsIndex()),
+ _ => onUnknown_(Kind, Value),
+ };
+ }
+
+ public void Visit(
+ Action onObjectNumber,
+ Action onNm,
+ Action onIndex,
+ Action onUnknown_
+ )
+ {
+ switch (Kind)
+ {
+ case "objectNumber":
+ onObjectNumber(AsObjectNumber());
+ break;
+ case "nm":
+ onNm(AsNm());
+ break;
+ case "index":
+ onIndex(AsIndex());
+ break;
+ default:
+ onUnknown_(Kind, Value);
+ break;
+ }
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsObjectNumber(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber? value
+ )
+ {
+ if (Kind == "objectNumber")
+ {
+ value =
+ (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsNm(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm? value
+ )
+ {
+ if (Kind == "nm")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ ///
+ /// Attempts to cast the value to a and returns true if successful.
+ ///
+ public bool TryAsIndex(
+ out CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex? value
+ )
+ {
+ if (Kind == "index")
+ {
+ value = (CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex)
+ Value!;
+ return true;
+ }
+ value = null;
+ return false;
+ }
+
+ public override string ToString() => JsonUtils.Serialize(this);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.ObjectNumber value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Nm value
+ ) => new(value);
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Index value
+ ) => new(value);
+
+ [Serializable]
+ internal sealed class JsonConverter
+ : JsonConverter
+ {
+ public override bool CanConvert(global::System.Type typeToConvert) =>
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef).IsAssignableFrom(
+ typeToConvert
+ );
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef Read(
+ ref Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var json = JsonElement.ParseValue(ref reader);
+ if (!json.TryGetProperty("kind", out var discriminatorElement))
+ {
+ throw new JsonException("Missing discriminator property 'kind'");
+ }
+ if (discriminatorElement.ValueKind != JsonValueKind.String)
+ {
+ if (discriminatorElement.ValueKind == JsonValueKind.Null)
+ {
+ throw new JsonException("Discriminator property 'kind' is null");
+ }
+
+ throw new JsonException(
+ $"Discriminator property 'kind' is not a string, instead is {discriminatorElement.ToString()}"
+ );
+ }
+
+ var discriminator =
+ discriminatorElement.GetString()
+ ?? throw new JsonException("Discriminator property 'kind' is null");
+
+ // Strip the discriminant property to prevent it from leaking into AdditionalProperties
+ var jsonObject = System.Text.Json.Nodes.JsonObject.Create(json);
+ jsonObject?.Remove("kind");
+ var jsonWithoutDiscriminator =
+ jsonObject != null ? JsonSerializer.SerializeToElement(jsonObject, options) : json;
+
+ var value = discriminator switch
+ {
+ "objectNumber" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber"
+ ),
+ "nm" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm"
+ ),
+ "index" =>
+ jsonWithoutDiscriminator.Deserialize(
+ options
+ )
+ ?? throw new JsonException(
+ "Failed to deserialize CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex"
+ ),
+ _ => json.Deserialize(options),
+ };
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ discriminator,
+ value
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef value,
+ JsonSerializerOptions options
+ )
+ {
+ JsonNode json =
+ value.Kind switch
+ {
+ "objectNumber" => JsonSerializer.SerializeToNode(value.Value, options),
+ "nm" => JsonSerializer.SerializeToNode(value.Value, options),
+ "index" => JsonSerializer.SerializeToNode(value.Value, options),
+ _ => JsonSerializer.SerializeToNode(value.Value, options),
+ } ?? new JsonObject();
+ json["kind"] = value.Kind;
+ json.WriteTo(writer, options);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new JsonException("The JSON property name could not be read as a string.");
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(
+ stringValue,
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Kind);
+ }
+ }
+
+ ///
+ /// Discriminated union type for objectNumber
+ ///
+ [Serializable]
+ public struct ObjectNumber
+ {
+ public ObjectNumber(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.ObjectNumber(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for nm
+ ///
+ [Serializable]
+ public struct Nm
+ {
+ public Nm(CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm value)
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Nm(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm value
+ ) => new(value);
+ }
+
+ ///
+ /// Discriminated union type for index
+ ///
+ [Serializable]
+ public struct Index
+ {
+ public Index(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex value
+ )
+ {
+ Value = value;
+ }
+
+ internal CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex Value { get; set; }
+
+ public override string ToString() => Value.ToString() ?? "null";
+
+ public static implicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.Index(
+ CloudPDF.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex value
+ ) => new(value);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex.cs
new file mode 100644
index 0000000..2263847
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex.cs
@@ -0,0 +1,35 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("index")]
+ public required int Index { get; set; }
+
+ [JsonPropertyName("revision")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision Revision { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision.cs
new file mode 100644
index 0000000..18b79b0
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision.cs
@@ -0,0 +1,35 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("docSessionId")]
+ public required string DocSessionId { get; set; }
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("generation")]
+ public required int Generation { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm.cs
new file mode 100644
index 0000000..8037079
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm.cs
@@ -0,0 +1,32 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("nm")]
+ public required string Nm { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber.cs
new file mode 100644
index 0000000..45263ed
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber.cs
@@ -0,0 +1,32 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("annotObjectNumber")]
+ public required int AnnotObjectNumber { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType.cs
new file mode 100644
index 0000000..6097e82
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType.cs
@@ -0,0 +1,135 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[JsonConverter(
+ typeof(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType.DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeSerializer)
+)]
+[Serializable]
+public readonly record struct DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType
+ : IStringEnum
+{
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType Reply =
+ new(Values.Reply);
+
+ public static readonly DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType Group =
+ new(Values.Group);
+
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType(string value)
+ {
+ Value = value;
+ }
+
+ ///
+ /// The string value of the enum.
+ ///
+ public string Value { get; }
+
+ ///
+ /// Create a string enum with the given value.
+ ///
+ public static DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType FromCustom(
+ string value
+ )
+ {
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType(value);
+ }
+
+ public bool Equals(string? other)
+ {
+ return Value.Equals(other);
+ }
+
+ ///
+ /// Returns the string value of the enum.
+ ///
+ public override string ToString()
+ {
+ return Value;
+ }
+
+ public static bool operator ==(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType value1,
+ string value2
+ ) => value1.Value.Equals(value2);
+
+ public static bool operator !=(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType value1,
+ string value2
+ ) => !value1.Value.Equals(value2);
+
+ public static explicit operator string(
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType value
+ ) => value.Value;
+
+ public static explicit operator DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType(
+ string value
+ ) => new(value);
+
+ internal class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeSerializer
+ : JsonConverter
+ {
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType Read(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON value could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType(
+ stringValue
+ );
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WriteStringValue(value.Value);
+ }
+
+ public override DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType ReadAsPropertyName(
+ ref Utf8JsonReader reader,
+ Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ var stringValue =
+ reader.GetString()
+ ?? throw new global::System.Exception(
+ "The JSON property name could not be read as a string."
+ );
+ return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType(
+ stringValue
+ );
+ }
+
+ public override void WriteAsPropertyName(
+ Utf8JsonWriter writer,
+ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType value,
+ JsonSerializerOptions options
+ )
+ {
+ writer.WritePropertyName(value.Value);
+ }
+ }
+
+ ///
+ /// Constant strings for enum values
+ ///
+ [Serializable]
+ public static class Values
+ {
+ public const string Reply = "reply";
+
+ public const string Group = "group";
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect.cs
new file mode 100644
index 0000000..ecd1928
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect.cs
@@ -0,0 +1,38 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect
+ : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("left")]
+ public required double Left { get; set; }
+
+ [JsonPropertyName("bottom")]
+ public required double Bottom { get; set; }
+
+ [JsonPropertyName("right")]
+ public required double Right { get; set; }
+
+ [JsonPropertyName("top")]
+ public required double Top { get; set; }
+
+ [JsonIgnore]
+ public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
+
+ void IJsonOnDeserialized.OnDeserialized() =>
+ AdditionalProperties.CopyFromExtensionData(_extensionData);
+
+ ///
+ public override string ToString()
+ {
+ return JsonUtils.Serialize(this);
+ }
+}
diff --git a/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle.cs b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle.cs
new file mode 100644
index 0000000..e8a108f
--- /dev/null
+++ b/src/CloudPDF/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle.cs
@@ -0,0 +1,115 @@
+using CloudPDF.Core;
+using global::System.Text.Json;
+using global::System.Text.Json.Serialization;
+
+namespace CloudPDF;
+
+[Serializable]
+public record DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle : IJsonOnDeserialized
+{
+ [JsonExtensionData]
+ private readonly IDictionary _extensionData =
+ new Dictionary();
+
+ [JsonPropertyName("ref")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef Ref { get; set; }
+
+ [JsonPropertyName("pageObjectNumber")]
+ public required int PageObjectNumber { get; set; }
+
+ [JsonPropertyName("index")]
+ public required int Index { get; set; }
+
+ [JsonPropertyName("identityQuality")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality IdentityQuality { get; set; }
+
+ [JsonPropertyName("nm")]
+ public string? Nm { get; set; }
+
+ [JsonPropertyName("flags")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags Flags { get; set; }
+
+ [JsonPropertyName("rect")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect Rect { get; set; }
+
+ [JsonPropertyName("contents")]
+ public string? Contents { get; set; }
+
+ [JsonPropertyName("subject")]
+ public string? Subject { get; set; }
+
+ [JsonPropertyName("author")]
+ public string? Author { get; set; }
+
+ [JsonPropertyName("created")]
+ public DateTime? Created { get; set; }
+
+ [JsonPropertyName("modified")]
+ public DateTime? Modified { get; set; }
+
+ [JsonPropertyName("blendMode")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode BlendMode { get; set; }
+
+ [JsonPropertyName("inReplyTo")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo? InReplyTo { get; set; }
+
+ [JsonPropertyName("replyType")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType? ReplyType { get; set; }
+
+ [JsonPropertyName("userId")]
+ public string? UserId { get; set; }
+
+ [JsonPropertyName("groupId")]
+ public string? GroupId { get; set; }
+
+ [JsonPropertyName("createdBy")]
+ public string? CreatedBy { get; set; }
+
+ [JsonPropertyName("updatedBy")]
+ public string? UpdatedBy { get; set; }
+
+ [JsonPropertyName("actions")]
+ public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions? Actions { get; set; }
+
+ [JsonPropertyName("color")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor Color { get; set; }
+
+ [JsonPropertyName("opacity")]
+ public required double Opacity { get; set; }
+
+ [JsonPropertyName("strokeWidth")]
+ public required double StrokeWidth { get; set; }
+
+ [JsonPropertyName("borderStyle")]
+ public required DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle BorderStyle { get; set; }
+
+ [JsonPropertyName("dashArray")]
+ public IEnumerable