diff --git a/.fern/metadata.json b/.fern/metadata.json index 42f3c27..6b5efd1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -11,10 +11,10 @@ "homepage": "https://www.cloudpdf.com" } }, - "originGitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd", + "originGitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0-alpha.9", + "requestedVersion": "3.0.0-alpha.10", "ciProvider": "github", - "sdkVersion": "3.0.0-alpha.9" + "sdkVersion": "3.0.0-alpha.10" } \ No newline at end of file diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index 0dc1555..b78002e 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "php", - "canonicalVersion": "3.0.0-next.9", - "sdkVersion": "3.0.0-alpha.9", + "canonicalVersion": "3.0.0-next.10", + "sdkVersion": "3.0.0-alpha.10", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "4ee27900dbb0b13408ce00a0e80d606444ab81e9d5a76186fa984c8c8dfe09fe", - "gitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd", + "openapiSha256": "9d6c7cdd459982ba9e718a3842c969003b466e3fd73883fef7783dc78e12cdfe", + "gitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2", "gitCommitIsDirty": false }, "fern": { diff --git a/reference.md b/reference.md index efde1ee..97af96e 100644 --- a/reference.md +++ b/reference.md @@ -1963,6 +1963,80 @@ $client->tokens->revoke( ## Doc Annotations +
$client->doc->annotations->listAll($docId, $layerName, $request) -> ?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 + +
+
+ +
+
+ +```php +$client->doc->annotations->listAll( + 'docId', + 'layerName', + new ListAllAnnotationsRequest([]), +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**$docId:** `string` + +
+
+ +
+
+ +**$layerName:** `string` + +
+
+ +
+
+ +**$documentPassword:** `?string` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+
+
+ + +
+
+
+
$client->doc->annotations->list($docId, $layerName, $pon, $request) -> ?DocAnnotationsList200Response
diff --git a/src/CloudPDFClient.php b/src/CloudPDFClient.php index e189959..d05f354 100644 --- a/src/CloudPDFClient.php +++ b/src/CloudPDFClient.php @@ -76,8 +76,8 @@ public function __construct( $defaultHeaders = [ 'X-Fern-Language' => 'PHP', 'X-Fern-SDK-Name' => 'CloudPDF', - 'X-Fern-SDK-Version' => '3.0.0-alpha.9', - 'User-Agent' => 'cloudpdf/sdk/3.0.0-alpha.9', + 'X-Fern-SDK-Version' => '3.0.0-alpha.10', + 'User-Agent' => 'cloudpdf/sdk/3.0.0-alpha.10', ]; if ($token != null) { $defaultHeaders['Authorization'] = "Bearer $token"; diff --git a/src/Doc/Annotations/AnnotationsClient.php b/src/Doc/Annotations/AnnotationsClient.php index eb54ef5..97964c2 100644 --- a/src/Doc/Annotations/AnnotationsClient.php +++ b/src/Doc/Annotations/AnnotationsClient.php @@ -4,14 +4,16 @@ use Psr\Http\Client\ClientInterface; use CloudPDF\Core\Client\RawClient; -use CloudPDF\Doc\Annotations\Requests\ListAnnotationsRequest; -use CloudPDF\Types\DocAnnotationsList200Response; +use CloudPDF\Doc\Annotations\Requests\ListAllAnnotationsRequest; +use CloudPDF\Types\DocAnnotationsListAll200Response; use CloudPDF\Exceptions\CloudPDFException; use CloudPDF\Exceptions\CloudPDFApiException; use CloudPDF\Core\Json\JsonApiRequest; use CloudPDF\Core\Client\HttpMethod; use JsonException; use Psr\Http\Client\ClientExceptionInterface; +use CloudPDF\Doc\Annotations\Requests\ListAnnotationsRequest; +use CloudPDF\Types\DocAnnotationsList200Response; use CloudPDF\Doc\Annotations\Requests\CreateAnnotationsRequest; use CloudPDF\Types\DocAnnotationsCreate200Response; use CloudPDF\Doc\Annotations\Requests\DeleteAnnotationsRequest; @@ -55,6 +57,70 @@ public function __construct( $this->options = $options ?? []; } + /** + * 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. + * + * Example: + * ```php + * $client->doc->annotations->listAll( + * 'docId', + * 'layerName', + * new ListAllAnnotationsRequest([]), + * ); + * ``` + * + * @param string $docId + * @param string $layerName + * @param ListAllAnnotationsRequest $request + * @param ?array{ + * baseUrl?: string, + * maxRetries?: int, + * timeout?: float, + * headers?: array, + * queryParameters?: array, + * bodyProperties?: array, + * } $options + * @return ?DocAnnotationsListAll200Response + * @throws CloudPDFException + * @throws CloudPDFApiException + */ + public function listAll(string $docId, string $layerName, ListAllAnnotationsRequest $request = new ListAllAnnotationsRequest(), ?array $options = null): ?DocAnnotationsListAll200Response + { + $options = array_merge($this->options, $options ?? []); + $headers = []; + if ($request->documentPassword != null) { + $headers['X-Document-Password'] = $request->documentPassword; + } + try { + $response = $this->client->sendRequest( + new JsonApiRequest( + baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', + path: "v1/docs/{$docId}/layers/{$layerName}/annotations/items", + method: HttpMethod::GET, + headers: $headers, + ), + $options, + ); + $statusCode = $response->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 400) { + $json = $response->getBody()->getContents(); + if (empty($json)) { + return null; + } + return DocAnnotationsListAll200Response::fromJson($json); + } + } catch (JsonException $e) { + throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); + } catch (ClientExceptionInterface $e) { + throw new CloudPDFException(message: $e->getMessage(), previous: $e); + } + throw new CloudPDFApiException( + message: 'API request failed', + statusCode: $statusCode, + body: $response->getBody()->getContents(), + ); + } + /** * Example: * ```php diff --git a/src/Doc/Annotations/Requests/ListAllAnnotationsRequest.php b/src/Doc/Annotations/Requests/ListAllAnnotationsRequest.php new file mode 100644 index 0000000..79fe039 --- /dev/null +++ b/src/Doc/Annotations/Requests/ListAllAnnotationsRequest.php @@ -0,0 +1,24 @@ +documentPassword = $values['documentPassword'] ?? null; + } +} diff --git a/src/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.php b/src/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.php index 320a41c..d40ee62 100644 --- a/src/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.php +++ b/src/Types/DocAnnotationsCreate200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocAnnotationsCreate200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocAnnotationsCreate200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.php b/src/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.php index 4ab88d4..1274044 100644 --- a/src/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.php +++ b/src/Types/DocAnnotationsDelete200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocAnnotationsDelete200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocAnnotationsDelete200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.php index 579c436..43776f1 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemCaret.php @@ -57,6 +57,12 @@ class DocAnnotationsList200ResponseAnnotationsItemCaret extends JsonSerializable #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -172,6 +178,7 @@ class DocAnnotationsList200ResponseAnnotationsItemCaret extends JsonSerializable * opacity: float, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -199,6 +206,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.php index 00ada3d..177d1ba 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemCircle.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemCircle extends JsonSerializabl #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -199,6 +205,7 @@ class DocAnnotationsList200ResponseAnnotationsItemCircle extends JsonSerializabl * borderStyle: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -228,6 +235,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.php index 7e5a9d8..1baa472 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemFileAttachment.php @@ -57,6 +57,12 @@ class DocAnnotationsList200ResponseAnnotationsItemFileAttachment extends JsonSer #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -162,6 +168,7 @@ class DocAnnotationsList200ResponseAnnotationsItemFileAttachment extends JsonSer * file: DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -185,6 +192,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.php index acd1e47..2c04c32 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemFreeText.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemFreeText extends JsonSerializa #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -239,6 +245,7 @@ class DocAnnotationsList200ResponseAnnotationsItemFreeText extends JsonSerializa * borderStyle: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -270,6 +277,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.php index 46adb3a..62dea83 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemHighlight.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemHighlight extends JsonSerializ #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -156,6 +162,7 @@ class DocAnnotationsList200ResponseAnnotationsItemHighlight extends JsonSerializ * quadPoints: array, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -179,6 +186,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemInk.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemInk.php index 93f1989..cef7dae 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemInk.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemInk.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemInk extends JsonSerializableTy #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -188,6 +194,7 @@ class DocAnnotationsList200ResponseAnnotationsItemInk extends JsonSerializableTy * inkList: array>, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -214,6 +221,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemLine.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemLine.php index ed3ffa2..48fbfdb 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemLine.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemLine.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemLine extends JsonSerializableT #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -195,6 +201,7 @@ class DocAnnotationsList200ResponseAnnotationsItemLine extends JsonSerializableT * lineEndings: DocAnnotationsList200ResponseAnnotationsItemLineLineEndings, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -221,6 +228,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemLink.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemLink.php index 04cd182..306da66 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemLink.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemLink.php @@ -57,6 +57,12 @@ class DocAnnotationsList200ResponseAnnotationsItemLink extends JsonSerializableT #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -140,6 +146,7 @@ class DocAnnotationsList200ResponseAnnotationsItemLink extends JsonSerializableT * blendMode: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -164,6 +171,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.php index 525b9b3..e6c4a20 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolygon.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemPolygon extends JsonSerializab #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -194,6 +200,7 @@ class DocAnnotationsList200ResponseAnnotationsItemPolygon extends JsonSerializab * vertices: array, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -221,6 +228,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.php index 1226db1..741c31a 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemPolyline.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemPolyline extends JsonSerializa #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -195,6 +201,7 @@ class DocAnnotationsList200ResponseAnnotationsItemPolyline extends JsonSerializa * lineEndings: DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -221,6 +228,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.php index dcae911..040b75d 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemRedact.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemRedact extends JsonSerializabl #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -203,6 +209,7 @@ class DocAnnotationsList200ResponseAnnotationsItemRedact extends JsonSerializabl * textAlign: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -228,6 +235,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.php index 7f5c806..e1f3c85 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquare.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemSquare extends JsonSerializabl #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -199,6 +205,7 @@ class DocAnnotationsList200ResponseAnnotationsItemSquare extends JsonSerializabl * borderStyle: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -228,6 +235,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.php index 9e6a67a..39f8024 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemSquiggly.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemSquiggly extends JsonSerializa #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -156,6 +162,7 @@ class DocAnnotationsList200ResponseAnnotationsItemSquiggly extends JsonSerializa * quadPoints: array, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -179,6 +186,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.php index 5bac426..7ddf280 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemStamp.php @@ -57,6 +57,12 @@ class DocAnnotationsList200ResponseAnnotationsItemStamp extends JsonSerializable #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -152,6 +158,7 @@ class DocAnnotationsList200ResponseAnnotationsItemStamp extends JsonSerializable * blendMode: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -178,6 +185,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.php index 9917fa9..cf127f3 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemStrikeout.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemStrikeout extends JsonSerializ #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -162,6 +168,7 @@ class DocAnnotationsList200ResponseAnnotationsItemStrikeout extends JsonSerializ * quadPoints: array, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -186,6 +193,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemText.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemText.php index f665946..5e94b34 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemText.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemText.php @@ -57,6 +57,12 @@ class DocAnnotationsList200ResponseAnnotationsItemText extends JsonSerializableT #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -141,6 +147,18 @@ class DocAnnotationsList200ResponseAnnotationsItemText extends JsonSerializableT #[JsonProperty('icon')] public string $icon; + /** + * @var ?string $state + */ + #[JsonProperty('state')] + public ?string $state; + + /** + * @var ?string $stateModel + */ + #[JsonProperty('stateModel')] + public ?string $stateModel; + /** * @param array{ * ref: DocAnnotationsList200ResponseAnnotationsItemTextRef, @@ -155,6 +173,7 @@ class DocAnnotationsList200ResponseAnnotationsItemText extends JsonSerializableT * icon: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -165,6 +184,8 @@ class DocAnnotationsList200ResponseAnnotationsItemText extends JsonSerializableT * createdBy?: ?string, * updatedBy?: ?string, * actions?: ?DocAnnotationsList200ResponseAnnotationsItemTextActions, + * state?: ?string, + * stateModel?: ?string, * } $values */ public function __construct( @@ -178,6 +199,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; @@ -192,6 +214,8 @@ public function __construct( $this->color = $values['color']; $this->opacity = $values['opacity']; $this->icon = $values['icon']; + $this->state = $values['state'] ?? null; + $this->stateModel = $values['stateModel'] ?? null; } /** diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.php index 8d75a33..4054d71 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnderline.php @@ -58,6 +58,12 @@ class DocAnnotationsList200ResponseAnnotationsItemUnderline extends JsonSerializ #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -156,6 +162,7 @@ class DocAnnotationsList200ResponseAnnotationsItemUnderline extends JsonSerializ * quadPoints: array, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -179,6 +186,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.php index 4fec0ea..91ffcf2 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemUnsupported.php @@ -57,6 +57,12 @@ class DocAnnotationsList200ResponseAnnotationsItemUnsupported extends JsonSerial #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -147,6 +153,7 @@ class DocAnnotationsList200ResponseAnnotationsItemUnsupported extends JsonSerial * rawSubtypeCode: int, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -171,6 +178,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.php b/src/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.php index 58fde19..296c057 100644 --- a/src/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.php +++ b/src/Types/DocAnnotationsList200ResponseAnnotationsItemWidget.php @@ -57,6 +57,12 @@ class DocAnnotationsList200ResponseAnnotationsItemWidget extends JsonSerializabl #[JsonProperty('contents')] public ?string $contents; + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + /** * @var ?string $author */ @@ -199,6 +205,7 @@ class DocAnnotationsList200ResponseAnnotationsItemWidget extends JsonSerializabl * fieldFamily: value-of, * nm?: ?string, * contents?: ?string, + * subject?: ?string, * author?: ?string, * created?: ?DateTime, * modified?: ?DateTime, @@ -227,6 +234,7 @@ public function __construct( $this->flags = $values['flags']; $this->rect = $values['rect']; $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; $this->author = $values['author'] ?? null; $this->created = $values['created'] ?? null; $this->modified = $values['modified'] ?? null; diff --git a/src/Types/DocAnnotationsListAll200Response.php b/src/Types/DocAnnotationsListAll200Response.php new file mode 100644 index 0000000..95bb673 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200Response.php @@ -0,0 +1,43 @@ + $pages + */ + #[JsonProperty('pages'), ArrayType([DocAnnotationsListAll200ResponsePagesItem::class])] + public array $pages; + + /** + * @var ?int $auditHead + */ + #[JsonProperty('auditHead')] + public ?int $auditHead; + + /** + * @param array{ + * pages: array, + * auditHead?: ?int, + * } $values + */ + public function __construct( + array $values, + ) { + $this->pages = $values['pages']; + $this->auditHead = $values['auditHead'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItem.php b/src/Types/DocAnnotationsListAll200ResponsePagesItem.php new file mode 100644 index 0000000..cccec39 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItem.php @@ -0,0 +1,43 @@ + $annotations + */ + #[JsonProperty('annotations'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItem::class])] + public array $annotations; + + /** + * @param array{ + * pageState: DocAnnotationsListAll200ResponsePagesItemPageState, + * annotations: array, + * } $values + */ + public function __construct( + array $values, + ) { + $this->pageState = $values['pageState']; + $this->annotations = $values['annotations']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.php new file mode 100644 index 0000000..c894878 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItem.php @@ -0,0 +1,961 @@ +subtype = $values['subtype']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight $highlight + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function highlight(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight $highlight): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'highlight', + 'value' => $highlight, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline $underline + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function underline(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline $underline): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'underline', + 'value' => $underline, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly $squiggly + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function squiggly(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly $squiggly): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'squiggly', + 'value' => $squiggly, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout $strikeout + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function strikeout(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout $strikeout): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'strikeout', + 'value' => $strikeout, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle $circle + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function circle(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle $circle): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'circle', + 'value' => $circle, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare $square + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function square(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare $square): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'square', + 'value' => $square, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon $polygon + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function polygon(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon $polygon): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'polygon', + 'value' => $polygon, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline $polyline + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function polyline(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline $polyline): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'polyline', + 'value' => $polyline, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine $line + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function line(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine $line): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'line', + 'value' => $line, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink $link + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function link(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink $link): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'link', + 'value' => $link, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk $ink + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function ink(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk $ink): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'ink', + 'value' => $ink, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText $freeText + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function freeText(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText $freeText): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'free-text', + 'value' => $freeText, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret $caret + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function caret(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret $caret): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'caret', + 'value' => $caret, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText $text + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function text(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText $text): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'text', + 'value' => $text, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp $stamp + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function stamp(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp $stamp): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'stamp', + 'value' => $stamp, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment $fileAttachment + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function fileAttachment(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment $fileAttachment): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'file-attachment', + 'value' => $fileAttachment, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget $widget + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function widget(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget $widget): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'widget', + 'value' => $widget, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact $redact + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function redact(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact $redact): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'redact', + 'value' => $redact, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported $unsupported + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + */ + public static function unsupported(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported $unsupported): DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItem([ + 'subtype' => 'unsupported', + 'value' => $unsupported, + ]); + } + + /** + * @return bool + */ + public function isHighlight(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight && $this->subtype === 'highlight'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + */ + public function asHighlight(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight && $this->subtype === 'highlight')) { + throw new Exception( + "Expected highlight; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isUnderline(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline && $this->subtype === 'underline'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + */ + public function asUnderline(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline && $this->subtype === 'underline')) { + throw new Exception( + "Expected underline; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isSquiggly(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly && $this->subtype === 'squiggly'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + */ + public function asSquiggly(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly && $this->subtype === 'squiggly')) { + throw new Exception( + "Expected squiggly; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isStrikeout(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout && $this->subtype === 'strikeout'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + */ + public function asStrikeout(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout && $this->subtype === 'strikeout')) { + throw new Exception( + "Expected strikeout; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isCircle(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle && $this->subtype === 'circle'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + */ + public function asCircle(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle && $this->subtype === 'circle')) { + throw new Exception( + "Expected circle; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isSquare(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare && $this->subtype === 'square'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + */ + public function asSquare(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare && $this->subtype === 'square')) { + throw new Exception( + "Expected square; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isPolygon(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon && $this->subtype === 'polygon'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + */ + public function asPolygon(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon && $this->subtype === 'polygon')) { + throw new Exception( + "Expected polygon; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isPolyline(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline && $this->subtype === 'polyline'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + */ + public function asPolyline(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline && $this->subtype === 'polyline')) { + throw new Exception( + "Expected polyline; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isLine(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine && $this->subtype === 'line'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + */ + public function asLine(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine && $this->subtype === 'line')) { + throw new Exception( + "Expected line; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isLink(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink && $this->subtype === 'link'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + */ + public function asLink(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink && $this->subtype === 'link')) { + throw new Exception( + "Expected link; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isInk(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk && $this->subtype === 'ink'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + */ + public function asInk(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk && $this->subtype === 'ink')) { + throw new Exception( + "Expected ink; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFreeText(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText && $this->subtype === 'free-text'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + */ + public function asFreeText(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText && $this->subtype === 'free-text')) { + throw new Exception( + "Expected free-text; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isCaret(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret && $this->subtype === 'caret'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + */ + public function asCaret(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret && $this->subtype === 'caret')) { + throw new Exception( + "Expected caret; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isText(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText && $this->subtype === 'text'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + */ + public function asText(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText && $this->subtype === 'text')) { + throw new Exception( + "Expected text; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isStamp(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp && $this->subtype === 'stamp'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + */ + public function asStamp(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp && $this->subtype === 'stamp')) { + throw new Exception( + "Expected stamp; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFileAttachment(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment && $this->subtype === 'file-attachment'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + */ + public function asFileAttachment(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment && $this->subtype === 'file-attachment')) { + throw new Exception( + "Expected file-attachment; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isWidget(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget && $this->subtype === 'widget'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + */ + public function asWidget(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget && $this->subtype === 'widget')) { + throw new Exception( + "Expected widget; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isRedact(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact && $this->subtype === 'redact'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + */ + public function asRedact(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact && $this->subtype === 'redact')) { + throw new Exception( + "Expected redact; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isUnsupported(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported && $this->subtype === 'unsupported'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + */ + public function asUnsupported(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported && $this->subtype === 'unsupported')) { + throw new Exception( + "Expected unsupported; got " . $this->subtype . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['subtype'] = $this->subtype; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->subtype) { + case 'highlight': + $value = $this->asHighlight()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'underline': + $value = $this->asUnderline()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'squiggly': + $value = $this->asSquiggly()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'strikeout': + $value = $this->asStrikeout()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'circle': + $value = $this->asCircle()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'square': + $value = $this->asSquare()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'polygon': + $value = $this->asPolygon()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'polyline': + $value = $this->asPolyline()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'line': + $value = $this->asLine()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'link': + $value = $this->asLink()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'ink': + $value = $this->asInk()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'free-text': + $value = $this->asFreeText()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'caret': + $value = $this->asCaret()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'text': + $value = $this->asText()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'stamp': + $value = $this->asStamp()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'file-attachment': + $value = $this->asFileAttachment()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'widget': + $value = $this->asWidget()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'redact': + $value = $this->asRedact()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'unsupported': + $value = $this->asUnsupported()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('subtype', $data)) { + throw new Exception( + "JSON data is missing property 'subtype'", + ); + } + $subtype = $data['subtype']; + if (!(is_string($subtype))) { + throw new Exception( + "Expected property 'subtype' in JSON data to be string, instead received " . get_debug_type($data['subtype']), + ); + } + + $args['subtype'] = $subtype; + switch ($subtype) { + case 'highlight': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight::jsonDeserialize($data); + break; + case 'underline': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline::jsonDeserialize($data); + break; + case 'squiggly': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly::jsonDeserialize($data); + break; + case 'strikeout': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout::jsonDeserialize($data); + break; + case 'circle': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle::jsonDeserialize($data); + break; + case 'square': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare::jsonDeserialize($data); + break; + case 'polygon': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon::jsonDeserialize($data); + break; + case 'polyline': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline::jsonDeserialize($data); + break; + case 'line': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine::jsonDeserialize($data); + break; + case 'link': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink::jsonDeserialize($data); + break; + case 'ink': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk::jsonDeserialize($data); + break; + case 'free-text': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText::jsonDeserialize($data); + break; + case 'caret': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret::jsonDeserialize($data); + break; + case 'text': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText::jsonDeserialize($data); + break; + case 'stamp': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp::jsonDeserialize($data); + break; + case 'file-attachment': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment::jsonDeserialize($data); + break; + case 'widget': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget::jsonDeserialize($data); + break; + case 'redact': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact::jsonDeserialize($data); + break; + case 'unsupported': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['subtype'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret.php new file mode 100644 index 0000000..a245d73 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret.php @@ -0,0 +1,236 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var ?value-of $intent + */ + #[JsonProperty('intent')] + public ?string $intent; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences $rectDifferences + */ + #[JsonProperty('rectDifferences')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences $rectDifferences; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect $unrotatedRect + */ + #[JsonProperty('unrotatedRect')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect $unrotatedRect; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor, + * opacity: float, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions, + * intent?: ?value-of, + * rectDifferences?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences, + * rotation?: ?float, + * unrotatedRect?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->intent = $values['intent'] ?? null; + $this->rectDifferences = $values['rectDifferences'] ?? null; + $this->rotation = $values['rotation'] ?? null; + $this->unrotatedRect = $values['unrotatedRect'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions.php new file mode 100644 index 0000000..d1a3135 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate.php new file mode 100644 index 0000000..d5cef0c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot.php new file mode 100644 index 0000000..7b462a0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType.php new file mode 100644 index 0000000..06e5490 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot.php new file mode 100644 index 0000000..7a1f521 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType.php new file mode 100644 index 0000000..77f81d3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot.php new file mode 100644 index 0000000..dd313ff --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType.php new file mode 100644 index 0000000..fb91446 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot.php new file mode 100644 index 0000000..6f71903 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType.php new file mode 100644 index 0000000..ea44f42 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot.php new file mode 100644 index 0000000..840bd37 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType.php new file mode 100644 index 0000000..9d6bccc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot.php new file mode 100644 index 0000000..a6b73a0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType.php new file mode 100644 index 0000000..01ea1ea --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot.php new file mode 100644 index 0000000..99e7497 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType.php new file mode 100644 index 0000000..15d9a1b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot.php new file mode 100644 index 0000000..439a010 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType.php new file mode 100644 index 0000000..3fc44d1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot.php new file mode 100644 index 0000000..7702035 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType.php new file mode 100644 index 0000000..432ed93 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot.php new file mode 100644 index 0000000..2fd9087 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType.php new file mode 100644 index 0000000..185344e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot.php new file mode 100644 index 0000000..8457151 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType.php new file mode 100644 index 0000000..a4205b7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags.php new file mode 100644 index 0000000..ab16bcb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality.php new file mode 100644 index 0000000..60e1764 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex.php new file mode 100644 index 0000000..ef299cd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision.php new file mode 100644 index 0000000..a70b471 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm.php new file mode 100644 index 0000000..5703a7b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber.php new file mode 100644 index 0000000..1d7075b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent.php new file mode 100644 index 0000000..d7c89d4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent.php @@ -0,0 +1,8 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences.php new file mode 100644 index 0000000..d9f3419 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->top = $values['top']; + $this->right = $values['right']; + $this->bottom = $values['bottom']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.php new file mode 100644 index 0000000..9b1e1a7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex.php new file mode 100644 index 0000000..cc24dba --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision.php new file mode 100644 index 0000000..1d37a1a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm.php new file mode 100644 index 0000000..b233d89 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber.php new file mode 100644 index 0000000..df838c7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType.php new file mode 100644 index 0000000..b1424f7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType.php @@ -0,0 +1,9 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle.php new file mode 100644 index 0000000..5d8fcfa --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle.php @@ -0,0 +1,269 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?array $dashArray + */ + #[JsonProperty('dashArray'), ArrayType(['float'])] + public ?array $dashArray; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor $interiorColor; + + /** + * @var ?float $cloudyIntensity + */ + #[JsonProperty('cloudyIntensity')] + public ?float $cloudyIntensity; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences $rectDifferences + */ + #[JsonProperty('rectDifferences')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences $rectDifferences; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect $unrotatedRect + */ + #[JsonProperty('unrotatedRect')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect $unrotatedRect; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor, + * opacity: float, + * strokeWidth: float, + * borderStyle: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions, + * dashArray?: ?array, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor, + * cloudyIntensity?: ?float, + * rectDifferences?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences, + * rotation?: ?float, + * unrotatedRect?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->dashArray = $values['dashArray'] ?? null; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->cloudyIntensity = $values['cloudyIntensity'] ?? null; + $this->rectDifferences = $values['rectDifferences'] ?? null; + $this->rotation = $values['rotation'] ?? null; + $this->unrotatedRect = $values['unrotatedRect'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions.php new file mode 100644 index 0000000..bdda5ce --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate.php new file mode 100644 index 0000000..5df3738 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot.php new file mode 100644 index 0000000..bea11a2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType.php new file mode 100644 index 0000000..fef682c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot.php new file mode 100644 index 0000000..d31b49a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType.php new file mode 100644 index 0000000..2da1007 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot.php new file mode 100644 index 0000000..22f4f6f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType.php new file mode 100644 index 0000000..7454db8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot.php new file mode 100644 index 0000000..e3db4e6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType.php new file mode 100644 index 0000000..ee1eab9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot.php new file mode 100644 index 0000000..be2feda --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType.php new file mode 100644 index 0000000..dc2dc33 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot.php new file mode 100644 index 0000000..f88c9f1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType.php new file mode 100644 index 0000000..eb85f53 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot.php new file mode 100644 index 0000000..9cee99b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType.php new file mode 100644 index 0000000..f22dda7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot.php new file mode 100644 index 0000000..232f096 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType.php new file mode 100644 index 0000000..adda0da --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot.php new file mode 100644 index 0000000..c20c1cc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType.php new file mode 100644 index 0000000..c8543b6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot.php new file mode 100644 index 0000000..945fe2b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType.php new file mode 100644 index 0000000..d4f19fa --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot.php new file mode 100644 index 0000000..94fc9e6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType.php new file mode 100644 index 0000000..250e681 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags.php new file mode 100644 index 0000000..61fe921 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality.php new file mode 100644 index 0000000..216fc7a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex.php new file mode 100644 index 0000000..e1f1be8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision.php new file mode 100644 index 0000000..8f811a3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm.php new file mode 100644 index 0000000..3c2dcdf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber.php new file mode 100644 index 0000000..4187e03 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor.php new file mode 100644 index 0000000..f6f2585 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect.php new file mode 100644 index 0000000..648b67e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences.php new file mode 100644 index 0000000..81263be --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->top = $values['top']; + $this->right = $values['right']; + $this->bottom = $values['bottom']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef.php new file mode 100644 index 0000000..c4ea106 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex.php new file mode 100644 index 0000000..9a0e592 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision.php new file mode 100644 index 0000000..7d62c02 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm.php new file mode 100644 index 0000000..0a9541e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber.php new file mode 100644 index 0000000..48eabd5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType.php new file mode 100644 index 0000000..afd6b9f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType.php @@ -0,0 +1,9 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment.php new file mode 100644 index 0000000..8fdbe97 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment.php @@ -0,0 +1,220 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var value-of $icon + */ + #[JsonProperty('icon')] + public string $icon; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile $file + */ + #[JsonProperty('file')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile $file; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor, + * opacity: float, + * icon: value-of, + * file: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->icon = $values['icon']; + $this->file = $values['file']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions.php new file mode 100644 index 0000000..e2c846b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate.php new file mode 100644 index 0000000..4a1a152 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot.php new file mode 100644 index 0000000..84e693f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType.php new file mode 100644 index 0000000..0cda205 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot.php new file mode 100644 index 0000000..d7f7124 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType.php new file mode 100644 index 0000000..62a32e9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot.php new file mode 100644 index 0000000..6bf890f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType.php new file mode 100644 index 0000000..570af3e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot.php new file mode 100644 index 0000000..4ef1409 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType.php new file mode 100644 index 0000000..65b4218 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot.php new file mode 100644 index 0000000..6e79bf6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType.php new file mode 100644 index 0000000..92a052e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot.php new file mode 100644 index 0000000..25e6f8d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType.php new file mode 100644 index 0000000..25bea1b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot.php new file mode 100644 index 0000000..0de2b79 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType.php new file mode 100644 index 0000000..41bb3ef --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot.php new file mode 100644 index 0000000..d19e759 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType.php new file mode 100644 index 0000000..d3ee8f7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot.php new file mode 100644 index 0000000..300d153 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType.php new file mode 100644 index 0000000..5f9665b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot.php new file mode 100644 index 0000000..5091851 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType.php new file mode 100644 index 0000000..5d3f0d1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot.php new file mode 100644 index 0000000..1fa829f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType.php new file mode 100644 index 0000000..5b063a8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile.php new file mode 100644 index 0000000..16b1016 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile.php @@ -0,0 +1,74 @@ +name = $values['name']; + $this->mimeType = $values['mimeType'] ?? null; + $this->description = $values['description'] ?? null; + $this->size = $values['size'] ?? null; + $this->checksum = $values['checksum'] ?? null; + $this->creationDate = $values['creationDate'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags.php new file mode 100644 index 0000000..49d90c7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon.php new file mode 100644 index 0000000..0f2b9e5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon.php @@ -0,0 +1,11 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex.php new file mode 100644 index 0000000..99353d5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision.php new file mode 100644 index 0000000..288dadf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm.php new file mode 100644 index 0000000..4db8689 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber.php new file mode 100644 index 0000000..8f2cc01 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect.php new file mode 100644 index 0000000..0f4b661 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef.php new file mode 100644 index 0000000..2f6f572 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex.php new file mode 100644 index 0000000..378b12f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision.php new file mode 100644 index 0000000..7b5c844 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm.php new file mode 100644 index 0000000..5d7104c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber.php new file mode 100644 index 0000000..9a942f1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType.php new file mode 100644 index 0000000..cdb62a1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions $actions; + + /** + * @var value-of $intent + */ + #[JsonProperty('intent')] + public string $intent; + + /** + * @var value-of $fontFamily + */ + #[JsonProperty('fontFamily')] + public string $fontFamily; + + /** + * @var float $fontSize + */ + #[JsonProperty('fontSize')] + public float $fontSize; + + /** + * @var value-of $textAlign + */ + #[JsonProperty('textAlign')] + public string $textAlign; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor $color; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor $fontColor + */ + #[JsonProperty('fontColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor $fontColor; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor $interiorColor; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?array $dashArray + */ + #[JsonProperty('dashArray'), ArrayType(['float'])] + public ?array $dashArray; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences $rectDifferences + */ + #[JsonProperty('rectDifferences')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences $rectDifferences; + + /** + * @var ?array $calloutLine + */ + #[JsonProperty('calloutLine'), ArrayType(['mixed'])] + public ?array $calloutLine; + + /** + * @var ?value-of $lineEnding + */ + #[JsonProperty('lineEnding')] + public ?string $lineEnding; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect $unrotatedRect + */ + #[JsonProperty('unrotatedRect')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect $unrotatedRect; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect, + * blendMode: value-of, + * intent: value-of, + * fontFamily: value-of, + * fontSize: float, + * textAlign: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor, + * opacity: float, + * strokeWidth: float, + * borderStyle: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions, + * fontColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor, + * dashArray?: ?array, + * rectDifferences?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences, + * calloutLine?: ?array, + * lineEnding?: ?value-of, + * rotation?: ?float, + * unrotatedRect?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->intent = $values['intent']; + $this->fontFamily = $values['fontFamily']; + $this->fontSize = $values['fontSize']; + $this->textAlign = $values['textAlign']; + $this->color = $values['color']; + $this->fontColor = $values['fontColor'] ?? null; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->opacity = $values['opacity']; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->dashArray = $values['dashArray'] ?? null; + $this->rectDifferences = $values['rectDifferences'] ?? null; + $this->calloutLine = $values['calloutLine'] ?? null; + $this->lineEnding = $values['lineEnding'] ?? null; + $this->rotation = $values['rotation'] ?? null; + $this->unrotatedRect = $values['unrotatedRect'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions.php new file mode 100644 index 0000000..dcfac57 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate.php new file mode 100644 index 0000000..3e447fd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot.php new file mode 100644 index 0000000..3914621 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType.php new file mode 100644 index 0000000..aace7c3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot.php new file mode 100644 index 0000000..99caf46 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType.php new file mode 100644 index 0000000..65bffe6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot.php new file mode 100644 index 0000000..bbaf3da --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType.php new file mode 100644 index 0000000..09fd4af --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot.php new file mode 100644 index 0000000..0baa8ad --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType.php new file mode 100644 index 0000000..31902cc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot.php new file mode 100644 index 0000000..65cede3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType.php new file mode 100644 index 0000000..70468a5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot.php new file mode 100644 index 0000000..fc4eca5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType.php new file mode 100644 index 0000000..e397dca --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot.php new file mode 100644 index 0000000..02bdb8b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType.php new file mode 100644 index 0000000..899a543 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot.php new file mode 100644 index 0000000..fd4ddd6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType.php new file mode 100644 index 0000000..42ed2a2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot.php new file mode 100644 index 0000000..9f60f76 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType.php new file mode 100644 index 0000000..a8d2edc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot.php new file mode 100644 index 0000000..2217f70 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType.php new file mode 100644 index 0000000..af5b7d3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot.php new file mode 100644 index 0000000..8c4c769 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType.php new file mode 100644 index 0000000..7f10a56 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags.php new file mode 100644 index 0000000..16c2ee5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor.php new file mode 100644 index 0000000..b4a9d00 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily.php new file mode 100644 index 0000000..5702819 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily.php @@ -0,0 +1,21 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex.php new file mode 100644 index 0000000..c49d7cf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision.php new file mode 100644 index 0000000..1fe43ff --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm.php new file mode 100644 index 0000000..b84fc67 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber.php new file mode 100644 index 0000000..7aba365 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent.php new file mode 100644 index 0000000..52a704a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent.php @@ -0,0 +1,9 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding.php new file mode 100644 index 0000000..1addf9b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding.php @@ -0,0 +1,17 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences.php new file mode 100644 index 0000000..d333f29 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->top = $values['top']; + $this->right = $values['right']; + $this->bottom = $values['bottom']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef.php new file mode 100644 index 0000000..e5eabb0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex.php new file mode 100644 index 0000000..9c88f2f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision.php new file mode 100644 index 0000000..ef8f49b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm.php new file mode 100644 index 0000000..afbf76e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber.php new file mode 100644 index 0000000..69f3cd8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType.php new file mode 100644 index 0000000..485025b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType.php @@ -0,0 +1,9 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight.php new file mode 100644 index 0000000..231010a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight.php @@ -0,0 +1,213 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var array $quadPoints + */ + #[JsonProperty('quadPoints'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem::class])] + public array $quadPoints; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor, + * opacity: float, + * quadPoints: array, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->quadPoints = $values['quadPoints']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions.php new file mode 100644 index 0000000..657acfb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate.php new file mode 100644 index 0000000..bd59a69 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot.php new file mode 100644 index 0000000..5629456 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType.php new file mode 100644 index 0000000..d4ba496 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot.php new file mode 100644 index 0000000..34cbe41 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType.php new file mode 100644 index 0000000..d5aee16 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot.php new file mode 100644 index 0000000..760fc64 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType.php new file mode 100644 index 0000000..e1f1105 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot.php new file mode 100644 index 0000000..c15bf00 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType.php new file mode 100644 index 0000000..f3ccfdf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot.php new file mode 100644 index 0000000..f4e35a7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType.php new file mode 100644 index 0000000..841be02 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot.php new file mode 100644 index 0000000..72cda55 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType.php new file mode 100644 index 0000000..81669d1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot.php new file mode 100644 index 0000000..4a7aae4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType.php new file mode 100644 index 0000000..76b15ac --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot.php new file mode 100644 index 0000000..393032a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType.php new file mode 100644 index 0000000..f817b8a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot.php new file mode 100644 index 0000000..edee68f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType.php new file mode 100644 index 0000000..641220c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot.php new file mode 100644 index 0000000..ae1e9f7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType.php new file mode 100644 index 0000000..b6e1913 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot.php new file mode 100644 index 0000000..6618f62 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType.php new file mode 100644 index 0000000..ede33b8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags.php new file mode 100644 index 0000000..17c07f9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality.php new file mode 100644 index 0000000..59f2dd3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex.php new file mode 100644 index 0000000..103d4e8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision.php new file mode 100644 index 0000000..e180d79 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm.php new file mode 100644 index 0000000..3f6a726 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber.php new file mode 100644 index 0000000..68e21b1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem.php new file mode 100644 index 0000000..c9ad2cf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem.php @@ -0,0 +1,58 @@ +p1 = $values['p1']; + $this->p2 = $values['p2']; + $this->p3 = $values['p3']; + $this->p4 = $values['p4']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1.php new file mode 100644 index 0000000..32149b4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2.php new file mode 100644 index 0000000..d2a5689 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3.php new file mode 100644 index 0000000..bbf3c16 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4.php new file mode 100644 index 0000000..38188fb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect.php new file mode 100644 index 0000000..4e641ad --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef.php new file mode 100644 index 0000000..0351eee --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex.php new file mode 100644 index 0000000..5b536e0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision.php new file mode 100644 index 0000000..48466fb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm.php new file mode 100644 index 0000000..e9255ea --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber.php new file mode 100644 index 0000000..48f10cd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType.php new file mode 100644 index 0000000..9e010b4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?array $dashArray + */ + #[JsonProperty('dashArray'), ArrayType(['float'])] + public ?array $dashArray; + + /** + * @var ?value-of $intent + */ + #[JsonProperty('intent')] + public ?string $intent; + + /** + * @var array> $inkList + */ + #[JsonProperty('inkList'), ArrayType([[DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem::class]])] + public array $inkList; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor, + * opacity: float, + * strokeWidth: float, + * borderStyle: value-of, + * inkList: array>, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions, + * dashArray?: ?array, + * intent?: ?value-of, + * rotation?: ?float, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->dashArray = $values['dashArray'] ?? null; + $this->intent = $values['intent'] ?? null; + $this->inkList = $values['inkList']; + $this->rotation = $values['rotation'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions.php new file mode 100644 index 0000000..e20d034 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate.php new file mode 100644 index 0000000..4ff27d8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot.php new file mode 100644 index 0000000..f5b501a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType.php new file mode 100644 index 0000000..069f4a4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot.php new file mode 100644 index 0000000..6c9486c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType.php new file mode 100644 index 0000000..cb00e44 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot.php new file mode 100644 index 0000000..d795f8e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType.php new file mode 100644 index 0000000..244924e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot.php new file mode 100644 index 0000000..b976644 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType.php new file mode 100644 index 0000000..1478121 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot.php new file mode 100644 index 0000000..89b6ef7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType.php new file mode 100644 index 0000000..45b1a6a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot.php new file mode 100644 index 0000000..51c734e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType.php new file mode 100644 index 0000000..7501ebb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot.php new file mode 100644 index 0000000..c1686f5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType.php new file mode 100644 index 0000000..95f647d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot.php new file mode 100644 index 0000000..80e69cb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType.php new file mode 100644 index 0000000..40d673c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot.php new file mode 100644 index 0000000..a8a813a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType.php new file mode 100644 index 0000000..c6106fc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot.php new file mode 100644 index 0000000..dc6d28c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType.php new file mode 100644 index 0000000..838b704 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot.php new file mode 100644 index 0000000..eff3a6e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType.php new file mode 100644 index 0000000..e4bc30b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags.php new file mode 100644 index 0000000..6a4c8c7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality.php new file mode 100644 index 0000000..0c4d21b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex.php new file mode 100644 index 0000000..db5421c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision.php new file mode 100644 index 0000000..1e4c4ae --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm.php new file mode 100644 index 0000000..db0a4de --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber.php new file mode 100644 index 0000000..b6be18d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem.php new file mode 100644 index 0000000..52f7934 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent.php new file mode 100644 index 0000000..2f8e1b8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent.php @@ -0,0 +1,8 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef.php new file mode 100644 index 0000000..96fd526 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex.php new file mode 100644 index 0000000..76511da --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision.php new file mode 100644 index 0000000..8ea84fd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm.php new file mode 100644 index 0000000..43d797e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber.php new file mode 100644 index 0000000..5b9960d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType.php new file mode 100644 index 0000000..7450c2d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?array $dashArray + */ + #[JsonProperty('dashArray'), ArrayType(['float'])] + public ?array $dashArray; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor $interiorColor; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints $linePoints + */ + #[JsonProperty('linePoints')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints $linePoints; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings $lineEndings + */ + #[JsonProperty('lineEndings')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings $lineEndings; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor, + * opacity: float, + * strokeWidth: float, + * borderStyle: value-of, + * linePoints: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints, + * lineEndings: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions, + * dashArray?: ?array, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor, + * rotation?: ?float, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->dashArray = $values['dashArray'] ?? null; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->linePoints = $values['linePoints']; + $this->lineEndings = $values['lineEndings']; + $this->rotation = $values['rotation'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions.php new file mode 100644 index 0000000..23215f8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate.php new file mode 100644 index 0000000..b07bbc9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot.php new file mode 100644 index 0000000..15fc865 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType.php new file mode 100644 index 0000000..cb9dc0d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot.php new file mode 100644 index 0000000..162cb92 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType.php new file mode 100644 index 0000000..04df258 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot.php new file mode 100644 index 0000000..74cf3d1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType.php new file mode 100644 index 0000000..9a47836 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot.php new file mode 100644 index 0000000..25f66f0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType.php new file mode 100644 index 0000000..b624876 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot.php new file mode 100644 index 0000000..f139b00 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType.php new file mode 100644 index 0000000..8353ba1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot.php new file mode 100644 index 0000000..d7ffab1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType.php new file mode 100644 index 0000000..dd083e8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot.php new file mode 100644 index 0000000..972a507 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType.php new file mode 100644 index 0000000..67382e7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot.php new file mode 100644 index 0000000..600662c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType.php new file mode 100644 index 0000000..5d0999e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot.php new file mode 100644 index 0000000..1a95227 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType.php new file mode 100644 index 0000000..b593e4f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot.php new file mode 100644 index 0000000..0ff74ff --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType.php new file mode 100644 index 0000000..af307fb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot.php new file mode 100644 index 0000000..3234aa1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType.php new file mode 100644 index 0000000..bff1c22 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags.php new file mode 100644 index 0000000..96a3e2a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality.php new file mode 100644 index 0000000..d71af9f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex.php new file mode 100644 index 0000000..e569b81 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision.php new file mode 100644 index 0000000..4eba165 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm.php new file mode 100644 index 0000000..2722a2c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber.php new file mode 100644 index 0000000..dc365dc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor.php new file mode 100644 index 0000000..ece286e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings.php new file mode 100644 index 0000000..956ef6d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings.php @@ -0,0 +1,42 @@ + $start + */ + #[JsonProperty('start')] + public string $start; + + /** + * @var value-of $end + */ + #[JsonProperty('end')] + public string $end; + + /** + * @param array{ + * start: value-of, + * end: value-of, + * } $values + */ + public function __construct( + array $values, + ) { + $this->start = $values['start']; + $this->end = $values['end']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd.php new file mode 100644 index 0000000..b71c141 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd.php @@ -0,0 +1,17 @@ +start = $values['start']; + $this->end = $values['end']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd.php new file mode 100644 index 0000000..8a9bc14 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart.php new file mode 100644 index 0000000..461fff9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect.php new file mode 100644 index 0000000..52a466b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef.php new file mode 100644 index 0000000..9cb849a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex.php new file mode 100644 index 0000000..55eb118 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision.php new file mode 100644 index 0000000..7b80956 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm.php new file mode 100644 index 0000000..9e23081 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber.php new file mode 100644 index 0000000..82527d6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType.php new file mode 100644 index 0000000..357579f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions $actions; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget $target + */ + #[JsonProperty('target')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget $target; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect, + * blendMode: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions, + * target?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->target = $values['target'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions.php new file mode 100644 index 0000000..6f064aa --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate.php new file mode 100644 index 0000000..f8ef23a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot.php new file mode 100644 index 0000000..84bff96 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType.php new file mode 100644 index 0000000..50812e1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot.php new file mode 100644 index 0000000..f7decd6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType.php new file mode 100644 index 0000000..dcebd86 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot.php new file mode 100644 index 0000000..37a12c1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType.php new file mode 100644 index 0000000..b4bb0a1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot.php new file mode 100644 index 0000000..177bde9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType.php new file mode 100644 index 0000000..0919c65 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot.php new file mode 100644 index 0000000..326306b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType.php new file mode 100644 index 0000000..ffcf799 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot.php new file mode 100644 index 0000000..b610b4b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType.php new file mode 100644 index 0000000..1d0ab3e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot.php new file mode 100644 index 0000000..0fc30a1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType.php new file mode 100644 index 0000000..41fc302 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot.php new file mode 100644 index 0000000..96ae27f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType.php new file mode 100644 index 0000000..1f6fd88 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot.php new file mode 100644 index 0000000..7cddf09 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType.php new file mode 100644 index 0000000..9e75572 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot.php new file mode 100644 index 0000000..ba05556 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType.php new file mode 100644 index 0000000..e514cd1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot.php new file mode 100644 index 0000000..52a7bbb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType.php new file mode 100644 index 0000000..3589828 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality.php new file mode 100644 index 0000000..143a8fd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex.php new file mode 100644 index 0000000..c58bf47 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision.php new file mode 100644 index 0000000..f9701e3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm.php new file mode 100644 index 0000000..b52f8bd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber.php new file mode 100644 index 0000000..3f5a849 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect.php new file mode 100644 index 0000000..c9c5f42 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef.php new file mode 100644 index 0000000..5e0d9e7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex.php new file mode 100644 index 0000000..b430440 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision.php new file mode 100644 index 0000000..eb888af --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm.php new file mode 100644 index 0000000..37ddf26 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber.php new file mode 100644 index 0000000..b926e2c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType.php new file mode 100644 index 0000000..0fa7a42 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto $goto + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + */ + public static function goto(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto $goto): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget([ + 'kind' => 'goto', + 'value' => $goto, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri $uri + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + */ + public static function uri(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri $uri): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget([ + 'kind' => 'uri', + 'value' => $uri, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote $gotoRemote + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + */ + public static function gotoRemote(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote $gotoRemote): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget([ + 'kind' => 'goto-remote', + 'value' => $gotoRemote, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch $launch + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + */ + public static function launch(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch $launch): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget([ + 'kind' => 'launch', + 'value' => $launch, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript $javascript + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + */ + public static function javascript(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript $javascript): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget([ + 'kind' => 'javascript', + 'value' => $javascript, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed $named + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + */ + public static function named(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed $named): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget([ + 'kind' => 'named', + 'value' => $named, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported $unsupported + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + */ + public static function unsupported(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported $unsupported): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget([ + 'kind' => 'unsupported', + 'value' => $unsupported, + ]); + } + + /** + * @return bool + */ + public function isGoto_(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto && $this->kind === 'goto'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + */ + public function asGoto_(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto && $this->kind === 'goto')) { + throw new Exception( + "Expected goto; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isUri(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri && $this->kind === 'uri'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri + */ + public function asUri(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri && $this->kind === 'uri')) { + throw new Exception( + "Expected uri; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isGotoRemote(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote && $this->kind === 'goto-remote'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + */ + public function asGotoRemote(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote && $this->kind === 'goto-remote')) { + throw new Exception( + "Expected goto-remote; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isLaunch(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch && $this->kind === 'launch'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + */ + public function asLaunch(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch && $this->kind === 'launch')) { + throw new Exception( + "Expected launch; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isJavascript(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript && $this->kind === 'javascript'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + */ + public function asJavascript(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript && $this->kind === 'javascript')) { + throw new Exception( + "Expected javascript; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNamed(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed && $this->kind === 'named'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + */ + public function asNamed(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed && $this->kind === 'named')) { + throw new Exception( + "Expected named; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isUnsupported(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported && $this->kind === 'unsupported'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + */ + public function asUnsupported(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported && $this->kind === 'unsupported')) { + throw new Exception( + "Expected unsupported; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'goto': + $value = $this->asGoto_()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'uri': + $value = $this->asUri()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'goto-remote': + $value = $this->asGotoRemote()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'launch': + $value = $this->asLaunch()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'javascript': + $value = $this->asJavascript()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'named': + $value = $this->asNamed()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'unsupported': + $value = $this->asUnsupported()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'goto': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto::jsonDeserialize($data); + break; + case 'uri': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri::jsonDeserialize($data); + break; + case 'goto-remote': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote::jsonDeserialize($data); + break; + case 'launch': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch::jsonDeserialize($data); + break; + case 'javascript': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript::jsonDeserialize($data); + break; + case 'named': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed::jsonDeserialize($data); + break; + case 'unsupported': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto.php new file mode 100644 index 0000000..2dedc68 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto.php @@ -0,0 +1,34 @@ +destination = $values['destination']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination.php new file mode 100644 index 0000000..cbbdbc1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination.php @@ -0,0 +1,466 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz $xyz + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function xyz(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz $xyz): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'xyz', + 'value' => $xyz, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit $fit + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function fit(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit $fit): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'fit', + 'value' => $fit, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH $fitH + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function fitH(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH $fitH): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'fitH', + 'value' => $fitH, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV $fitV + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function fitV(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV $fitV): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'fitV', + 'value' => $fitV, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR $fitR + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function fitR(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR $fitR): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'fitR', + 'value' => $fitR, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB $fitB + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function fitB(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB $fitB): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'fitB', + 'value' => $fitB, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh $fitBh + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function fitBh(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh $fitBh): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'fitBH', + 'value' => $fitBh, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv $fitBv + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + */ + public static function fitBv(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv $fitBv): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination([ + 'kind' => 'fitBV', + 'value' => $fitBv, + ]); + } + + /** + * @return bool + */ + public function isXyz(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz && $this->kind === 'xyz'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + */ + public function asXyz(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz && $this->kind === 'xyz')) { + throw new Exception( + "Expected xyz; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFit(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit && $this->kind === 'fit'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + */ + public function asFit(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit && $this->kind === 'fit')) { + throw new Exception( + "Expected fit; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFitH(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH && $this->kind === 'fitH'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + */ + public function asFitH(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH && $this->kind === 'fitH')) { + throw new Exception( + "Expected fitH; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFitV(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV && $this->kind === 'fitV'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + */ + public function asFitV(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV && $this->kind === 'fitV')) { + throw new Exception( + "Expected fitV; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFitR(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR && $this->kind === 'fitR'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + */ + public function asFitR(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR && $this->kind === 'fitR')) { + throw new Exception( + "Expected fitR; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFitB(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB && $this->kind === 'fitB'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + */ + public function asFitB(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB && $this->kind === 'fitB')) { + throw new Exception( + "Expected fitB; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFitBh(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh && $this->kind === 'fitBH'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + */ + public function asFitBh(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh && $this->kind === 'fitBH')) { + throw new Exception( + "Expected fitBH; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isFitBv(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv && $this->kind === 'fitBV'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + */ + public function asFitBv(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv && $this->kind === 'fitBV')) { + throw new Exception( + "Expected fitBV; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'xyz': + $value = $this->asXyz()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'fit': + $value = $this->asFit()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'fitH': + $value = $this->asFitH()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'fitV': + $value = $this->asFitV()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'fitR': + $value = $this->asFitR()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'fitB': + $value = $this->asFitB()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'fitBH': + $value = $this->asFitBh()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'fitBV': + $value = $this->asFitBv()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'xyz': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz::jsonDeserialize($data); + break; + case 'fit': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit::jsonDeserialize($data); + break; + case 'fitH': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH::jsonDeserialize($data); + break; + case 'fitV': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV::jsonDeserialize($data); + break; + case 'fitR': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR::jsonDeserialize($data); + break; + case 'fitB': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB::jsonDeserialize($data); + break; + case 'fitBH': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh::jsonDeserialize($data); + break; + case 'fitBV': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit.php new file mode 100644 index 0000000..cc9fa75 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit.php @@ -0,0 +1,34 @@ +pageObjectNumber = $values['pageObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB.php new file mode 100644 index 0000000..f1e950c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB.php @@ -0,0 +1,34 @@ +pageObjectNumber = $values['pageObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh.php new file mode 100644 index 0000000..c2fb281 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->top = $values['top'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv.php new file mode 100644 index 0000000..d1076bc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->left = $values['left'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH.php new file mode 100644 index 0000000..2477971 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->top = $values['top'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR.php new file mode 100644 index 0000000..af68de9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR.php @@ -0,0 +1,66 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV.php new file mode 100644 index 0000000..2e77141 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->left = $values['left'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz.php new file mode 100644 index 0000000..636ef6b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz.php @@ -0,0 +1,58 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->left = $values['left'] ?? null; + $this->top = $values['top'] ?? null; + $this->zoom = $values['zoom'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote.php new file mode 100644 index 0000000..7d18246 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote.php @@ -0,0 +1,34 @@ +file = $values['file']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript.php new file mode 100644 index 0000000..77ddb6f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript.php @@ -0,0 +1,26 @@ +toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch.php new file mode 100644 index 0000000..9b31c9a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch.php @@ -0,0 +1,34 @@ +path = $values['path']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed.php new file mode 100644 index 0000000..a7f0121 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed.php @@ -0,0 +1,34 @@ +name = $values['name']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported.php new file mode 100644 index 0000000..31e6c42 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported.php @@ -0,0 +1,26 @@ +toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri.php new file mode 100644 index 0000000..9cd4db9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUri.php @@ -0,0 +1,34 @@ +uri = $values['uri']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon.php new file mode 100644 index 0000000..31ef7e2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon.php @@ -0,0 +1,261 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?array $dashArray + */ + #[JsonProperty('dashArray'), ArrayType(['float'])] + public ?array $dashArray; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor $interiorColor; + + /** + * @var array $vertices + */ + #[JsonProperty('vertices'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem::class])] + public array $vertices; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @var ?float $cloudyIntensity + */ + #[JsonProperty('cloudyIntensity')] + public ?float $cloudyIntensity; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor, + * opacity: float, + * strokeWidth: float, + * borderStyle: value-of, + * vertices: array, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions, + * dashArray?: ?array, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor, + * rotation?: ?float, + * cloudyIntensity?: ?float, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->dashArray = $values['dashArray'] ?? null; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->vertices = $values['vertices']; + $this->rotation = $values['rotation'] ?? null; + $this->cloudyIntensity = $values['cloudyIntensity'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions.php new file mode 100644 index 0000000..604b064 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate.php new file mode 100644 index 0000000..de78f83 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot.php new file mode 100644 index 0000000..33e83ff --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType.php new file mode 100644 index 0000000..0a4c552 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot.php new file mode 100644 index 0000000..4705723 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType.php new file mode 100644 index 0000000..161df82 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot.php new file mode 100644 index 0000000..cc7e2fb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType.php new file mode 100644 index 0000000..681e8bb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot.php new file mode 100644 index 0000000..26e86b1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType.php new file mode 100644 index 0000000..4c0007a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot.php new file mode 100644 index 0000000..0c98039 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType.php new file mode 100644 index 0000000..222f6d0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot.php new file mode 100644 index 0000000..5387b6e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType.php new file mode 100644 index 0000000..2dd7ffe --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot.php new file mode 100644 index 0000000..889360f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType.php new file mode 100644 index 0000000..8fa6674 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot.php new file mode 100644 index 0000000..f12d4fe --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType.php new file mode 100644 index 0000000..878089c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot.php new file mode 100644 index 0000000..274fc2d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType.php new file mode 100644 index 0000000..a3ac762 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot.php new file mode 100644 index 0000000..ca92b2e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType.php new file mode 100644 index 0000000..57ea9f2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot.php new file mode 100644 index 0000000..8f97cfe --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType.php new file mode 100644 index 0000000..e958c78 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags.php new file mode 100644 index 0000000..1b9de80 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality.php new file mode 100644 index 0000000..5669822 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex.php new file mode 100644 index 0000000..b3d1e7d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision.php new file mode 100644 index 0000000..4fe2318 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm.php new file mode 100644 index 0000000..4d04eae --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber.php new file mode 100644 index 0000000..8f4de41 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor.php new file mode 100644 index 0000000..5e6c4ab --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect.php new file mode 100644 index 0000000..17c91cd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef.php new file mode 100644 index 0000000..0a07554 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex.php new file mode 100644 index 0000000..d18763f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision.php new file mode 100644 index 0000000..e7bf0bb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm.php new file mode 100644 index 0000000..80a6fa4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber.php new file mode 100644 index 0000000..11f4059 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType.php new file mode 100644 index 0000000..8836e48 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType.php @@ -0,0 +1,9 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline.php new file mode 100644 index 0000000..10ab237 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline.php @@ -0,0 +1,261 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?array $dashArray + */ + #[JsonProperty('dashArray'), ArrayType(['float'])] + public ?array $dashArray; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor $interiorColor; + + /** + * @var array $vertices + */ + #[JsonProperty('vertices'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem::class])] + public array $vertices; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings $lineEndings + */ + #[JsonProperty('lineEndings')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings $lineEndings; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor, + * opacity: float, + * strokeWidth: float, + * borderStyle: value-of, + * vertices: array, + * lineEndings: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions, + * dashArray?: ?array, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor, + * rotation?: ?float, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->dashArray = $values['dashArray'] ?? null; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->vertices = $values['vertices']; + $this->rotation = $values['rotation'] ?? null; + $this->lineEndings = $values['lineEndings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions.php new file mode 100644 index 0000000..4631626 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate.php new file mode 100644 index 0000000..af66779 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot.php new file mode 100644 index 0000000..04cfcb1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType.php new file mode 100644 index 0000000..8c7e2cf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot.php new file mode 100644 index 0000000..87394e3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType.php new file mode 100644 index 0000000..33b0604 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot.php new file mode 100644 index 0000000..2153c92 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType.php new file mode 100644 index 0000000..8a2daf0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot.php new file mode 100644 index 0000000..c98e69d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType.php new file mode 100644 index 0000000..ffa1ef6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot.php new file mode 100644 index 0000000..ad1fd2a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType.php new file mode 100644 index 0000000..546f533 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot.php new file mode 100644 index 0000000..30d221e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType.php new file mode 100644 index 0000000..b75b69b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot.php new file mode 100644 index 0000000..7d29d61 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType.php new file mode 100644 index 0000000..ba10bf1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot.php new file mode 100644 index 0000000..5b10885 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType.php new file mode 100644 index 0000000..771a627 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot.php new file mode 100644 index 0000000..9e8d463 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType.php new file mode 100644 index 0000000..3de2969 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot.php new file mode 100644 index 0000000..6464e7a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType.php new file mode 100644 index 0000000..d58ded8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot.php new file mode 100644 index 0000000..16ea38c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType.php new file mode 100644 index 0000000..a82de7a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags.php new file mode 100644 index 0000000..6a392fe --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality.php new file mode 100644 index 0000000..927f625 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex.php new file mode 100644 index 0000000..f5e6007 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision.php new file mode 100644 index 0000000..65a3c04 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm.php new file mode 100644 index 0000000..a09c3ac --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber.php new file mode 100644 index 0000000..afbeeaf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor.php new file mode 100644 index 0000000..d48bf31 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings.php new file mode 100644 index 0000000..e78e7ac --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings.php @@ -0,0 +1,42 @@ + $start + */ + #[JsonProperty('start')] + public string $start; + + /** + * @var value-of $end + */ + #[JsonProperty('end')] + public string $end; + + /** + * @param array{ + * start: value-of, + * end: value-of, + * } $values + */ + public function __construct( + array $values, + ) { + $this->start = $values['start']; + $this->end = $values['end']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd.php new file mode 100644 index 0000000..2c1ff96 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd.php @@ -0,0 +1,17 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef.php new file mode 100644 index 0000000..aad4cd7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex.php new file mode 100644 index 0000000..82c88a5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision.php new file mode 100644 index 0000000..d69cd47 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm.php new file mode 100644 index 0000000..0bfd902 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber.php new file mode 100644 index 0000000..9aa784e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType.php new file mode 100644 index 0000000..84cb44a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType.php @@ -0,0 +1,9 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact.php new file mode 100644 index 0000000..8d8747a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact.php @@ -0,0 +1,269 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions $actions; + + /** + * @var array $quadPoints + */ + #[JsonProperty('quadPoints'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem::class])] + public array $quadPoints; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor $interiorColor; + + /** + * @var ?string $overlayText + */ + #[JsonProperty('overlayText')] + public ?string $overlayText; + + /** + * @var bool $repeat + */ + #[JsonProperty('repeat')] + public bool $repeat; + + /** + * @var value-of $fontFamily + */ + #[JsonProperty('fontFamily')] + public string $fontFamily; + + /** + * @var float $fontSize + */ + #[JsonProperty('fontSize')] + public float $fontSize; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor $fontColor + */ + #[JsonProperty('fontColor')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor $fontColor; + + /** + * @var value-of $textAlign + */ + #[JsonProperty('textAlign')] + public string $textAlign; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect, + * blendMode: value-of, + * quadPoints: array, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor, + * opacity: float, + * repeat: bool, + * fontFamily: value-of, + * fontSize: float, + * fontColor: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor, + * textAlign: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor, + * overlayText?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->quadPoints = $values['quadPoints']; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->overlayText = $values['overlayText'] ?? null; + $this->repeat = $values['repeat']; + $this->fontFamily = $values['fontFamily']; + $this->fontSize = $values['fontSize']; + $this->fontColor = $values['fontColor']; + $this->textAlign = $values['textAlign']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions.php new file mode 100644 index 0000000..ecb7cbf --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate.php new file mode 100644 index 0000000..6d01fb4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot.php new file mode 100644 index 0000000..0baf58b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType.php new file mode 100644 index 0000000..46f2c67 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot.php new file mode 100644 index 0000000..f78d954 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType.php new file mode 100644 index 0000000..c5b4b08 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot.php new file mode 100644 index 0000000..360de9d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType.php new file mode 100644 index 0000000..3c1a066 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot.php new file mode 100644 index 0000000..6936725 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType.php new file mode 100644 index 0000000..1fc17a4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot.php new file mode 100644 index 0000000..8ca37d8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType.php new file mode 100644 index 0000000..2ea665a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot.php new file mode 100644 index 0000000..2ebd65e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType.php new file mode 100644 index 0000000..f5729c0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot.php new file mode 100644 index 0000000..995134c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType.php new file mode 100644 index 0000000..a0f493f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot.php new file mode 100644 index 0000000..07f723f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType.php new file mode 100644 index 0000000..fe260cc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot.php new file mode 100644 index 0000000..31431b4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType.php new file mode 100644 index 0000000..7d6b536 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot.php new file mode 100644 index 0000000..872fb67 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType.php new file mode 100644 index 0000000..381ecb4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot.php new file mode 100644 index 0000000..55621db --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType.php new file mode 100644 index 0000000..835de45 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags.php new file mode 100644 index 0000000..30c59fc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor.php new file mode 100644 index 0000000..e853026 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily.php new file mode 100644 index 0000000..e8667af --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily.php @@ -0,0 +1,21 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex.php new file mode 100644 index 0000000..0b74622 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision.php new file mode 100644 index 0000000..873cbf9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm.php new file mode 100644 index 0000000..8358ec9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber.php new file mode 100644 index 0000000..92ec814 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor.php new file mode 100644 index 0000000..6917baa --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem.php new file mode 100644 index 0000000..c6f1951 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem.php @@ -0,0 +1,58 @@ +p1 = $values['p1']; + $this->p2 = $values['p2']; + $this->p3 = $values['p3']; + $this->p4 = $values['p4']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1.php new file mode 100644 index 0000000..a16c54b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2.php new file mode 100644 index 0000000..87916ff --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3.php new file mode 100644 index 0000000..11db178 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4.php new file mode 100644 index 0000000..8c51b04 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect.php new file mode 100644 index 0000000..759df51 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef.php new file mode 100644 index 0000000..5af5fcc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex.php new file mode 100644 index 0000000..8084b6d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision.php new file mode 100644 index 0000000..0aa5cd4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm.php new file mode 100644 index 0000000..a5ccf49 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber.php new file mode 100644 index 0000000..cccf218 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType.php new file mode 100644 index 0000000..770fe51 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?array $dashArray + */ + #[JsonProperty('dashArray'), ArrayType(['float'])] + public ?array $dashArray; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor $interiorColor; + + /** + * @var ?float $cloudyIntensity + */ + #[JsonProperty('cloudyIntensity')] + public ?float $cloudyIntensity; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences $rectDifferences + */ + #[JsonProperty('rectDifferences')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences $rectDifferences; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect $unrotatedRect + */ + #[JsonProperty('unrotatedRect')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect $unrotatedRect; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor, + * opacity: float, + * strokeWidth: float, + * borderStyle: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions, + * dashArray?: ?array, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor, + * cloudyIntensity?: ?float, + * rectDifferences?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences, + * rotation?: ?float, + * unrotatedRect?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->dashArray = $values['dashArray'] ?? null; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->cloudyIntensity = $values['cloudyIntensity'] ?? null; + $this->rectDifferences = $values['rectDifferences'] ?? null; + $this->rotation = $values['rotation'] ?? null; + $this->unrotatedRect = $values['unrotatedRect'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions.php new file mode 100644 index 0000000..475e5a2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate.php new file mode 100644 index 0000000..910f7c9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot.php new file mode 100644 index 0000000..9a8c1d1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType.php new file mode 100644 index 0000000..5324690 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot.php new file mode 100644 index 0000000..2da76aa --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType.php new file mode 100644 index 0000000..c89f1dd --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot.php new file mode 100644 index 0000000..5d8a9e6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType.php new file mode 100644 index 0000000..7186b41 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot.php new file mode 100644 index 0000000..6cc1db2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType.php new file mode 100644 index 0000000..802b560 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot.php new file mode 100644 index 0000000..08c5ad8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType.php new file mode 100644 index 0000000..242ec67 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot.php new file mode 100644 index 0000000..a5f97ec --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType.php new file mode 100644 index 0000000..9aa30f6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot.php new file mode 100644 index 0000000..b4c0bf7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType.php new file mode 100644 index 0000000..aee2d2b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot.php new file mode 100644 index 0000000..b4dffb9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType.php new file mode 100644 index 0000000..fe9000a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot.php new file mode 100644 index 0000000..5822f71 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType.php new file mode 100644 index 0000000..b023e65 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot.php new file mode 100644 index 0000000..16aff86 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType.php new file mode 100644 index 0000000..5aea34d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot.php new file mode 100644 index 0000000..fbdfd79 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType.php new file mode 100644 index 0000000..9bad2e0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags.php new file mode 100644 index 0000000..2875e8d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality.php new file mode 100644 index 0000000..9d07689 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex.php new file mode 100644 index 0000000..1b3aa43 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision.php new file mode 100644 index 0000000..50f1a8f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm.php new file mode 100644 index 0000000..f404872 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber.php new file mode 100644 index 0000000..757ee61 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor.php new file mode 100644 index 0000000..25529b7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect.php new file mode 100644 index 0000000..f7db6d5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences.php new file mode 100644 index 0000000..c9b8b5f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->top = $values['top']; + $this->right = $values['right']; + $this->bottom = $values['bottom']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef.php new file mode 100644 index 0000000..2ac71f2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex.php new file mode 100644 index 0000000..919a877 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision.php new file mode 100644 index 0000000..548ef49 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm.php new file mode 100644 index 0000000..94f866d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber.php new file mode 100644 index 0000000..a47b3f4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType.php new file mode 100644 index 0000000..25b07fc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType.php @@ -0,0 +1,9 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly.php new file mode 100644 index 0000000..3f66a02 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly.php @@ -0,0 +1,213 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var array $quadPoints + */ + #[JsonProperty('quadPoints'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem::class])] + public array $quadPoints; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor, + * opacity: float, + * quadPoints: array, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->quadPoints = $values['quadPoints']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions.php new file mode 100644 index 0000000..2ff6dac --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate.php new file mode 100644 index 0000000..b015ca2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot.php new file mode 100644 index 0000000..650f097 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType.php new file mode 100644 index 0000000..b4d82d2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot.php new file mode 100644 index 0000000..4b2c015 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType.php new file mode 100644 index 0000000..68f6988 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot.php new file mode 100644 index 0000000..5ec8bdc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType.php new file mode 100644 index 0000000..9853aae --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot.php new file mode 100644 index 0000000..93d0715 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType.php new file mode 100644 index 0000000..a22bd98 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot.php new file mode 100644 index 0000000..77e39c3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType.php new file mode 100644 index 0000000..64f63b7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot.php new file mode 100644 index 0000000..d4e1bf8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType.php new file mode 100644 index 0000000..2360a42 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot.php new file mode 100644 index 0000000..9a17ba7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType.php new file mode 100644 index 0000000..8cf114a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot.php new file mode 100644 index 0000000..2e2be4b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType.php new file mode 100644 index 0000000..6ea3a0c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot.php new file mode 100644 index 0000000..a6748b6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType.php new file mode 100644 index 0000000..5aef5aa --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot.php new file mode 100644 index 0000000..0b9cde7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType.php new file mode 100644 index 0000000..c79a95f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot.php new file mode 100644 index 0000000..ee272c0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType.php new file mode 100644 index 0000000..6a36fb0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags.php new file mode 100644 index 0000000..0898d4f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality.php new file mode 100644 index 0000000..b61517b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex.php new file mode 100644 index 0000000..6b737ab --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision.php new file mode 100644 index 0000000..a85e457 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm.php new file mode 100644 index 0000000..43961ea --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber.php new file mode 100644 index 0000000..ee20012 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem.php new file mode 100644 index 0000000..0c7a8d4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem.php @@ -0,0 +1,58 @@ +p1 = $values['p1']; + $this->p2 = $values['p2']; + $this->p3 = $values['p3']; + $this->p4 = $values['p4']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1.php new file mode 100644 index 0000000..9d9166b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2.php new file mode 100644 index 0000000..cb73d6b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3.php new file mode 100644 index 0000000..de01d8a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4.php new file mode 100644 index 0000000..d3117d6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect.php new file mode 100644 index 0000000..0228d5e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef.php new file mode 100644 index 0000000..1e1d3e0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex.php new file mode 100644 index 0000000..43ffb12 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision.php new file mode 100644 index 0000000..0ebf591 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm.php new file mode 100644 index 0000000..c40d647 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber.php new file mode 100644 index 0000000..28afc1c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType.php new file mode 100644 index 0000000..6294195 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions $actions; + + /** + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var ?float $rotation + */ + #[JsonProperty('rotation')] + public ?float $rotation; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect $unrotatedRect + */ + #[JsonProperty('unrotatedRect')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect $unrotatedRect; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect, + * blendMode: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions, + * name?: ?string, + * rotation?: ?float, + * unrotatedRect?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->name = $values['name'] ?? null; + $this->rotation = $values['rotation'] ?? null; + $this->unrotatedRect = $values['unrotatedRect'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions.php new file mode 100644 index 0000000..2cc5d2c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate.php new file mode 100644 index 0000000..3e60c2a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot.php new file mode 100644 index 0000000..6754c83 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType.php new file mode 100644 index 0000000..706302a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot.php new file mode 100644 index 0000000..874f8a3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType.php new file mode 100644 index 0000000..98dc0a6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot.php new file mode 100644 index 0000000..0c0154d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType.php new file mode 100644 index 0000000..e5ee776 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot.php new file mode 100644 index 0000000..920852f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType.php new file mode 100644 index 0000000..a75de14 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot.php new file mode 100644 index 0000000..d49c8c9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType.php new file mode 100644 index 0000000..a20c2f8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot.php new file mode 100644 index 0000000..ce1a7d4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType.php new file mode 100644 index 0000000..8735352 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot.php new file mode 100644 index 0000000..d3aae3e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType.php new file mode 100644 index 0000000..55fbc96 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot.php new file mode 100644 index 0000000..9d9b841 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType.php new file mode 100644 index 0000000..d2c9030 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot.php new file mode 100644 index 0000000..36debb4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType.php new file mode 100644 index 0000000..bcf7c35 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot.php new file mode 100644 index 0000000..40688b1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType.php new file mode 100644 index 0000000..83f8419 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot.php new file mode 100644 index 0000000..1aa143d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType.php new file mode 100644 index 0000000..bf1548a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality.php new file mode 100644 index 0000000..bcd7162 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex.php new file mode 100644 index 0000000..51f9b67 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision.php new file mode 100644 index 0000000..d7f6162 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm.php new file mode 100644 index 0000000..fae7f90 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber.php new file mode 100644 index 0000000..bf8656c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect.php new file mode 100644 index 0000000..3068e31 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef.php new file mode 100644 index 0000000..7ad39a3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex.php new file mode 100644 index 0000000..4d44ed3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision.php new file mode 100644 index 0000000..69b0773 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm.php new file mode 100644 index 0000000..500c319 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber.php new file mode 100644 index 0000000..5b5327c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType.php new file mode 100644 index 0000000..efe69aa --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType.php @@ -0,0 +1,9 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout.php new file mode 100644 index 0000000..121e459 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout.php @@ -0,0 +1,221 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var array $quadPoints + */ + #[JsonProperty('quadPoints'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem::class])] + public array $quadPoints; + + /** + * @var ?value-of $intent + */ + #[JsonProperty('intent')] + public ?string $intent; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor, + * opacity: float, + * quadPoints: array, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions, + * intent?: ?value-of, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->quadPoints = $values['quadPoints']; + $this->intent = $values['intent'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions.php new file mode 100644 index 0000000..1b2d610 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate.php new file mode 100644 index 0000000..a4c2949 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot.php new file mode 100644 index 0000000..f70d218 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType.php new file mode 100644 index 0000000..063b1b0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot.php new file mode 100644 index 0000000..450bc42 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType.php new file mode 100644 index 0000000..d241157 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot.php new file mode 100644 index 0000000..fc40893 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType.php new file mode 100644 index 0000000..a5f6c1e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot.php new file mode 100644 index 0000000..6b0a8f0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType.php new file mode 100644 index 0000000..eba846d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot.php new file mode 100644 index 0000000..3b3701c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType.php new file mode 100644 index 0000000..21d1360 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot.php new file mode 100644 index 0000000..fc37bca --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType.php new file mode 100644 index 0000000..6ccd161 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot.php new file mode 100644 index 0000000..6c47f86 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType.php new file mode 100644 index 0000000..cca0b1c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot.php new file mode 100644 index 0000000..d5d5786 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType.php new file mode 100644 index 0000000..26ee909 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot.php new file mode 100644 index 0000000..5ee4cf7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType.php new file mode 100644 index 0000000..1833b9d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot.php new file mode 100644 index 0000000..c3da5c9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType.php new file mode 100644 index 0000000..e812987 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot.php new file mode 100644 index 0000000..9e6dbfb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType.php new file mode 100644 index 0000000..8426a3c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags.php new file mode 100644 index 0000000..500ed64 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality.php new file mode 100644 index 0000000..1a65ad6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex.php new file mode 100644 index 0000000..ef5e768 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision.php new file mode 100644 index 0000000..6e7b708 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm.php new file mode 100644 index 0000000..c111142 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber.php new file mode 100644 index 0000000..6c14191 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent.php new file mode 100644 index 0000000..9902418 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent.php @@ -0,0 +1,8 @@ +p1 = $values['p1']; + $this->p2 = $values['p2']; + $this->p3 = $values['p3']; + $this->p4 = $values['p4']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1.php new file mode 100644 index 0000000..3f07ac5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2.php new file mode 100644 index 0000000..45cf4c2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3.php new file mode 100644 index 0000000..1fd9485 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4.php new file mode 100644 index 0000000..79fd35d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect.php new file mode 100644 index 0000000..ad6507d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef.php new file mode 100644 index 0000000..b3add36 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex.php new file mode 100644 index 0000000..a58ff70 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision.php new file mode 100644 index 0000000..e4e4da9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm.php new file mode 100644 index 0000000..8e9d55f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber.php new file mode 100644 index 0000000..7cf2563 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType.php new file mode 100644 index 0000000..1ee49c6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var value-of $icon + */ + #[JsonProperty('icon')] + public string $icon; + + /** + * @var ?string $state + */ + #[JsonProperty('state')] + public ?string $state; + + /** + * @var ?string $stateModel + */ + #[JsonProperty('stateModel')] + public ?string $stateModel; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor, + * opacity: float, + * icon: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions, + * state?: ?string, + * stateModel?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->icon = $values['icon']; + $this->state = $values['state'] ?? null; + $this->stateModel = $values['stateModel'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions.php new file mode 100644 index 0000000..371070f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate.php new file mode 100644 index 0000000..5d84ab9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot.php new file mode 100644 index 0000000..cdf8507 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType.php new file mode 100644 index 0000000..85a7c31 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot.php new file mode 100644 index 0000000..6d940e4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType.php new file mode 100644 index 0000000..f691a66 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot.php new file mode 100644 index 0000000..9428a3a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType.php new file mode 100644 index 0000000..f16b4f6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot.php new file mode 100644 index 0000000..e4e0709 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType.php new file mode 100644 index 0000000..d0a7f4d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot.php new file mode 100644 index 0000000..261a10d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType.php new file mode 100644 index 0000000..c88723b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot.php new file mode 100644 index 0000000..c52ebcb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType.php new file mode 100644 index 0000000..8f3626a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot.php new file mode 100644 index 0000000..7af977d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType.php new file mode 100644 index 0000000..58ae2a7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot.php new file mode 100644 index 0000000..3f60d66 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType.php new file mode 100644 index 0000000..9f1fa6a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot.php new file mode 100644 index 0000000..a980d6d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType.php new file mode 100644 index 0000000..abf92fc --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot.php new file mode 100644 index 0000000..9cb363a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType.php new file mode 100644 index 0000000..80233ce --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot.php new file mode 100644 index 0000000..e757a12 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType.php new file mode 100644 index 0000000..306a2ce --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags.php new file mode 100644 index 0000000..b19d248 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon.php new file mode 100644 index 0000000..2c82498 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon.php @@ -0,0 +1,14 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex.php new file mode 100644 index 0000000..4e126ae --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision.php new file mode 100644 index 0000000..4df0a58 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm.php new file mode 100644 index 0000000..ccd1c03 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber.php new file mode 100644 index 0000000..745ff6b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect.php new file mode 100644 index 0000000..04b8034 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef.php new file mode 100644 index 0000000..9911706 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex.php new file mode 100644 index 0000000..5d9a6ce --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision.php new file mode 100644 index 0000000..1c8944e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm.php new file mode 100644 index 0000000..13d4601 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber.php new file mode 100644 index 0000000..97999e8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType.php new file mode 100644 index 0000000..216f70e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions $actions; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor $color + */ + #[JsonProperty('color')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor $color; + + /** + * @var float $opacity + */ + #[JsonProperty('opacity')] + public float $opacity; + + /** + * @var array $quadPoints + */ + #[JsonProperty('quadPoints'), ArrayType([DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem::class])] + public array $quadPoints; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect, + * blendMode: value-of, + * color: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor, + * opacity: float, + * quadPoints: array, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color']; + $this->opacity = $values['opacity']; + $this->quadPoints = $values['quadPoints']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions.php new file mode 100644 index 0000000..c033938 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate.php new file mode 100644 index 0000000..63b7f1b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot.php new file mode 100644 index 0000000..f6baf44 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType.php new file mode 100644 index 0000000..54d6194 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot.php new file mode 100644 index 0000000..86367a0 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType.php new file mode 100644 index 0000000..018f192 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot.php new file mode 100644 index 0000000..f905e6e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType.php new file mode 100644 index 0000000..50b403a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot.php new file mode 100644 index 0000000..a70c768 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType.php new file mode 100644 index 0000000..d6e60ef --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot.php new file mode 100644 index 0000000..0ff838f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType.php new file mode 100644 index 0000000..9a78244 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot.php new file mode 100644 index 0000000..9b987eb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType.php new file mode 100644 index 0000000..b1c6690 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot.php new file mode 100644 index 0000000..0af4f62 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType.php new file mode 100644 index 0000000..1614d57 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot.php new file mode 100644 index 0000000..884fdc6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType.php new file mode 100644 index 0000000..4d90566 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot.php new file mode 100644 index 0000000..db82807 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType.php new file mode 100644 index 0000000..2c1634d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot.php new file mode 100644 index 0000000..f6c6f40 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType.php new file mode 100644 index 0000000..e290619 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot.php new file mode 100644 index 0000000..3ee4801 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType.php new file mode 100644 index 0000000..1bca8a8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags.php new file mode 100644 index 0000000..c9c42e6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags.php @@ -0,0 +1,106 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality.php new file mode 100644 index 0000000..31a6602 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex.php new file mode 100644 index 0000000..1a9515e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision.php new file mode 100644 index 0000000..22d5c09 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm.php new file mode 100644 index 0000000..e46a45c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber.php new file mode 100644 index 0000000..9b09133 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem.php new file mode 100644 index 0000000..4e13b36 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem.php @@ -0,0 +1,58 @@ +p1 = $values['p1']; + $this->p2 = $values['p2']; + $this->p3 = $values['p3']; + $this->p4 = $values['p4']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1.php new file mode 100644 index 0000000..195e84a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2.php new file mode 100644 index 0000000..2f34284 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3.php new file mode 100644 index 0000000..3ed0859 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4.php new file mode 100644 index 0000000..8e2fe8c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4.php @@ -0,0 +1,42 @@ +x = $values['x']; + $this->y = $values['y']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect.php new file mode 100644 index 0000000..9845ff3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef.php new file mode 100644 index 0000000..f5f6532 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex.php new file mode 100644 index 0000000..2e37db3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision.php new file mode 100644 index 0000000..3fae19a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm.php new file mode 100644 index 0000000..255a8c5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber.php new file mode 100644 index 0000000..0e20350 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType.php new file mode 100644 index 0000000..cdef5be --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions $actions; + + /** + * @var int $rawSubtypeCode + */ + #[JsonProperty('rawSubtypeCode')] + public int $rawSubtypeCode; + + /** + * @var ?string $rawSubtypeName + */ + #[JsonProperty('rawSubtypeName')] + public ?string $rawSubtypeName; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect, + * blendMode: value-of, + * rawSubtypeCode: int, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions, + * rawSubtypeName?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->rawSubtypeCode = $values['rawSubtypeCode']; + $this->rawSubtypeName = $values['rawSubtypeName'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions.php new file mode 100644 index 0000000..e95725a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate.php new file mode 100644 index 0000000..e843561 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot.php new file mode 100644 index 0000000..59e06e2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType.php new file mode 100644 index 0000000..b497c9a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot.php new file mode 100644 index 0000000..56c2ee9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType.php new file mode 100644 index 0000000..b82cd01 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot.php new file mode 100644 index 0000000..326e293 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType.php new file mode 100644 index 0000000..065fe2e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot.php new file mode 100644 index 0000000..e6062a5 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType.php new file mode 100644 index 0000000..e94eaf2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot.php new file mode 100644 index 0000000..fb11c0c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType.php new file mode 100644 index 0000000..694f3ba --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot.php new file mode 100644 index 0000000..2f2d353 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType.php new file mode 100644 index 0000000..486e004 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot.php new file mode 100644 index 0000000..e45ccd2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType.php new file mode 100644 index 0000000..dbb2b7b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot.php new file mode 100644 index 0000000..9fc489d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType.php new file mode 100644 index 0000000..d94b21a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot.php new file mode 100644 index 0000000..397c725 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType.php new file mode 100644 index 0000000..d8de62d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot.php new file mode 100644 index 0000000..0e932b2 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType.php new file mode 100644 index 0000000..489880d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot.php new file mode 100644 index 0000000..3481570 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType.php new file mode 100644 index 0000000..621db25 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality.php new file mode 100644 index 0000000..2e1f060 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality.php @@ -0,0 +1,9 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex.php new file mode 100644 index 0000000..2b64f5a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision.php new file mode 100644 index 0000000..6b6f972 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm.php new file mode 100644 index 0000000..c22c5eb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber.php new file mode 100644 index 0000000..f33b97d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect.php new file mode 100644 index 0000000..3cc5912 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef.php new file mode 100644 index 0000000..c144914 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex.php new file mode 100644 index 0000000..5affbe4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision.php new file mode 100644 index 0000000..01cb22f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm.php new file mode 100644 index 0000000..140d2ef --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber.php new file mode 100644 index 0000000..00c0e2f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType.php new file mode 100644 index 0000000..6758313 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType.php @@ -0,0 +1,9 @@ + $identityQuality + */ + #[JsonProperty('identityQuality')] + public string $identityQuality; + + /** + * @var ?string $nm + */ + #[JsonProperty('nm')] + public ?string $nm; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags $flags + */ + #[JsonProperty('flags')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags $flags; + + /** + * @var DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect $rect + */ + #[JsonProperty('rect')] + public DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect $rect; + + /** + * @var ?string $contents + */ + #[JsonProperty('contents')] + public ?string $contents; + + /** + * @var ?string $subject + */ + #[JsonProperty('subject')] + public ?string $subject; + + /** + * @var ?string $author + */ + #[JsonProperty('author')] + public ?string $author; + + /** + * @var ?DateTime $created + */ + #[JsonProperty('created'), Date(Date::TYPE_DATETIME)] + public ?DateTime $created; + + /** + * @var ?DateTime $modified + */ + #[JsonProperty('modified'), Date(Date::TYPE_DATETIME)] + public ?DateTime $modified; + + /** + * @var value-of $blendMode + */ + #[JsonProperty('blendMode')] + public string $blendMode; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo $inReplyTo + */ + #[JsonProperty('inReplyTo')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo $inReplyTo; + + /** + * @var ?value-of $replyType + */ + #[JsonProperty('replyType')] + public ?string $replyType; + + /** + * @var ?string $userId + */ + #[JsonProperty('userId')] + public ?string $userId; + + /** + * @var ?string $groupId + */ + #[JsonProperty('groupId')] + public ?string $groupId; + + /** + * @var ?string $createdBy + */ + #[JsonProperty('createdBy')] + public ?string $createdBy; + + /** + * @var ?string $updatedBy + */ + #[JsonProperty('updatedBy')] + public ?string $updatedBy; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions $actions + */ + #[JsonProperty('actions')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions $actions; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor $color + */ + #[JsonProperty('color')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor $color; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor $interiorColor + */ + #[JsonProperty('interiorColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor $interiorColor; + + /** + * @var float $strokeWidth + */ + #[JsonProperty('strokeWidth')] + public float $strokeWidth; + + /** + * @var value-of $borderStyle + */ + #[JsonProperty('borderStyle')] + public string $borderStyle; + + /** + * @var ?value-of $fontFamily + */ + #[JsonProperty('fontFamily')] + public ?string $fontFamily; + + /** + * @var ?float $fontSize + */ + #[JsonProperty('fontSize')] + public ?float $fontSize; + + /** + * @var ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor $fontColor + */ + #[JsonProperty('fontColor')] + public ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor $fontColor; + + /** + * @var value-of $textAlign + */ + #[JsonProperty('textAlign')] + public string $textAlign; + + /** + * @var int $fieldObjectNumber + */ + #[JsonProperty('fieldObjectNumber')] + public int $fieldObjectNumber; + + /** + * @var value-of $fieldFamily + */ + #[JsonProperty('fieldFamily')] + public string $fieldFamily; + + /** + * @param array{ + * ref: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef, + * pageObjectNumber: int, + * index: int, + * identityQuality: value-of, + * flags: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags, + * rect: DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect, + * blendMode: value-of, + * strokeWidth: float, + * borderStyle: value-of, + * textAlign: value-of, + * fieldObjectNumber: int, + * fieldFamily: value-of, + * nm?: ?string, + * contents?: ?string, + * subject?: ?string, + * author?: ?string, + * created?: ?DateTime, + * modified?: ?DateTime, + * inReplyTo?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo, + * replyType?: ?value-of, + * userId?: ?string, + * groupId?: ?string, + * createdBy?: ?string, + * updatedBy?: ?string, + * actions?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions, + * color?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor, + * interiorColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor, + * fontFamily?: ?value-of, + * fontSize?: ?float, + * fontColor?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor, + * } $values + */ + public function __construct( + array $values, + ) { + $this->ref = $values['ref']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->identityQuality = $values['identityQuality']; + $this->nm = $values['nm'] ?? null; + $this->flags = $values['flags']; + $this->rect = $values['rect']; + $this->contents = $values['contents'] ?? null; + $this->subject = $values['subject'] ?? null; + $this->author = $values['author'] ?? null; + $this->created = $values['created'] ?? null; + $this->modified = $values['modified'] ?? null; + $this->blendMode = $values['blendMode']; + $this->inReplyTo = $values['inReplyTo'] ?? null; + $this->replyType = $values['replyType'] ?? null; + $this->userId = $values['userId'] ?? null; + $this->groupId = $values['groupId'] ?? null; + $this->createdBy = $values['createdBy'] ?? null; + $this->updatedBy = $values['updatedBy'] ?? null; + $this->actions = $values['actions'] ?? null; + $this->color = $values['color'] ?? null; + $this->interiorColor = $values['interiorColor'] ?? null; + $this->strokeWidth = $values['strokeWidth']; + $this->borderStyle = $values['borderStyle']; + $this->fontFamily = $values['fontFamily'] ?? null; + $this->fontSize = $values['fontSize'] ?? null; + $this->fontColor = $values['fontColor'] ?? null; + $this->textAlign = $values['textAlign']; + $this->fieldObjectNumber = $values['fieldObjectNumber']; + $this->fieldFamily = $values['fieldFamily']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions.php new file mode 100644 index 0000000..8fc82e8 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions.php @@ -0,0 +1,114 @@ +activate = $values['activate'] ?? null; + $this->cursorEnter = $values['cursorEnter'] ?? null; + $this->cursorExit = $values['cursorExit'] ?? null; + $this->mouseDown = $values['mouseDown'] ?? null; + $this->mouseUp = $values['mouseUp'] ?? null; + $this->focus = $values['focus'] ?? null; + $this->blur = $values['blur'] ?? null; + $this->pageOpen = $values['pageOpen'] ?? null; + $this->pageClose = $values['pageClose'] ?? null; + $this->pageVisible = $values['pageVisible'] ?? null; + $this->pageInvisible = $values['pageInvisible'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate.php new file mode 100644 index 0000000..a0d6fb9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate.php @@ -0,0 +1,59 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot.php new file mode 100644 index 0000000..e7da4e7 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType.php new file mode 100644 index 0000000..1c20ad4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot.php new file mode 100644 index 0000000..d5896ed --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType.php new file mode 100644 index 0000000..a70855e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot.php new file mode 100644 index 0000000..cb12c82 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType.php new file mode 100644 index 0000000..a23dd73 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot.php new file mode 100644 index 0000000..bfe4c11 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType.php new file mode 100644 index 0000000..0dd802a --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot.php new file mode 100644 index 0000000..f16863e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType.php new file mode 100644 index 0000000..db4316b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot.php new file mode 100644 index 0000000..cf27352 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType.php new file mode 100644 index 0000000..cbb6329 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot.php new file mode 100644 index 0000000..19bd1f3 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType.php new file mode 100644 index 0000000..d444417 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot.php new file mode 100644 index 0000000..b45b3f4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType.php new file mode 100644 index 0000000..57261d6 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot.php new file mode 100644 index 0000000..40d2048 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType.php new file mode 100644 index 0000000..caec624 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot.php new file mode 100644 index 0000000..856f569 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType.php new file mode 100644 index 0000000..3859468 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType.php @@ -0,0 +1,26 @@ +> $warnings + */ + #[JsonProperty('warnings'), ArrayType(['string'])] + public array $warnings; + + /** + * @param array{ + * incomplete: bool, + * warningFlags: int, + * warnings: array>, + * root?: ?DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot, + * } $values + */ + public function __construct( + array $values, + ) { + $this->root = $values['root'] ?? null; + $this->incomplete = $values['incomplete']; + $this->warningFlags = $values['warningFlags']; + $this->warnings = $values['warnings']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot.php new file mode 100644 index 0000000..f224357 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot.php @@ -0,0 +1,59 @@ + $type + */ + #[JsonProperty('type')] + public string $type; + + /** + * @var string $subtype + */ + #[JsonProperty('subtype')] + public string $subtype; + + /** + * @var ?string $script + */ + #[JsonProperty('script')] + public ?string $script; + + /** + * @var array $next + */ + #[JsonProperty('next'), ArrayType(['mixed'])] + public array $next; + + /** + * @param array{ + * type: value-of, + * subtype: string, + * next: array, + * script?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->type = $values['type']; + $this->subtype = $values['subtype']; + $this->script = $values['script'] ?? null; + $this->next = $values['next']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType.php new file mode 100644 index 0000000..6ae5d5f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType.php @@ -0,0 +1,26 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily.php new file mode 100644 index 0000000..4535c9c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily.php @@ -0,0 +1,15 @@ +invisible = $values['invisible']; + $this->hidden = $values['hidden']; + $this->print = $values['print']; + $this->noZoom = $values['noZoom']; + $this->noRotate = $values['noRotate']; + $this->noView = $values['noView']; + $this->readOnly = $values['readOnly']; + $this->locked = $values['locked']; + $this->toggleNoView = $values['toggleNoView']; + $this->lockedContents = $values['lockedContents']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor.php new file mode 100644 index 0000000..7e03f8b --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily.php new file mode 100644 index 0000000..5d7c6fb --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily.php @@ -0,0 +1,21 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex.php new file mode 100644 index 0000000..ac7e94f --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision.php new file mode 100644 index 0000000..d9986d4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm.php new file mode 100644 index 0000000..f067e7d --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber.php new file mode 100644 index 0000000..12f45fe --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor.php new file mode 100644 index 0000000..f5e2e01 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor.php @@ -0,0 +1,50 @@ +r = $values['r']; + $this->g = $values['g']; + $this->b = $values['b']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect.php new file mode 100644 index 0000000..eaebb8e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect.php @@ -0,0 +1,58 @@ +left = $values['left']; + $this->bottom = $values['bottom']; + $this->right = $values['right']; + $this->top = $values['top']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef.php new file mode 100644 index 0000000..06b5394 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef.php @@ -0,0 +1,241 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber $objectNumber + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + */ + public static function objectNumber(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber $objectNumber): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef([ + 'kind' => 'objectNumber', + 'value' => $objectNumber, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm $nm + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + */ + public static function nm(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm $nm): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef([ + 'kind' => 'nm', + 'value' => $nm, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex $index + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + */ + public static function index(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex $index): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + { + return new DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef([ + 'kind' => 'index', + 'value' => $index, + ]); + } + + /** + * @return bool + */ + public function isObjectNumber(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber && $this->kind === 'objectNumber'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + */ + public function asObjectNumber(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber && $this->kind === 'objectNumber')) { + throw new Exception( + "Expected objectNumber; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isNm(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm && $this->kind === 'nm'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + */ + public function asNm(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm && $this->kind === 'nm')) { + throw new Exception( + "Expected nm; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isIndex(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex && $this->kind === 'index'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + */ + public function asIndex(): DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex && $this->kind === 'index')) { + throw new Exception( + "Expected index; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'objectNumber': + $value = $this->asObjectNumber()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'nm': + $value = $this->asNm()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'index': + $value = $this->asIndex()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'objectNumber': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber::jsonDeserialize($data); + break; + case 'nm': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm::jsonDeserialize($data); + break; + case 'index': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex.php new file mode 100644 index 0000000..aa66c00 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex.php @@ -0,0 +1,50 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->index = $values['index']; + $this->revision = $values['revision']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision.php new file mode 100644 index 0000000..855b93c --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm.php new file mode 100644 index 0000000..db95f3e --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->nm = $values['nm']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber.php new file mode 100644 index 0000000..91da2b9 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber.php @@ -0,0 +1,42 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->annotObjectNumber = $values['annotObjectNumber']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType.php new file mode 100644 index 0000000..182b8a1 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType.php @@ -0,0 +1,9 @@ +pageObjectNumber = $values['pageObjectNumber']; + $this->revision = $values['revision']; + $this->weakAnnotationState = $values['weakAnnotationState']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateRevision.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateRevision.php new file mode 100644 index 0000000..7f24396 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateRevision.php @@ -0,0 +1,50 @@ +docSessionId = $values['docSessionId']; + $this->pageObjectNumber = $values['pageObjectNumber']; + $this->generation = $values['generation']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState.php new file mode 100644 index 0000000..fda6b81 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState.php @@ -0,0 +1,196 @@ +kind = $values['kind']; + $this->value = $values['value']; + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown $unknown + * @return DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + */ + public static function unknown(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown $unknown): DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + { + return new DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState([ + 'kind' => 'unknown', + 'value' => $unknown, + ]); + } + + /** + * @param DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown $known + * @return DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + */ + public static function known(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown $known): DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + { + return new DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState([ + 'kind' => 'known', + 'value' => $known, + ]); + } + + /** + * @return bool + */ + public function isUnknown(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown && $this->kind === 'unknown'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + */ + public function asUnknown(): DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown && $this->kind === 'unknown')) { + throw new Exception( + "Expected unknown; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return bool + */ + public function isKnown(): bool + { + return $this->value instanceof DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown && $this->kind === 'known'; + } + + /** + * @return DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + */ + public function asKnown(): DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + { + if (!($this->value instanceof DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown && $this->kind === 'known')) { + throw new Exception( + "Expected known; got " . $this->kind . " with value of type " . get_debug_type($this->value), + ); + } + + return $this->value; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } + + /** + * @return array + */ + public function jsonSerialize(): array + { + $result = []; + $result['kind'] = $this->kind; + + $base = parent::jsonSerialize(); + $result = array_merge($base, $result); + + switch ($this->kind) { + case 'unknown': + $value = $this->asUnknown()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case 'known': + $value = $this->asKnown()->jsonSerialize(); + $result = array_merge($value, $result); + break; + case '_unknown': + default: + if (is_null($this->value)) { + break; + } + if ($this->value instanceof JsonSerializableType) { + $value = $this->value->jsonSerialize(); + $result = array_merge($value, $result); + } elseif (is_array($this->value)) { + $result = array_merge($this->value, $result); + } + } + + return $result; + } + + /** + * @param array $data + */ + public static function jsonDeserialize(array $data): static + { + $args = []; + if (!array_key_exists('kind', $data)) { + throw new Exception( + "JSON data is missing property 'kind'", + ); + } + $kind = $data['kind']; + if (!(is_string($kind))) { + throw new Exception( + "Expected property 'kind' in JSON data to be string, instead received " . get_debug_type($data['kind']), + ); + } + + $args['kind'] = $kind; + switch ($kind) { + case 'unknown': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown::jsonDeserialize($data); + break; + case 'known': + $args['value'] = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown::jsonDeserialize($data); + break; + case '_unknown': + default: + $args['kind'] = '_unknown'; + $args['value'] = $data; + } + + // @phpstan-ignore-next-line + return new static($args); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown.php new file mode 100644 index 0000000..95f79df --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown.php @@ -0,0 +1,34 @@ +hasAnyWeakAnnotations = $values['hasAnyWeakAnnotations']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown.php b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown.php new file mode 100644 index 0000000..4125350 --- /dev/null +++ b/src/Types/DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown.php @@ -0,0 +1,26 @@ +toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll404Response.php b/src/Types/DocAnnotationsListAll404Response.php new file mode 100644 index 0000000..50f7ab4 --- /dev/null +++ b/src/Types/DocAnnotationsListAll404Response.php @@ -0,0 +1,59 @@ + $name + */ + #[JsonProperty('name')] + public string $name; + + /** + * @var value-of $code + */ + #[JsonProperty('code')] + public string $code; + + /** + * @var string $message + */ + #[JsonProperty('message')] + public string $message; + + /** + * @var ?array $details + */ + #[JsonProperty('details'), ArrayType(['string' => 'mixed'])] + public ?array $details; + + /** + * @param array{ + * name: value-of, + * code: value-of, + * message: string, + * details?: ?array, + * } $values + */ + public function __construct( + array $values, + ) { + $this->name = $values['name']; + $this->code = $values['code']; + $this->message = $values['message']; + $this->details = $values['details'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll404ResponseCode.php b/src/Types/DocAnnotationsListAll404ResponseCode.php new file mode 100644 index 0000000..8f69890 --- /dev/null +++ b/src/Types/DocAnnotationsListAll404ResponseCode.php @@ -0,0 +1,26 @@ + $name + */ + #[JsonProperty('name')] + public string $name; + + /** + * @var value-of $code + */ + #[JsonProperty('code')] + public string $code; + + /** + * @var string $message + */ + #[JsonProperty('message')] + public string $message; + + /** + * @var ?array $details + */ + #[JsonProperty('details'), ArrayType(['string' => 'mixed'])] + public ?array $details; + + /** + * @param array{ + * name: value-of, + * code: value-of, + * message: string, + * details?: ?array, + * } $values + */ + public function __construct( + array $values, + ) { + $this->name = $values['name']; + $this->code = $values['code']; + $this->message = $values['message']; + $this->details = $values['details'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/DocAnnotationsListAll409ResponseCode.php b/src/Types/DocAnnotationsListAll409ResponseCode.php new file mode 100644 index 0000000..7b33650 --- /dev/null +++ b/src/Types/DocAnnotationsListAll409ResponseCode.php @@ -0,0 +1,26 @@ + $pages */ @@ -31,6 +37,7 @@ class DocAnnotationsUpdate200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocFormsImportData200ResponseMetaCacheDelta.php b/src/Types/DocFormsImportData200ResponseMetaCacheDelta.php index 87ac435..0844d50 100644 --- a/src/Types/DocFormsImportData200ResponseMetaCacheDelta.php +++ b/src/Types/DocFormsImportData200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocFormsImportData200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocFormsImportData200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocFormsReset200ResponseMetaCacheDelta.php b/src/Types/DocFormsReset200ResponseMetaCacheDelta.php index e3b0ef4..30eed89 100644 --- a/src/Types/DocFormsReset200ResponseMetaCacheDelta.php +++ b/src/Types/DocFormsReset200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocFormsReset200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocFormsReset200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocFormsSetValue200ResponseMetaCacheDelta.php b/src/Types/DocFormsSetValue200ResponseMetaCacheDelta.php index 97a4ff8..b78b001 100644 --- a/src/Types/DocFormsSetValue200ResponseMetaCacheDelta.php +++ b/src/Types/DocFormsSetValue200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocFormsSetValue200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocFormsSetValue200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocManifest200Response.php b/src/Types/DocManifest200Response.php index e647251..c75f0e6 100644 --- a/src/Types/DocManifest200Response.php +++ b/src/Types/DocManifest200Response.php @@ -38,6 +38,12 @@ class DocManifest200Response extends JsonSerializableType #[JsonProperty('attachmentsVersion')] public ?int $attachmentsVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var int $auditHead */ @@ -72,6 +78,7 @@ class DocManifest200Response extends JsonSerializableType * pages: array, * actionsVersion?: ?int, * attachmentsVersion?: ?int, + * annotationsVersion?: ?int, * scopes?: ?DocManifest200ResponseScopes, * } $values */ @@ -83,6 +90,7 @@ public function __construct( $this->metadataVersion = $values['metadataVersion']; $this->actionsVersion = $values['actionsVersion'] ?? null; $this->attachmentsVersion = $values['attachmentsVersion'] ?? null; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->auditHead = $values['auditHead']; $this->baseSha = $values['baseSha']; $this->scopes = $values['scopes'] ?? null; diff --git a/src/Types/DocPagesDelete200ResponseMetaCacheDelta.php b/src/Types/DocPagesDelete200ResponseMetaCacheDelta.php index 7242adb..e7327b7 100644 --- a/src/Types/DocPagesDelete200ResponseMetaCacheDelta.php +++ b/src/Types/DocPagesDelete200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocPagesDelete200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocPagesDelete200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocPagesFlatten200ResponseMetaCacheDelta.php b/src/Types/DocPagesFlatten200ResponseMetaCacheDelta.php index 5c561de..004c75c 100644 --- a/src/Types/DocPagesFlatten200ResponseMetaCacheDelta.php +++ b/src/Types/DocPagesFlatten200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocPagesFlatten200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocPagesFlatten200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocPagesInsert200ResponseMetaCacheDelta.php b/src/Types/DocPagesInsert200ResponseMetaCacheDelta.php index 400466f..d9233a3 100644 --- a/src/Types/DocPagesInsert200ResponseMetaCacheDelta.php +++ b/src/Types/DocPagesInsert200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocPagesInsert200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocPagesInsert200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocPagesInsertBlank200ResponseMetaCacheDelta.php b/src/Types/DocPagesInsertBlank200ResponseMetaCacheDelta.php index 6cd0a50..179f863 100644 --- a/src/Types/DocPagesInsertBlank200ResponseMetaCacheDelta.php +++ b/src/Types/DocPagesInsertBlank200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocPagesInsertBlank200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocPagesInsertBlank200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocPagesMove200ResponseMetaCacheDelta.php b/src/Types/DocPagesMove200ResponseMetaCacheDelta.php index 3169221..ee47bb4 100644 --- a/src/Types/DocPagesMove200ResponseMetaCacheDelta.php +++ b/src/Types/DocPagesMove200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocPagesMove200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocPagesMove200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocPagesRotate200ResponseMetaCacheDelta.php b/src/Types/DocPagesRotate200ResponseMetaCacheDelta.php index c07ea47..1df186f 100644 --- a/src/Types/DocPagesRotate200ResponseMetaCacheDelta.php +++ b/src/Types/DocPagesRotate200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocPagesRotate200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocPagesRotate200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; } diff --git a/src/Types/DocRedactionsApply200ResponseMetaCacheDelta.php b/src/Types/DocRedactionsApply200ResponseMetaCacheDelta.php index 2774a2e..fb488b6 100644 --- a/src/Types/DocRedactionsApply200ResponseMetaCacheDelta.php +++ b/src/Types/DocRedactionsApply200ResponseMetaCacheDelta.php @@ -20,6 +20,12 @@ class DocRedactionsApply200ResponseMetaCacheDelta extends JsonSerializableType #[JsonProperty('docVersion')] public int $docVersion; + /** + * @var ?int $annotationsVersion + */ + #[JsonProperty('annotationsVersion')] + public ?int $annotationsVersion; + /** * @var array $pages */ @@ -31,6 +37,7 @@ class DocRedactionsApply200ResponseMetaCacheDelta extends JsonSerializableType * previousDocVersion: int, * docVersion: int, * pages: array, + * annotationsVersion?: ?int, * } $values */ public function __construct( @@ -38,6 +45,7 @@ public function __construct( ) { $this->previousDocVersion = $values['previousDocVersion']; $this->docVersion = $values['docVersion']; + $this->annotationsVersion = $values['annotationsVersion'] ?? null; $this->pages = $values['pages']; }