diff --git a/.fern/metadata.json b/.fern/metadata.json index c8ed3979..1a94ba9f 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -11,10 +11,10 @@ "homepage": "https://www.cloudpdf.com" } }, - "originGitCommit": "3283147ded32fc15c426768f75557a4d95943d84", + "originGitCommit": "ce65e1390549db1272ac3720a5ddfcea55be2c07", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0-alpha.21", + "requestedVersion": "3.0.0-alpha.22", "ciProvider": "github", - "sdkVersion": "3.0.0-alpha.21" + "sdkVersion": "3.0.0-alpha.22" } \ No newline at end of file diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index 66188d98..58a91e24 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "php", - "canonicalVersion": "3.0.0-next.21", - "sdkVersion": "3.0.0-alpha.21", + "canonicalVersion": "3.0.0-next.22", + "sdkVersion": "3.0.0-alpha.22", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "f85648401f5c683a32e2b50acc3d753df9f4ce06df8492e5d2b599beceb0e788", - "gitCommit": "3283147ded32fc15c426768f75557a4d95943d84", + "openapiSha256": "1f5aa976eec4d5fc4e2b22efe725df58a01389896733ec1870f96a6441b62859", + "gitCommit": "ce65e1390549db1272ac3720a5ddfcea55be2c07", "gitCommitIsDirty": false }, "fern": { diff --git a/reference.md b/reference.md index 06886c26..007ebe47 100644 --- a/reference.md +++ b/reference.md @@ -21,6 +21,45 @@ $client->deployment->licenseStatus(); + + + + +
$client->deployment->modules() -> ?DeploymentModulesResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their `features` (`tenants.get`); what it costs, if anything, is the operator's. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```php +$client->deployment->modules(); +``` +
+
+
+
+ +
@@ -1608,6 +1647,22 @@ $client->tenants->usage( **$period:** `?string` + + + +
+
+ +**$from:** `?string` + +
+
+ +
+
+ +**$to:** `?string` +
diff --git a/src/CloudPDFClient.php b/src/CloudPDFClient.php index 2a73da10..036fe865 100644 --- a/src/CloudPDFClient.php +++ b/src/CloudPDFClient.php @@ -82,8 +82,8 @@ public function __construct( $defaultHeaders = [ 'X-Fern-Language' => 'PHP', 'X-Fern-SDK-Name' => 'CloudPDF', - 'X-Fern-SDK-Version' => '3.0.0-alpha.21', - 'User-Agent' => 'cloudpdf/sdk/3.0.0-alpha.21', + 'X-Fern-SDK-Version' => '3.0.0-alpha.22', + 'User-Agent' => 'cloudpdf/sdk/3.0.0-alpha.22', ]; if ($token != null) { $defaultHeaders['Authorization'] = "Bearer $token"; diff --git a/src/Deployment/DeploymentClient.php b/src/Deployment/DeploymentClient.php index 0c83f6af..1eb13168 100644 --- a/src/Deployment/DeploymentClient.php +++ b/src/Deployment/DeploymentClient.php @@ -12,6 +12,7 @@ use CloudPDF\Core\Client\HttpMethod; use JsonException; use Psr\Http\Client\ClientExceptionInterface; +use CloudPDF\Types\DeploymentModulesResponse; class DeploymentClient { @@ -98,4 +99,56 @@ public function licenseStatus(?array $options = null): ?DeploymentLicenseStatusR body: $response->getBody()->getContents(), ); } + + /** + * What each module declares, for a dashboard or a script that lists modules, offers their permissions in its dialogs and shows their meters. Which tenants may use one is in their `features` (`tenants.get`); what it costs, if anything, is the operator's. + * + * Example: + * ```php + * $client->deployment->modules(); + * ``` + * + * @param ?array{ + * baseUrl?: string, + * maxRetries?: int, + * timeout?: float, + * headers?: array, + * queryParameters?: array, + * bodyProperties?: array, + * } $options + * @return ?DeploymentModulesResponse + * @throws CloudPDFException + * @throws CloudPDFApiException + */ + public function modules(?array $options = null): ?DeploymentModulesResponse + { + $options = array_merge($this->options, $options ?? []); + try { + $response = $this->client->sendRequest( + new JsonApiRequest( + baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Saas->value, + path: "v1/deployment/modules", + method: HttpMethod::GET, + ), + $options, + ); + $statusCode = $response->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 400) { + $json = $response->getBody()->getContents(); + if (empty($json)) { + return null; + } + return DeploymentModulesResponse::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(), + ); + } } diff --git a/src/Tenants/Requests/UsageTenantsRequest.php b/src/Tenants/Requests/UsageTenantsRequest.php index e8094a04..cbe0caa8 100644 --- a/src/Tenants/Requests/UsageTenantsRequest.php +++ b/src/Tenants/Requests/UsageTenantsRequest.php @@ -11,14 +11,28 @@ class UsageTenantsRequest extends JsonSerializableType */ public ?string $period; + /** + * @var ?string $from + */ + public ?string $from; + + /** + * @var ?string $to + */ + public ?string $to; + /** * @param array{ * period?: ?string, + * from?: ?string, + * to?: ?string, * } $values */ public function __construct( array $values = [], ) { $this->period = $values['period'] ?? null; + $this->from = $values['from'] ?? null; + $this->to = $values['to'] ?? null; } } diff --git a/src/Tenants/TenantsClient.php b/src/Tenants/TenantsClient.php index 29629714..c38343a4 100644 --- a/src/Tenants/TenantsClient.php +++ b/src/Tenants/TenantsClient.php @@ -469,6 +469,12 @@ public function usage(string $tenantId, UsageTenantsRequest $request = new Usage if ($request->period != null) { $query['period'] = $request->period; } + if ($request->from != null) { + $query['from'] = $request->from; + } + if ($request->to != null) { + $query['to'] = $request->to; + } try { $response = $this->client->sendRequest( new JsonApiRequest( diff --git a/src/Types/AnnotationCaret.php b/src/Types/AnnotationCaret.php index a7c734d6..f7137bc4 100644 --- a/src/Types/AnnotationCaret.php +++ b/src/Types/AnnotationCaret.php @@ -196,6 +196,12 @@ class AnnotationCaret extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -262,6 +268,7 @@ class AnnotationCaret extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * rotation?: ?float, * intent?: ?value-of, * } $values @@ -300,6 +307,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->box = $values['box']; diff --git a/src/Types/AnnotationCircle.php b/src/Types/AnnotationCircle.php index d0645085..e81397aa 100644 --- a/src/Types/AnnotationCircle.php +++ b/src/Types/AnnotationCircle.php @@ -197,10 +197,16 @@ class AnnotationCircle extends JsonSerializableType public ?PdfAnnotationActions $actions; /** - * @var string $color + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + + /** + * @var ?string $color */ #[JsonProperty('color')] - public string $color; + public ?string $color; /** * @var float $opacity @@ -267,7 +273,6 @@ class AnnotationCircle extends JsonSerializableType * locked: bool, * toggleNoView: bool, * lockedContents: bool, - * color: string, * opacity: float, * strokeWidth: float, * borderStyle: value-of, @@ -288,6 +293,8 @@ class AnnotationCircle extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, + * color?: ?string, * dashArray?: ?array, * interiorColor?: ?string, * rotation?: ?float, @@ -328,7 +335,8 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; - $this->color = $values['color']; + $this->richText = $values['richText'] ?? null; + $this->color = $values['color'] ?? null; $this->opacity = $values['opacity']; $this->strokeWidth = $values['strokeWidth']; $this->borderStyle = $values['borderStyle']; diff --git a/src/Types/AnnotationDraftCaret.php b/src/Types/AnnotationDraftCaret.php index f0692e2f..f538f998 100644 --- a/src/Types/AnnotationDraftCaret.php +++ b/src/Types/AnnotationDraftCaret.php @@ -193,6 +193,12 @@ class AnnotationDraftCaret extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -256,6 +262,7 @@ class AnnotationDraftCaret extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * box?: ?AnnotationDraftCaretBox, @@ -297,6 +304,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->box = $values['box'] ?? null; diff --git a/src/Types/AnnotationDraftCircle.php b/src/Types/AnnotationDraftCircle.php index f031bf0e..78a2494c 100644 --- a/src/Types/AnnotationDraftCircle.php +++ b/src/Types/AnnotationDraftCircle.php @@ -194,6 +194,12 @@ class AnnotationDraftCircle extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -281,6 +287,7 @@ class AnnotationDraftCircle extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -326,6 +333,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationDraftFileAttachment.php b/src/Types/AnnotationDraftFileAttachment.php index 0bec198e..3b25aa12 100644 --- a/src/Types/AnnotationDraftFileAttachment.php +++ b/src/Types/AnnotationDraftFileAttachment.php @@ -193,6 +193,12 @@ class AnnotationDraftFileAttachment extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -250,6 +256,7 @@ class AnnotationDraftFileAttachment extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * icon?: ?value-of, @@ -290,6 +297,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->icon = $values['icon'] ?? null; diff --git a/src/Types/AnnotationDraftFreeText.php b/src/Types/AnnotationDraftFreeText.php index 91896481..e07e3653 100644 --- a/src/Types/AnnotationDraftFreeText.php +++ b/src/Types/AnnotationDraftFreeText.php @@ -194,6 +194,12 @@ class AnnotationDraftFreeText extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?AnnotationDraftFreeTextBox $box */ @@ -236,12 +242,6 @@ class AnnotationDraftFreeText extends JsonSerializableType #[JsonProperty('verticalAlign')] public ?string $verticalAlign; - /** - * @var ?AnnotationDraftFreeTextRichText $richText - */ - #[JsonProperty('richText')] - public ?AnnotationDraftFreeTextRichText $richText; - /** * @var ?string $color */ @@ -335,6 +335,7 @@ class AnnotationDraftFreeText extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * box?: ?AnnotationDraftFreeTextBox, * rotation?: ?float, * intent?: ?value-of, @@ -342,7 +343,6 @@ class AnnotationDraftFreeText extends JsonSerializableType * fontSize?: ?float, * textAlign?: ?value-of, * verticalAlign?: ?value-of, - * richText?: ?AnnotationDraftFreeTextRichText, * color?: ?string, * fontColor?: ?string, * interiorColor?: ?string, @@ -389,6 +389,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->box = $values['box'] ?? null; $this->rotation = $values['rotation'] ?? null; $this->intent = $values['intent'] ?? null; @@ -396,7 +397,6 @@ public function __construct( $this->fontSize = $values['fontSize'] ?? null; $this->textAlign = $values['textAlign'] ?? null; $this->verticalAlign = $values['verticalAlign'] ?? null; - $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->fontColor = $values['fontColor'] ?? null; $this->interiorColor = $values['interiorColor'] ?? null; diff --git a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItem.php b/src/Types/AnnotationDraftFreeTextRichTextParagraphsItem.php deleted file mode 100644 index d0524849..00000000 --- a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItem.php +++ /dev/null @@ -1,83 +0,0 @@ - $align - */ - #[JsonProperty('align')] - public ?string $align; - - /** - * @var ?value-of $dir - */ - #[JsonProperty('dir')] - public ?string $dir; - - /** - * @var ?float $lineHeight - */ - #[JsonProperty('lineHeight')] - public ?float $lineHeight; - - /** - * @var ?AnnotationDraftFreeTextRichTextParagraphsItemMargins $margins - */ - #[JsonProperty('margins')] - public ?AnnotationDraftFreeTextRichTextParagraphsItemMargins $margins; - - /** - * @var ?float $textIndent - */ - #[JsonProperty('textIndent')] - public ?float $textIndent; - - /** - * @var ?string $unknown - */ - #[JsonProperty('unknown')] - public ?string $unknown; - - /** - * @var array $runs - */ - #[JsonProperty('runs'), ArrayType([AnnotationDraftFreeTextRichTextParagraphsItemRunsItem::class])] - public array $runs; - - /** - * @param array{ - * runs: array, - * align?: ?value-of, - * dir?: ?value-of, - * lineHeight?: ?float, - * margins?: ?AnnotationDraftFreeTextRichTextParagraphsItemMargins, - * textIndent?: ?float, - * unknown?: ?string, - * } $values - */ - public function __construct( - array $values, - ) { - $this->align = $values['align'] ?? null; - $this->dir = $values['dir'] ?? null; - $this->lineHeight = $values['lineHeight'] ?? null; - $this->margins = $values['margins'] ?? null; - $this->textIndent = $values['textIndent'] ?? null; - $this->unknown = $values['unknown'] ?? null; - $this->runs = $values['runs']; - } - - /** - * @return string - */ - public function __toString(): string - { - return $this->toJson(); - } -} diff --git a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemAlign.php b/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemAlign.php deleted file mode 100644 index fb9265b8..00000000 --- a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemAlign.php +++ /dev/null @@ -1,11 +0,0 @@ -top = $values['top']; - $this->bottom = $values['bottom']; - $this->left = $values['left']; - $this->right = $values['right']; - } - - /** - * @return string - */ - public function __toString(): string - { - return $this->toJson(); - } -} diff --git a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItem.php b/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItem.php deleted file mode 100644 index 47c16d68..00000000 --- a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItem.php +++ /dev/null @@ -1,42 +0,0 @@ -text = $values['text']; - $this->style = $values['style'] ?? null; - } - - /** - * @return string - */ - public function __toString(): string - { - return $this->toJson(); - } -} diff --git a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItemStyle.php b/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItemStyle.php deleted file mode 100644 index 62ff1d30..00000000 --- a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItemStyle.php +++ /dev/null @@ -1,107 +0,0 @@ -> $decoration - */ - #[JsonProperty('decoration'), ArrayType(['string'])] - public ?array $decoration; - - /** - * @var ?value-of $script - */ - #[JsonProperty('script')] - public ?string $script; - - /** - * @var ?float $letterSpacing - */ - #[JsonProperty('letterSpacing')] - public ?float $letterSpacing; - - /** - * @var ?float $horizontalScale - */ - #[JsonProperty('horizontalScale')] - public ?float $horizontalScale; - - /** - * @var ?string $unknown - */ - #[JsonProperty('unknown')] - public ?string $unknown; - - /** - * @param array{ - * family?: ?string, - * weight?: ?int, - * italic?: ?bool, - * size?: ?float, - * color?: ?string, - * decoration?: ?array>, - * script?: ?value-of, - * letterSpacing?: ?float, - * horizontalScale?: ?float, - * unknown?: ?string, - * } $values - */ - public function __construct( - array $values = [], - ) { - $this->family = $values['family'] ?? null; - $this->weight = $values['weight'] ?? null; - $this->italic = $values['italic'] ?? null; - $this->size = $values['size'] ?? null; - $this->color = $values['color'] ?? null; - $this->decoration = $values['decoration'] ?? null; - $this->script = $values['script'] ?? null; - $this->letterSpacing = $values['letterSpacing'] ?? null; - $this->horizontalScale = $values['horizontalScale'] ?? null; - $this->unknown = $values['unknown'] ?? null; - } - - /** - * @return string - */ - public function __toString(): string - { - return $this->toJson(); - } -} diff --git a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php b/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php deleted file mode 100644 index 354f58a3..00000000 --- a/src/Types/AnnotationDraftFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php +++ /dev/null @@ -1,10 +0,0 @@ -modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationDraftInk.php b/src/Types/AnnotationDraftInk.php index 63e07f2a..aa6be299 100644 --- a/src/Types/AnnotationDraftInk.php +++ b/src/Types/AnnotationDraftInk.php @@ -194,6 +194,12 @@ class AnnotationDraftInk extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -276,6 +282,7 @@ class AnnotationDraftInk extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -319,6 +326,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationDraftLine.php b/src/Types/AnnotationDraftLine.php index 94a727ed..d2269a16 100644 --- a/src/Types/AnnotationDraftLine.php +++ b/src/Types/AnnotationDraftLine.php @@ -194,6 +194,12 @@ class AnnotationDraftLine extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -318,6 +324,7 @@ class AnnotationDraftLine extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -368,6 +375,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationDraftPolygon.php b/src/Types/AnnotationDraftPolygon.php index 42c9ab0e..7796459e 100644 --- a/src/Types/AnnotationDraftPolygon.php +++ b/src/Types/AnnotationDraftPolygon.php @@ -194,6 +194,12 @@ class AnnotationDraftPolygon extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -306,6 +312,7 @@ class AnnotationDraftPolygon extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -354,6 +361,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationDraftPolyline.php b/src/Types/AnnotationDraftPolyline.php index 819c8834..b8aa232c 100644 --- a/src/Types/AnnotationDraftPolyline.php +++ b/src/Types/AnnotationDraftPolyline.php @@ -194,6 +194,12 @@ class AnnotationDraftPolyline extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -306,6 +312,7 @@ class AnnotationDraftPolyline extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -354,6 +361,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationDraftRedact.php b/src/Types/AnnotationDraftRedact.php index 56ad5de2..f37788b1 100644 --- a/src/Types/AnnotationDraftRedact.php +++ b/src/Types/AnnotationDraftRedact.php @@ -194,6 +194,12 @@ class AnnotationDraftRedact extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -287,6 +293,7 @@ class AnnotationDraftRedact extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * quadPoints?: ?array, @@ -333,6 +340,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints'] ?? null; diff --git a/src/Types/AnnotationDraftSquare.php b/src/Types/AnnotationDraftSquare.php index 47e61752..db3aaa7e 100644 --- a/src/Types/AnnotationDraftSquare.php +++ b/src/Types/AnnotationDraftSquare.php @@ -194,6 +194,12 @@ class AnnotationDraftSquare extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -281,6 +287,7 @@ class AnnotationDraftSquare extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -326,6 +333,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationDraftSquiggly.php b/src/Types/AnnotationDraftSquiggly.php index d8e47918..55c37549 100644 --- a/src/Types/AnnotationDraftSquiggly.php +++ b/src/Types/AnnotationDraftSquiggly.php @@ -194,6 +194,12 @@ class AnnotationDraftSquiggly extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -246,6 +252,7 @@ class AnnotationDraftSquiggly extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * } $values @@ -284,6 +291,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationDraftStamp.php b/src/Types/AnnotationDraftStamp.php index 234a0e36..57f02c89 100644 --- a/src/Types/AnnotationDraftStamp.php +++ b/src/Types/AnnotationDraftStamp.php @@ -193,6 +193,12 @@ class AnnotationDraftStamp extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?AnnotationDraftStampBox $box */ @@ -256,6 +262,7 @@ class AnnotationDraftStamp extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * box?: ?AnnotationDraftStampBox, * rotation?: ?float, * name?: ?string, @@ -297,6 +304,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->box = $values['box'] ?? null; $this->rotation = $values['rotation'] ?? null; $this->name = $values['name'] ?? null; diff --git a/src/Types/AnnotationDraftStrikeout.php b/src/Types/AnnotationDraftStrikeout.php index f04e4b36..0584e59a 100644 --- a/src/Types/AnnotationDraftStrikeout.php +++ b/src/Types/AnnotationDraftStrikeout.php @@ -194,6 +194,12 @@ class AnnotationDraftStrikeout extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -252,6 +258,7 @@ class AnnotationDraftStrikeout extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * intent?: ?value-of, @@ -291,6 +298,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationDraftText.php b/src/Types/AnnotationDraftText.php index 80417bdb..d8803e66 100644 --- a/src/Types/AnnotationDraftText.php +++ b/src/Types/AnnotationDraftText.php @@ -193,6 +193,12 @@ class AnnotationDraftText extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -262,6 +268,7 @@ class AnnotationDraftText extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * icon?: ?value-of, @@ -304,6 +311,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->icon = $values['icon'] ?? null; diff --git a/src/Types/AnnotationDraftUnderline.php b/src/Types/AnnotationDraftUnderline.php index 6dc4a674..cbac50d0 100644 --- a/src/Types/AnnotationDraftUnderline.php +++ b/src/Types/AnnotationDraftUnderline.php @@ -194,6 +194,12 @@ class AnnotationDraftUnderline extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -246,6 +252,7 @@ class AnnotationDraftUnderline extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * } $values @@ -284,6 +291,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationFileAttachment.php b/src/Types/AnnotationFileAttachment.php index 4a9dbf47..8dc94de5 100644 --- a/src/Types/AnnotationFileAttachment.php +++ b/src/Types/AnnotationFileAttachment.php @@ -196,6 +196,12 @@ class AnnotationFileAttachment extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -256,6 +262,7 @@ class AnnotationFileAttachment extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * file?: ?AttachmentFileInfo, * } $values */ @@ -293,6 +300,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->icon = $values['icon']; diff --git a/src/Types/AnnotationFreeText.php b/src/Types/AnnotationFreeText.php index f8b26dfe..9d8cc66a 100644 --- a/src/Types/AnnotationFreeText.php +++ b/src/Types/AnnotationFreeText.php @@ -196,6 +196,12 @@ class AnnotationFreeText extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var RichTextDocument $richText + */ + #[JsonProperty('richText')] + public RichTextDocument $richText; + /** * @var AnnotationFreeTextBox $box */ @@ -238,12 +244,6 @@ class AnnotationFreeText extends JsonSerializableType #[JsonProperty('verticalAlign')] public string $verticalAlign; - /** - * @var AnnotationFreeTextRichText $richText - */ - #[JsonProperty('richText')] - public AnnotationFreeTextRichText $richText; - /** * @var string $color */ @@ -321,13 +321,13 @@ class AnnotationFreeText extends JsonSerializableType * locked: bool, * toggleNoView: bool, * lockedContents: bool, + * richText: RichTextDocument, * box: AnnotationFreeTextBox, * intent: value-of, * fontFamily: string, * fontSize: float, * textAlign: value-of, * verticalAlign: value-of, - * richText: AnnotationFreeTextRichText, * color: string, * fontColor: string, * opacity: float, @@ -391,6 +391,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText']; $this->box = $values['box']; $this->rotation = $values['rotation'] ?? null; $this->intent = $values['intent']; @@ -398,7 +399,6 @@ public function __construct( $this->fontSize = $values['fontSize']; $this->textAlign = $values['textAlign']; $this->verticalAlign = $values['verticalAlign']; - $this->richText = $values['richText']; $this->color = $values['color']; $this->fontColor = $values['fontColor']; $this->interiorColor = $values['interiorColor'] ?? null; diff --git a/src/Types/AnnotationHighlight.php b/src/Types/AnnotationHighlight.php index eea17e34..b8cce194 100644 --- a/src/Types/AnnotationHighlight.php +++ b/src/Types/AnnotationHighlight.php @@ -196,6 +196,12 @@ class AnnotationHighlight extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -250,6 +256,7 @@ class AnnotationHighlight extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * } $values */ public function __construct( @@ -286,6 +293,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationInk.php b/src/Types/AnnotationInk.php index ab5cb12d..98ebf931 100644 --- a/src/Types/AnnotationInk.php +++ b/src/Types/AnnotationInk.php @@ -197,10 +197,16 @@ class AnnotationInk extends JsonSerializableType public ?PdfAnnotationActions $actions; /** - * @var string $color + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + + /** + * @var ?string $color */ #[JsonProperty('color')] - public string $color; + public ?string $color; /** * @var float $opacity @@ -261,7 +267,6 @@ class AnnotationInk extends JsonSerializableType * locked: bool, * toggleNoView: bool, * lockedContents: bool, - * color: string, * opacity: float, * strokeWidth: float, * borderStyle: value-of, @@ -282,6 +287,8 @@ class AnnotationInk extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, + * color?: ?string, * dashArray?: ?array, * intent?: ?value-of, * rotation?: ?float, @@ -321,7 +328,8 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; - $this->color = $values['color']; + $this->richText = $values['richText'] ?? null; + $this->color = $values['color'] ?? null; $this->opacity = $values['opacity']; $this->strokeWidth = $values['strokeWidth']; $this->borderStyle = $values['borderStyle']; diff --git a/src/Types/AnnotationLine.php b/src/Types/AnnotationLine.php index b965f2a3..026cf4b2 100644 --- a/src/Types/AnnotationLine.php +++ b/src/Types/AnnotationLine.php @@ -197,10 +197,16 @@ class AnnotationLine extends JsonSerializableType public ?PdfAnnotationActions $actions; /** - * @var string $color + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + + /** + * @var ?string $color */ #[JsonProperty('color')] - public string $color; + public ?string $color; /** * @var float $opacity @@ -303,7 +309,6 @@ class AnnotationLine extends JsonSerializableType * locked: bool, * toggleNoView: bool, * lockedContents: bool, - * color: string, * opacity: float, * strokeWidth: float, * borderStyle: value-of, @@ -326,6 +331,8 @@ class AnnotationLine extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, + * color?: ?string, * dashArray?: ?array, * interiorColor?: ?string, * rotation?: ?float, @@ -370,7 +377,8 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; - $this->color = $values['color']; + $this->richText = $values['richText'] ?? null; + $this->color = $values['color'] ?? null; $this->opacity = $values['opacity']; $this->strokeWidth = $values['strokeWidth']; $this->borderStyle = $values['borderStyle']; diff --git a/src/Types/AnnotationPatchCaret.php b/src/Types/AnnotationPatchCaret.php index 9ab0e5cd..7fe68d15 100644 --- a/src/Types/AnnotationPatchCaret.php +++ b/src/Types/AnnotationPatchCaret.php @@ -193,6 +193,12 @@ class AnnotationPatchCaret extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -256,6 +262,7 @@ class AnnotationPatchCaret extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * box?: ?AnnotationPatchCaretBox, @@ -297,6 +304,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->box = $values['box'] ?? null; diff --git a/src/Types/AnnotationPatchCircle.php b/src/Types/AnnotationPatchCircle.php index 19d16150..befb9f85 100644 --- a/src/Types/AnnotationPatchCircle.php +++ b/src/Types/AnnotationPatchCircle.php @@ -195,6 +195,12 @@ class AnnotationPatchCircle extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -285,6 +291,7 @@ class AnnotationPatchCircle extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -333,6 +340,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationPatchFileAttachment.php b/src/Types/AnnotationPatchFileAttachment.php index 0ab32260..bd050b30 100644 --- a/src/Types/AnnotationPatchFileAttachment.php +++ b/src/Types/AnnotationPatchFileAttachment.php @@ -193,6 +193,12 @@ class AnnotationPatchFileAttachment extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -250,6 +256,7 @@ class AnnotationPatchFileAttachment extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * icon?: ?value-of, @@ -290,6 +297,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->icon = $values['icon'] ?? null; diff --git a/src/Types/AnnotationPatchFreeText.php b/src/Types/AnnotationPatchFreeText.php index 5fe36d7e..f733a93e 100644 --- a/src/Types/AnnotationPatchFreeText.php +++ b/src/Types/AnnotationPatchFreeText.php @@ -195,6 +195,12 @@ class AnnotationPatchFreeText extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?AnnotationPatchFreeTextBox $box */ @@ -240,12 +246,6 @@ class AnnotationPatchFreeText extends JsonSerializableType #[JsonProperty('verticalAlign')] public ?string $verticalAlign; - /** - * @var ?AnnotationPatchFreeTextRichText $richText - */ - #[JsonProperty('richText')] - public ?AnnotationPatchFreeTextRichText $richText; - /** * @var ?string $color */ @@ -342,6 +342,7 @@ class AnnotationPatchFreeText extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * box?: ?AnnotationPatchFreeTextBox, * rotation?: ?float, * intent?: ( @@ -352,7 +353,6 @@ class AnnotationPatchFreeText extends JsonSerializableType * fontSize?: ?float, * textAlign?: ?value-of, * verticalAlign?: ?value-of, - * richText?: ?AnnotationPatchFreeTextRichText, * color?: ?string, * fontColor?: ?string, * interiorColor?: ?string, @@ -402,6 +402,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->box = $values['box'] ?? null; $this->rotation = $values['rotation'] ?? null; $this->intent = $values['intent'] ?? null; @@ -409,7 +410,6 @@ public function __construct( $this->fontSize = $values['fontSize'] ?? null; $this->textAlign = $values['textAlign'] ?? null; $this->verticalAlign = $values['verticalAlign'] ?? null; - $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->fontColor = $values['fontColor'] ?? null; $this->interiorColor = $values['interiorColor'] ?? null; diff --git a/src/Types/AnnotationPatchFreeTextRichText.php b/src/Types/AnnotationPatchFreeTextRichText.php deleted file mode 100644 index a3fa4af3..00000000 --- a/src/Types/AnnotationPatchFreeTextRichText.php +++ /dev/null @@ -1,43 +0,0 @@ - $paragraphs - */ - #[JsonProperty('paragraphs'), ArrayType([AnnotationPatchFreeTextRichTextParagraphsItem::class])] - public array $paragraphs; - - /** - * @param array{ - * paragraphs: array, - * body?: ?AnnotationPatchFreeTextRichTextBody, - * } $values - */ - public function __construct( - array $values, - ) { - $this->body = $values['body'] ?? null; - $this->paragraphs = $values['paragraphs']; - } - - /** - * @return string - */ - public function __toString(): string - { - return $this->toJson(); - } -} diff --git a/src/Types/AnnotationPatchFreeTextRichTextBody.php b/src/Types/AnnotationPatchFreeTextRichTextBody.php deleted file mode 100644 index e1947820..00000000 --- a/src/Types/AnnotationPatchFreeTextRichTextBody.php +++ /dev/null @@ -1,147 +0,0 @@ -> $decoration - */ - #[JsonProperty('decoration'), ArrayType(['string'])] - public ?array $decoration; - - /** - * @var ?value-of $script - */ - #[JsonProperty('script')] - public ?string $script; - - /** - * @var ?float $letterSpacing - */ - #[JsonProperty('letterSpacing')] - public ?float $letterSpacing; - - /** - * @var ?float $horizontalScale - */ - #[JsonProperty('horizontalScale')] - public ?float $horizontalScale; - - /** - * @var ?string $unknown - */ - #[JsonProperty('unknown')] - public ?string $unknown; - - /** - * @var ?value-of $align - */ - #[JsonProperty('align')] - public ?string $align; - - /** - * @var ?value-of $dir - */ - #[JsonProperty('dir')] - public ?string $dir; - - /** - * @var ?float $lineHeight - */ - #[JsonProperty('lineHeight')] - public ?float $lineHeight; - - /** - * @var ?AnnotationPatchFreeTextRichTextBodyMargins $margins - */ - #[JsonProperty('margins')] - public ?AnnotationPatchFreeTextRichTextBodyMargins $margins; - - /** - * @var ?float $textIndent - */ - #[JsonProperty('textIndent')] - public ?float $textIndent; - - /** - * @param array{ - * family?: ?string, - * weight?: ?int, - * italic?: ?bool, - * size?: ?float, - * color?: ?string, - * decoration?: ?array>, - * script?: ?value-of, - * letterSpacing?: ?float, - * horizontalScale?: ?float, - * unknown?: ?string, - * align?: ?value-of, - * dir?: ?value-of, - * lineHeight?: ?float, - * margins?: ?AnnotationPatchFreeTextRichTextBodyMargins, - * textIndent?: ?float, - * } $values - */ - public function __construct( - array $values = [], - ) { - $this->family = $values['family'] ?? null; - $this->weight = $values['weight'] ?? null; - $this->italic = $values['italic'] ?? null; - $this->size = $values['size'] ?? null; - $this->color = $values['color'] ?? null; - $this->decoration = $values['decoration'] ?? null; - $this->script = $values['script'] ?? null; - $this->letterSpacing = $values['letterSpacing'] ?? null; - $this->horizontalScale = $values['horizontalScale'] ?? null; - $this->unknown = $values['unknown'] ?? null; - $this->align = $values['align'] ?? null; - $this->dir = $values['dir'] ?? null; - $this->lineHeight = $values['lineHeight'] ?? null; - $this->margins = $values['margins'] ?? null; - $this->textIndent = $values['textIndent'] ?? null; - } - - /** - * @return string - */ - public function __toString(): string - { - return $this->toJson(); - } -} diff --git a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemAlign.php b/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemAlign.php deleted file mode 100644 index d3d82a1c..00000000 --- a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemAlign.php +++ /dev/null @@ -1,11 +0,0 @@ -top = $values['top']; - $this->bottom = $values['bottom']; - $this->left = $values['left']; - $this->right = $values['right']; - } - - /** - * @return string - */ - public function __toString(): string - { - return $this->toJson(); - } -} diff --git a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php b/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php deleted file mode 100644 index e6d9e515..00000000 --- a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php +++ /dev/null @@ -1,10 +0,0 @@ -, @@ -284,6 +291,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints'] ?? null; diff --git a/src/Types/AnnotationPatchInk.php b/src/Types/AnnotationPatchInk.php index 82a12497..ca222c2a 100644 --- a/src/Types/AnnotationPatchInk.php +++ b/src/Types/AnnotationPatchInk.php @@ -195,6 +195,12 @@ class AnnotationPatchInk extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -282,6 +288,7 @@ class AnnotationPatchInk extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -332,6 +339,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationPatchLine.php b/src/Types/AnnotationPatchLine.php index 2264f218..4d8b992c 100644 --- a/src/Types/AnnotationPatchLine.php +++ b/src/Types/AnnotationPatchLine.php @@ -195,6 +195,12 @@ class AnnotationPatchLine extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -321,6 +327,7 @@ class AnnotationPatchLine extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -375,6 +382,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationPatchPolygon.php b/src/Types/AnnotationPatchPolygon.php index 62c91b14..c21899cd 100644 --- a/src/Types/AnnotationPatchPolygon.php +++ b/src/Types/AnnotationPatchPolygon.php @@ -195,6 +195,12 @@ class AnnotationPatchPolygon extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -312,6 +318,7 @@ class AnnotationPatchPolygon extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -367,6 +374,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationPatchPolyline.php b/src/Types/AnnotationPatchPolyline.php index d4f8d2d4..6dd71b4a 100644 --- a/src/Types/AnnotationPatchPolyline.php +++ b/src/Types/AnnotationPatchPolyline.php @@ -195,6 +195,12 @@ class AnnotationPatchPolyline extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -312,6 +318,7 @@ class AnnotationPatchPolyline extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -367,6 +374,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationPatchRedact.php b/src/Types/AnnotationPatchRedact.php index 85c20605..68d11a81 100644 --- a/src/Types/AnnotationPatchRedact.php +++ b/src/Types/AnnotationPatchRedact.php @@ -194,6 +194,12 @@ class AnnotationPatchRedact extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -287,6 +293,7 @@ class AnnotationPatchRedact extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * quadPoints?: ?array, @@ -333,6 +340,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints'] ?? null; diff --git a/src/Types/AnnotationPatchSquare.php b/src/Types/AnnotationPatchSquare.php index dbb9e316..798baf46 100644 --- a/src/Types/AnnotationPatchSquare.php +++ b/src/Types/AnnotationPatchSquare.php @@ -195,6 +195,12 @@ class AnnotationPatchSquare extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -285,6 +291,7 @@ class AnnotationPatchSquare extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * strokeWidth?: ?float, @@ -333,6 +340,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->strokeWidth = $values['strokeWidth'] ?? null; diff --git a/src/Types/AnnotationPatchSquiggly.php b/src/Types/AnnotationPatchSquiggly.php index 6cdb82bd..7f77b2ad 100644 --- a/src/Types/AnnotationPatchSquiggly.php +++ b/src/Types/AnnotationPatchSquiggly.php @@ -194,6 +194,12 @@ class AnnotationPatchSquiggly extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -245,6 +251,7 @@ class AnnotationPatchSquiggly extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * quadPoints?: ?array, @@ -284,6 +291,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints'] ?? null; diff --git a/src/Types/AnnotationPatchStamp.php b/src/Types/AnnotationPatchStamp.php index 519e85d4..13417b84 100644 --- a/src/Types/AnnotationPatchStamp.php +++ b/src/Types/AnnotationPatchStamp.php @@ -193,6 +193,12 @@ class AnnotationPatchStamp extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?AnnotationPatchStampBox $box */ @@ -256,6 +262,7 @@ class AnnotationPatchStamp extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * box?: ?AnnotationPatchStampBox, * rotation?: ?float, * name?: ?string, @@ -297,6 +304,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->box = $values['box'] ?? null; $this->rotation = $values['rotation'] ?? null; $this->name = $values['name'] ?? null; diff --git a/src/Types/AnnotationPatchStrikeout.php b/src/Types/AnnotationPatchStrikeout.php index de08a5ee..fff86357 100644 --- a/src/Types/AnnotationPatchStrikeout.php +++ b/src/Types/AnnotationPatchStrikeout.php @@ -194,6 +194,12 @@ class AnnotationPatchStrikeout extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -251,6 +257,7 @@ class AnnotationPatchStrikeout extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * quadPoints?: ?array, @@ -291,6 +298,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints'] ?? null; diff --git a/src/Types/AnnotationPatchText.php b/src/Types/AnnotationPatchText.php index 9153ff8f..c406f858 100644 --- a/src/Types/AnnotationPatchText.php +++ b/src/Types/AnnotationPatchText.php @@ -193,6 +193,12 @@ class AnnotationPatchText extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -262,6 +268,7 @@ class AnnotationPatchText extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * icon?: ?value-of, @@ -304,6 +311,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->icon = $values['icon'] ?? null; diff --git a/src/Types/AnnotationPatchUnderline.php b/src/Types/AnnotationPatchUnderline.php index 348a812b..3aa022e7 100644 --- a/src/Types/AnnotationPatchUnderline.php +++ b/src/Types/AnnotationPatchUnderline.php @@ -194,6 +194,12 @@ class AnnotationPatchUnderline extends JsonSerializableType #[JsonProperty('actions')] public mixed $actions; + /** + * @var ?RichTextDocumentInput $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocumentInput $richText; + /** * @var ?string $color */ @@ -245,6 +251,7 @@ class AnnotationPatchUnderline extends JsonSerializableType * modifiedBy?: mixed, * importedBy?: mixed, * actions?: mixed, + * richText?: ?RichTextDocumentInput, * color?: ?string, * opacity?: ?float, * quadPoints?: ?array, @@ -284,6 +291,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color'] ?? null; $this->opacity = $values['opacity'] ?? null; $this->quadPoints = $values['quadPoints'] ?? null; diff --git a/src/Types/AnnotationPolygon.php b/src/Types/AnnotationPolygon.php index 3e6c6b5f..9bbd5eee 100644 --- a/src/Types/AnnotationPolygon.php +++ b/src/Types/AnnotationPolygon.php @@ -197,10 +197,16 @@ class AnnotationPolygon extends JsonSerializableType public ?PdfAnnotationActions $actions; /** - * @var string $color + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + + /** + * @var ?string $color */ #[JsonProperty('color')] - public string $color; + public ?string $color; /** * @var float $opacity @@ -291,7 +297,6 @@ class AnnotationPolygon extends JsonSerializableType * locked: bool, * toggleNoView: bool, * lockedContents: bool, - * color: string, * opacity: float, * strokeWidth: float, * borderStyle: value-of, @@ -312,6 +317,8 @@ class AnnotationPolygon extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, + * color?: ?string, * dashArray?: ?array, * interiorColor?: ?string, * rotation?: ?float, @@ -356,7 +363,8 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; - $this->color = $values['color']; + $this->richText = $values['richText'] ?? null; + $this->color = $values['color'] ?? null; $this->opacity = $values['opacity']; $this->strokeWidth = $values['strokeWidth']; $this->borderStyle = $values['borderStyle']; diff --git a/src/Types/AnnotationPolyline.php b/src/Types/AnnotationPolyline.php index 969c7092..65ecec73 100644 --- a/src/Types/AnnotationPolyline.php +++ b/src/Types/AnnotationPolyline.php @@ -197,10 +197,16 @@ class AnnotationPolyline extends JsonSerializableType public ?PdfAnnotationActions $actions; /** - * @var string $color + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + + /** + * @var ?string $color */ #[JsonProperty('color')] - public string $color; + public ?string $color; /** * @var float $opacity @@ -291,7 +297,6 @@ class AnnotationPolyline extends JsonSerializableType * locked: bool, * toggleNoView: bool, * lockedContents: bool, - * color: string, * opacity: float, * strokeWidth: float, * borderStyle: value-of, @@ -313,6 +318,8 @@ class AnnotationPolyline extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, + * color?: ?string, * dashArray?: ?array, * interiorColor?: ?string, * rotation?: ?float, @@ -356,7 +363,8 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; - $this->color = $values['color']; + $this->richText = $values['richText'] ?? null; + $this->color = $values['color'] ?? null; $this->opacity = $values['opacity']; $this->strokeWidth = $values['strokeWidth']; $this->borderStyle = $values['borderStyle']; diff --git a/src/Types/AnnotationRedact.php b/src/Types/AnnotationRedact.php index 56cfb19b..8ab55eda 100644 --- a/src/Types/AnnotationRedact.php +++ b/src/Types/AnnotationRedact.php @@ -196,6 +196,12 @@ class AnnotationRedact extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -297,6 +303,7 @@ class AnnotationRedact extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * interiorColor?: ?string, * overlayText?: ?string, * } $values @@ -335,6 +342,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationSquare.php b/src/Types/AnnotationSquare.php index 7af6572c..225690a8 100644 --- a/src/Types/AnnotationSquare.php +++ b/src/Types/AnnotationSquare.php @@ -197,10 +197,16 @@ class AnnotationSquare extends JsonSerializableType public ?PdfAnnotationActions $actions; /** - * @var string $color + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + + /** + * @var ?string $color */ #[JsonProperty('color')] - public string $color; + public ?string $color; /** * @var float $opacity @@ -267,7 +273,6 @@ class AnnotationSquare extends JsonSerializableType * locked: bool, * toggleNoView: bool, * lockedContents: bool, - * color: string, * opacity: float, * strokeWidth: float, * borderStyle: value-of, @@ -288,6 +293,8 @@ class AnnotationSquare extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, + * color?: ?string, * dashArray?: ?array, * interiorColor?: ?string, * rotation?: ?float, @@ -328,7 +335,8 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; - $this->color = $values['color']; + $this->richText = $values['richText'] ?? null; + $this->color = $values['color'] ?? null; $this->opacity = $values['opacity']; $this->strokeWidth = $values['strokeWidth']; $this->borderStyle = $values['borderStyle']; diff --git a/src/Types/AnnotationSquiggly.php b/src/Types/AnnotationSquiggly.php index 797758f5..23177a20 100644 --- a/src/Types/AnnotationSquiggly.php +++ b/src/Types/AnnotationSquiggly.php @@ -196,6 +196,12 @@ class AnnotationSquiggly extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -250,6 +256,7 @@ class AnnotationSquiggly extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * } $values */ public function __construct( @@ -286,6 +293,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationStamp.php b/src/Types/AnnotationStamp.php index ae9cf9c0..f08d5352 100644 --- a/src/Types/AnnotationStamp.php +++ b/src/Types/AnnotationStamp.php @@ -196,6 +196,12 @@ class AnnotationStamp extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var AnnotationStampBox $box */ @@ -261,6 +267,7 @@ class AnnotationStamp extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * rotation?: ?float, * name?: ?string, * fit?: ?value-of, @@ -300,6 +307,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->box = $values['box']; $this->rotation = $values['rotation'] ?? null; $this->name = $values['name'] ?? null; diff --git a/src/Types/AnnotationStrikeout.php b/src/Types/AnnotationStrikeout.php index 0352198d..b9dfe9ce 100644 --- a/src/Types/AnnotationStrikeout.php +++ b/src/Types/AnnotationStrikeout.php @@ -196,6 +196,12 @@ class AnnotationStrikeout extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -256,6 +262,7 @@ class AnnotationStrikeout extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * intent?: ?value-of, * } $values */ @@ -293,6 +300,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/AnnotationText.php b/src/Types/AnnotationText.php index ecb41455..913bc029 100644 --- a/src/Types/AnnotationText.php +++ b/src/Types/AnnotationText.php @@ -196,6 +196,12 @@ class AnnotationText extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -269,6 +275,7 @@ class AnnotationText extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * state?: ?string, * stateModel?: ?string, * } $values @@ -307,6 +314,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->icon = $values['icon']; diff --git a/src/Types/AnnotationUnderline.php b/src/Types/AnnotationUnderline.php index 99f70a50..d73c312e 100644 --- a/src/Types/AnnotationUnderline.php +++ b/src/Types/AnnotationUnderline.php @@ -196,6 +196,12 @@ class AnnotationUnderline extends JsonSerializableType #[JsonProperty('actions')] public ?PdfAnnotationActions $actions; + /** + * @var ?RichTextDocument $richText + */ + #[JsonProperty('richText')] + public ?RichTextDocument $richText; + /** * @var string $color */ @@ -250,6 +256,7 @@ class AnnotationUnderline extends JsonSerializableType * modifiedBy?: ?string, * importedBy?: ?string, * actions?: ?PdfAnnotationActions, + * richText?: ?RichTextDocument, * } $values */ public function __construct( @@ -286,6 +293,7 @@ public function __construct( $this->modifiedBy = $values['modifiedBy'] ?? null; $this->importedBy = $values['importedBy'] ?? null; $this->actions = $values['actions'] ?? null; + $this->richText = $values['richText'] ?? null; $this->color = $values['color']; $this->opacity = $values['opacity']; $this->quadPoints = $values['quadPoints']; diff --git a/src/Types/DeploymentModulesResponse.php b/src/Types/DeploymentModulesResponse.php new file mode 100644 index 00000000..98f83eaf --- /dev/null +++ b/src/Types/DeploymentModulesResponse.php @@ -0,0 +1,35 @@ + $modules + */ + #[JsonProperty('modules'), ArrayType([ModuleManifest::class])] + public array $modules; + + /** + * @param array{ + * modules: array, + * } $values + */ + public function __construct( + array $values, + ) { + $this->modules = $values['modules']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/ModuleManifest.php b/src/Types/ModuleManifest.php new file mode 100644 index 00000000..85a7913c --- /dev/null +++ b/src/Types/ModuleManifest.php @@ -0,0 +1,75 @@ + $permissions + */ + #[JsonProperty('permissions'), ArrayType([ModulePermission::class])] + public array $permissions; + + /** + * @var array $meters + */ + #[JsonProperty('meters'), ArrayType([ModuleMeter::class])] + public array $meters; + + /** + * @var ModuleManifestRequires $requires + */ + #[JsonProperty('requires')] + public ModuleManifestRequires $requires; + + /** + * @param array{ + * id: string, + * name: string, + * permissions: array, + * meters: array, + * requires: ModuleManifestRequires, + * description?: ?string, + * } $values + */ + public function __construct( + array $values, + ) { + $this->id = $values['id']; + $this->name = $values['name']; + $this->description = $values['description'] ?? null; + $this->permissions = $values['permissions']; + $this->meters = $values['meters']; + $this->requires = $values['requires']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/ModuleManifestRequires.php b/src/Types/ModuleManifestRequires.php new file mode 100644 index 00000000..bf3ee5a3 --- /dev/null +++ b/src/Types/ModuleManifestRequires.php @@ -0,0 +1,35 @@ + $document + */ + #[JsonProperty('document'), ArrayType(['string'])] + public array $document; + + /** + * @param array{ + * document: array, + * } $values + */ + public function __construct( + array $values, + ) { + $this->document = $values['document']; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/ModuleMeter.php b/src/Types/ModuleMeter.php new file mode 100644 index 00000000..0b959145 --- /dev/null +++ b/src/Types/ModuleMeter.php @@ -0,0 +1,58 @@ +name = $values['name']; + $this->label = $values['label']; + $this->unit = $values['unit']; + $this->description = $values['description'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/ModulePermission.php b/src/Types/ModulePermission.php new file mode 100644 index 00000000..f2ceabab --- /dev/null +++ b/src/Types/ModulePermission.php @@ -0,0 +1,75 @@ + $level + */ + #[JsonProperty('level')] + public string $level; + + /** + * @var string $label + */ + #[JsonProperty('label')] + public string $label; + + /** + * @var ?string $description + */ + #[JsonProperty('description')] + public ?string $description; + + /** + * @var ?string $replaces + */ + #[JsonProperty('replaces')] + public ?string $replaces; + + /** + * @var ?array $bypassedBy + */ + #[JsonProperty('bypassedBy'), ArrayType(['string'])] + public ?array $bypassedBy; + + /** + * @param array{ + * name: string, + * level: value-of, + * label: string, + * description?: ?string, + * replaces?: ?string, + * bypassedBy?: ?array, + * } $values + */ + public function __construct( + array $values, + ) { + $this->name = $values['name']; + $this->level = $values['level']; + $this->label = $values['label']; + $this->description = $values['description'] ?? null; + $this->replaces = $values['replaces'] ?? null; + $this->bypassedBy = $values['bypassedBy'] ?? null; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/ModulePermissionLevel.php b/src/Types/ModulePermissionLevel.php new file mode 100644 index 00000000..bcd65c01 --- /dev/null +++ b/src/Types/ModulePermissionLevel.php @@ -0,0 +1,9 @@ + $paragraphs + * @var array $paragraphs */ - #[JsonProperty('paragraphs'), ArrayType([AnnotationFreeTextRichTextParagraphsItem::class])] + #[JsonProperty('paragraphs'), ArrayType([RichTextDocumentParagraphsItem::class])] public array $paragraphs; /** * @param array{ - * body: AnnotationFreeTextRichTextBody, - * paragraphs: array, + * body: RichTextDocumentBody, + * paragraphs: array, * } $values */ public function __construct( diff --git a/src/Types/AnnotationFreeTextRichTextBody.php b/src/Types/RichTextDocumentBody.php similarity index 78% rename from src/Types/AnnotationFreeTextRichTextBody.php rename to src/Types/RichTextDocumentBody.php index bfcfe560..d264e9a2 100644 --- a/src/Types/AnnotationFreeTextRichTextBody.php +++ b/src/Types/RichTextDocumentBody.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class AnnotationFreeTextRichTextBody extends JsonSerializableType +class RichTextDocumentBody extends JsonSerializableType { /** * @var string $family @@ -39,13 +39,13 @@ class AnnotationFreeTextRichTextBody extends JsonSerializableType public string $color; /** - * @var array> $decoration + * @var array> $decoration */ #[JsonProperty('decoration'), ArrayType(['string'])] public array $decoration; /** - * @var value-of $script + * @var value-of $script */ #[JsonProperty('script')] public string $script; @@ -69,13 +69,13 @@ class AnnotationFreeTextRichTextBody extends JsonSerializableType public ?string $unknown; /** - * @var value-of $align + * @var value-of $align */ #[JsonProperty('align')] public string $align; /** - * @var value-of $dir + * @var value-of $dir */ #[JsonProperty('dir')] public string $dir; @@ -87,10 +87,10 @@ class AnnotationFreeTextRichTextBody extends JsonSerializableType public ?float $lineHeight; /** - * @var ?AnnotationFreeTextRichTextBodyMargins $margins + * @var ?RichTextDocumentBodyMargins $margins */ #[JsonProperty('margins')] - public ?AnnotationFreeTextRichTextBodyMargins $margins; + public ?RichTextDocumentBodyMargins $margins; /** * @var ?float $textIndent @@ -105,15 +105,15 @@ class AnnotationFreeTextRichTextBody extends JsonSerializableType * italic: bool, * size: float, * color: string, - * decoration: array>, - * script: value-of, + * decoration: array>, + * script: value-of, * letterSpacing: float, * horizontalScale: float, - * align: value-of, - * dir: value-of, + * align: value-of, + * dir: value-of, * unknown?: ?string, * lineHeight?: ?float, - * margins?: ?AnnotationFreeTextRichTextBodyMargins, + * margins?: ?RichTextDocumentBodyMargins, * textIndent?: ?float, * } $values */ diff --git a/src/Types/AnnotationFreeTextRichTextBodyAlign.php b/src/Types/RichTextDocumentBodyAlign.php similarity index 74% rename from src/Types/AnnotationFreeTextRichTextBodyAlign.php rename to src/Types/RichTextDocumentBodyAlign.php index 89a56c38..bf2aec1c 100644 --- a/src/Types/AnnotationFreeTextRichTextBodyAlign.php +++ b/src/Types/RichTextDocumentBodyAlign.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextBodyAlign: string +enum RichTextDocumentBodyAlign: string { case Left = "left"; case Center = "center"; diff --git a/src/Types/AnnotationFreeTextRichTextBodyDecorationItem.php b/src/Types/RichTextDocumentBodyDecorationItem.php similarity index 69% rename from src/Types/AnnotationFreeTextRichTextBodyDecorationItem.php rename to src/Types/RichTextDocumentBodyDecorationItem.php index b7610687..1684e704 100644 --- a/src/Types/AnnotationFreeTextRichTextBodyDecorationItem.php +++ b/src/Types/RichTextDocumentBodyDecorationItem.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextBodyDecorationItem: string +enum RichTextDocumentBodyDecorationItem: string { case Underline = "underline"; case LineThrough = "line-through"; diff --git a/src/Types/AnnotationFreeTextRichTextBodyDir.php b/src/Types/RichTextDocumentBodyDir.php similarity index 63% rename from src/Types/AnnotationFreeTextRichTextBodyDir.php rename to src/Types/RichTextDocumentBodyDir.php index 27af6c90..076bc4a7 100644 --- a/src/Types/AnnotationFreeTextRichTextBodyDir.php +++ b/src/Types/RichTextDocumentBodyDir.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextBodyDir: string +enum RichTextDocumentBodyDir: string { case Ltr = "ltr"; case Rtl = "rtl"; diff --git a/src/Types/AnnotationPatchFreeTextRichTextBodyMargins.php b/src/Types/RichTextDocumentBodyMargins.php similarity index 92% rename from src/Types/AnnotationPatchFreeTextRichTextBodyMargins.php rename to src/Types/RichTextDocumentBodyMargins.php index 08eb24f2..778f803b 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextBodyMargins.php +++ b/src/Types/RichTextDocumentBodyMargins.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class AnnotationPatchFreeTextRichTextBodyMargins extends JsonSerializableType +class RichTextDocumentBodyMargins extends JsonSerializableType { /** * @var float $top diff --git a/src/Types/AnnotationFreeTextRichTextBodyScript.php b/src/Types/RichTextDocumentBodyScript.php similarity index 69% rename from src/Types/AnnotationFreeTextRichTextBodyScript.php rename to src/Types/RichTextDocumentBodyScript.php index fac68beb..3dca56d4 100644 --- a/src/Types/AnnotationFreeTextRichTextBodyScript.php +++ b/src/Types/RichTextDocumentBodyScript.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextBodyScript: string +enum RichTextDocumentBodyScript: string { case Normal = "normal"; case Sub = "sub"; diff --git a/src/Types/AnnotationDraftFreeTextRichText.php b/src/Types/RichTextDocumentInput.php similarity index 55% rename from src/Types/AnnotationDraftFreeTextRichText.php rename to src/Types/RichTextDocumentInput.php index d95edd9a..59f73173 100644 --- a/src/Types/AnnotationDraftFreeTextRichText.php +++ b/src/Types/RichTextDocumentInput.php @@ -6,24 +6,24 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class AnnotationDraftFreeTextRichText extends JsonSerializableType +class RichTextDocumentInput extends JsonSerializableType { /** - * @var ?AnnotationDraftFreeTextRichTextBody $body + * @var ?RichTextDocumentInputBody $body */ #[JsonProperty('body')] - public ?AnnotationDraftFreeTextRichTextBody $body; + public ?RichTextDocumentInputBody $body; /** - * @var array $paragraphs + * @var array $paragraphs */ - #[JsonProperty('paragraphs'), ArrayType([AnnotationDraftFreeTextRichTextParagraphsItem::class])] + #[JsonProperty('paragraphs'), ArrayType([RichTextDocumentInputParagraphsItem::class])] public array $paragraphs; /** * @param array{ - * paragraphs: array, - * body?: ?AnnotationDraftFreeTextRichTextBody, + * paragraphs: array, + * body?: ?RichTextDocumentInputBody, * } $values */ public function __construct( diff --git a/src/Types/AnnotationDraftFreeTextRichTextBody.php b/src/Types/RichTextDocumentInputBody.php similarity index 77% rename from src/Types/AnnotationDraftFreeTextRichTextBody.php rename to src/Types/RichTextDocumentInputBody.php index e31df87d..5b6330b4 100644 --- a/src/Types/AnnotationDraftFreeTextRichTextBody.php +++ b/src/Types/RichTextDocumentInputBody.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class AnnotationDraftFreeTextRichTextBody extends JsonSerializableType +class RichTextDocumentInputBody extends JsonSerializableType { /** * @var ?string $family @@ -39,13 +39,13 @@ class AnnotationDraftFreeTextRichTextBody extends JsonSerializableType public ?string $color; /** - * @var ?array> $decoration + * @var ?array> $decoration */ #[JsonProperty('decoration'), ArrayType(['string'])] public ?array $decoration; /** - * @var ?value-of $script + * @var ?value-of $script */ #[JsonProperty('script')] public ?string $script; @@ -69,13 +69,13 @@ class AnnotationDraftFreeTextRichTextBody extends JsonSerializableType public ?string $unknown; /** - * @var ?value-of $align + * @var ?value-of $align */ #[JsonProperty('align')] public ?string $align; /** - * @var ?value-of $dir + * @var ?value-of $dir */ #[JsonProperty('dir')] public ?string $dir; @@ -87,10 +87,10 @@ class AnnotationDraftFreeTextRichTextBody extends JsonSerializableType public ?float $lineHeight; /** - * @var ?AnnotationDraftFreeTextRichTextBodyMargins $margins + * @var ?RichTextDocumentInputBodyMargins $margins */ #[JsonProperty('margins')] - public ?AnnotationDraftFreeTextRichTextBodyMargins $margins; + public ?RichTextDocumentInputBodyMargins $margins; /** * @var ?float $textIndent @@ -105,15 +105,15 @@ class AnnotationDraftFreeTextRichTextBody extends JsonSerializableType * italic?: ?bool, * size?: ?float, * color?: ?string, - * decoration?: ?array>, - * script?: ?value-of, + * decoration?: ?array>, + * script?: ?value-of, * letterSpacing?: ?float, * horizontalScale?: ?float, * unknown?: ?string, - * align?: ?value-of, - * dir?: ?value-of, + * align?: ?value-of, + * dir?: ?value-of, * lineHeight?: ?float, - * margins?: ?AnnotationDraftFreeTextRichTextBodyMargins, + * margins?: ?RichTextDocumentInputBodyMargins, * textIndent?: ?float, * } $values */ diff --git a/src/Types/AnnotationDraftFreeTextRichTextBodyAlign.php b/src/Types/RichTextDocumentInputBodyAlign.php similarity index 73% rename from src/Types/AnnotationDraftFreeTextRichTextBodyAlign.php rename to src/Types/RichTextDocumentInputBodyAlign.php index 24bc8c87..6b3c4d67 100644 --- a/src/Types/AnnotationDraftFreeTextRichTextBodyAlign.php +++ b/src/Types/RichTextDocumentInputBodyAlign.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationDraftFreeTextRichTextBodyAlign: string +enum RichTextDocumentInputBodyAlign: string { case Left = "left"; case Center = "center"; diff --git a/src/Types/AnnotationPatchFreeTextRichTextBodyDecorationItem.php b/src/Types/RichTextDocumentInputBodyDecorationItem.php similarity index 68% rename from src/Types/AnnotationPatchFreeTextRichTextBodyDecorationItem.php rename to src/Types/RichTextDocumentInputBodyDecorationItem.php index 0c3d738b..9266d1cb 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextBodyDecorationItem.php +++ b/src/Types/RichTextDocumentInputBodyDecorationItem.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationPatchFreeTextRichTextBodyDecorationItem: string +enum RichTextDocumentInputBodyDecorationItem: string { case Underline = "underline"; case LineThrough = "line-through"; diff --git a/src/Types/AnnotationDraftFreeTextRichTextBodyDir.php b/src/Types/RichTextDocumentInputBodyDir.php similarity index 61% rename from src/Types/AnnotationDraftFreeTextRichTextBodyDir.php rename to src/Types/RichTextDocumentInputBodyDir.php index 7ccd9591..df4336cb 100644 --- a/src/Types/AnnotationDraftFreeTextRichTextBodyDir.php +++ b/src/Types/RichTextDocumentInputBodyDir.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationDraftFreeTextRichTextBodyDir: string +enum RichTextDocumentInputBodyDir: string { case Ltr = "ltr"; case Rtl = "rtl"; diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItemMargins.php b/src/Types/RichTextDocumentInputBodyMargins.php similarity index 92% rename from src/Types/AnnotationFreeTextRichTextParagraphsItemMargins.php rename to src/Types/RichTextDocumentInputBodyMargins.php index 4983fec9..10bab973 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItemMargins.php +++ b/src/Types/RichTextDocumentInputBodyMargins.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class AnnotationFreeTextRichTextParagraphsItemMargins extends JsonSerializableType +class RichTextDocumentInputBodyMargins extends JsonSerializableType { /** * @var float $top diff --git a/src/Types/AnnotationDraftFreeTextRichTextBodyScript.php b/src/Types/RichTextDocumentInputBodyScript.php similarity index 67% rename from src/Types/AnnotationDraftFreeTextRichTextBodyScript.php rename to src/Types/RichTextDocumentInputBodyScript.php index 476604ca..7f3ba6c5 100644 --- a/src/Types/AnnotationDraftFreeTextRichTextBodyScript.php +++ b/src/Types/RichTextDocumentInputBodyScript.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationDraftFreeTextRichTextBodyScript: string +enum RichTextDocumentInputBodyScript: string { case Normal = "normal"; case Sub = "sub"; diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItem.php b/src/Types/RichTextDocumentInputParagraphsItem.php similarity index 63% rename from src/Types/AnnotationFreeTextRichTextParagraphsItem.php rename to src/Types/RichTextDocumentInputParagraphsItem.php index 64c02e45..57bceb6b 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItem.php +++ b/src/Types/RichTextDocumentInputParagraphsItem.php @@ -6,16 +6,16 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class AnnotationFreeTextRichTextParagraphsItem extends JsonSerializableType +class RichTextDocumentInputParagraphsItem extends JsonSerializableType { /** - * @var ?value-of $align + * @var ?value-of $align */ #[JsonProperty('align')] public ?string $align; /** - * @var ?value-of $dir + * @var ?value-of $dir */ #[JsonProperty('dir')] public ?string $dir; @@ -27,10 +27,10 @@ class AnnotationFreeTextRichTextParagraphsItem extends JsonSerializableType public ?float $lineHeight; /** - * @var ?AnnotationFreeTextRichTextParagraphsItemMargins $margins + * @var ?RichTextDocumentInputParagraphsItemMargins $margins */ #[JsonProperty('margins')] - public ?AnnotationFreeTextRichTextParagraphsItemMargins $margins; + public ?RichTextDocumentInputParagraphsItemMargins $margins; /** * @var ?float $textIndent @@ -45,18 +45,18 @@ class AnnotationFreeTextRichTextParagraphsItem extends JsonSerializableType public ?string $unknown; /** - * @var array $runs + * @var array $runs */ - #[JsonProperty('runs'), ArrayType([AnnotationFreeTextRichTextParagraphsItemRunsItem::class])] + #[JsonProperty('runs'), ArrayType([RichTextDocumentInputParagraphsItemRunsItem::class])] public array $runs; /** * @param array{ - * runs: array, - * align?: ?value-of, - * dir?: ?value-of, + * runs: array, + * align?: ?value-of, + * dir?: ?value-of, * lineHeight?: ?float, - * margins?: ?AnnotationFreeTextRichTextParagraphsItemMargins, + * margins?: ?RichTextDocumentInputParagraphsItemMargins, * textIndent?: ?float, * unknown?: ?string, * } $values diff --git a/src/Types/AnnotationPatchFreeTextRichTextBodyAlign.php b/src/Types/RichTextDocumentInputParagraphsItemAlign.php similarity index 73% rename from src/Types/AnnotationPatchFreeTextRichTextBodyAlign.php rename to src/Types/RichTextDocumentInputParagraphsItemAlign.php index 3b991dd0..70404735 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextBodyAlign.php +++ b/src/Types/RichTextDocumentInputParagraphsItemAlign.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationPatchFreeTextRichTextBodyAlign: string +enum RichTextDocumentInputParagraphsItemAlign: string { case Left = "left"; case Center = "center"; diff --git a/src/Types/AnnotationPatchFreeTextRichTextBodyDir.php b/src/Types/RichTextDocumentInputParagraphsItemDir.php similarity index 61% rename from src/Types/AnnotationPatchFreeTextRichTextBodyDir.php rename to src/Types/RichTextDocumentInputParagraphsItemDir.php index 54d48966..3578743c 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextBodyDir.php +++ b/src/Types/RichTextDocumentInputParagraphsItemDir.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationPatchFreeTextRichTextBodyDir: string +enum RichTextDocumentInputParagraphsItemDir: string { case Ltr = "ltr"; case Rtl = "rtl"; diff --git a/src/Types/AnnotationDraftFreeTextRichTextBodyMargins.php b/src/Types/RichTextDocumentInputParagraphsItemMargins.php similarity index 94% rename from src/Types/AnnotationDraftFreeTextRichTextBodyMargins.php rename to src/Types/RichTextDocumentInputParagraphsItemMargins.php index 4dca1374..82448a27 100644 --- a/src/Types/AnnotationDraftFreeTextRichTextBodyMargins.php +++ b/src/Types/RichTextDocumentInputParagraphsItemMargins.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class AnnotationDraftFreeTextRichTextBodyMargins extends JsonSerializableType +class RichTextDocumentInputParagraphsItemMargins extends JsonSerializableType { /** * @var float $top diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItem.php b/src/Types/RichTextDocumentInputParagraphsItemRunsItem.php similarity index 67% rename from src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItem.php rename to src/Types/RichTextDocumentInputParagraphsItemRunsItem.php index d0de50b3..23c67135 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItem.php +++ b/src/Types/RichTextDocumentInputParagraphsItemRunsItem.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class AnnotationFreeTextRichTextParagraphsItemRunsItem extends JsonSerializableType +class RichTextDocumentInputParagraphsItemRunsItem extends JsonSerializableType { /** * @var string $text @@ -14,15 +14,15 @@ class AnnotationFreeTextRichTextParagraphsItemRunsItem extends JsonSerializableT public string $text; /** - * @var ?AnnotationFreeTextRichTextParagraphsItemRunsItemStyle $style + * @var ?RichTextDocumentInputParagraphsItemRunsItemStyle $style */ #[JsonProperty('style')] - public ?AnnotationFreeTextRichTextParagraphsItemRunsItemStyle $style; + public ?RichTextDocumentInputParagraphsItemRunsItemStyle $style; /** * @param array{ * text: string, - * style?: ?AnnotationFreeTextRichTextParagraphsItemRunsItemStyle, + * style?: ?RichTextDocumentInputParagraphsItemRunsItemStyle, * } $values */ public function __construct( diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyle.php b/src/Types/RichTextDocumentInputParagraphsItemRunsItemStyle.php similarity index 81% rename from src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyle.php rename to src/Types/RichTextDocumentInputParagraphsItemRunsItemStyle.php index cc2f9883..9e9b8303 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyle.php +++ b/src/Types/RichTextDocumentInputParagraphsItemRunsItemStyle.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class AnnotationFreeTextRichTextParagraphsItemRunsItemStyle extends JsonSerializableType +class RichTextDocumentInputParagraphsItemRunsItemStyle extends JsonSerializableType { /** * @var ?string $family @@ -39,13 +39,13 @@ class AnnotationFreeTextRichTextParagraphsItemRunsItemStyle extends JsonSerializ public ?string $color; /** - * @var ?array> $decoration + * @var ?array> $decoration */ #[JsonProperty('decoration'), ArrayType(['string'])] public ?array $decoration; /** - * @var ?value-of $script + * @var ?value-of $script */ #[JsonProperty('script')] public ?string $script; @@ -75,8 +75,8 @@ class AnnotationFreeTextRichTextParagraphsItemRunsItemStyle extends JsonSerializ * italic?: ?bool, * size?: ?float, * color?: ?string, - * decoration?: ?array>, - * script?: ?value-of, + * decoration?: ?array>, + * script?: ?value-of, * letterSpacing?: ?float, * horizontalScale?: ?float, * unknown?: ?string, diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php b/src/Types/RichTextDocumentInputParagraphsItemRunsItemStyleDecorationItem.php similarity index 62% rename from src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php rename to src/Types/RichTextDocumentInputParagraphsItemRunsItemStyleDecorationItem.php index 42abe24b..3e3c4f5b 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem.php +++ b/src/Types/RichTextDocumentInputParagraphsItemRunsItemStyleDecorationItem.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem: string +enum RichTextDocumentInputParagraphsItemRunsItemStyleDecorationItem: string { case Underline = "underline"; case LineThrough = "line-through"; diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyleScript.php b/src/Types/RichTextDocumentInputParagraphsItemRunsItemStyleScript.php similarity index 60% rename from src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyleScript.php rename to src/Types/RichTextDocumentInputParagraphsItemRunsItemStyleScript.php index 2791ee2d..961de2d2 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItemRunsItemStyleScript.php +++ b/src/Types/RichTextDocumentInputParagraphsItemRunsItemStyleScript.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextParagraphsItemRunsItemStyleScript: string +enum RichTextDocumentInputParagraphsItemRunsItemStyleScript: string { case Normal = "normal"; case Sub = "sub"; diff --git a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItem.php b/src/Types/RichTextDocumentParagraphsItem.php similarity index 61% rename from src/Types/AnnotationPatchFreeTextRichTextParagraphsItem.php rename to src/Types/RichTextDocumentParagraphsItem.php index b1929e39..b675e685 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItem.php +++ b/src/Types/RichTextDocumentParagraphsItem.php @@ -6,16 +6,16 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class AnnotationPatchFreeTextRichTextParagraphsItem extends JsonSerializableType +class RichTextDocumentParagraphsItem extends JsonSerializableType { /** - * @var ?value-of $align + * @var ?value-of $align */ #[JsonProperty('align')] public ?string $align; /** - * @var ?value-of $dir + * @var ?value-of $dir */ #[JsonProperty('dir')] public ?string $dir; @@ -27,10 +27,10 @@ class AnnotationPatchFreeTextRichTextParagraphsItem extends JsonSerializableType public ?float $lineHeight; /** - * @var ?AnnotationPatchFreeTextRichTextParagraphsItemMargins $margins + * @var ?RichTextDocumentParagraphsItemMargins $margins */ #[JsonProperty('margins')] - public ?AnnotationPatchFreeTextRichTextParagraphsItemMargins $margins; + public ?RichTextDocumentParagraphsItemMargins $margins; /** * @var ?float $textIndent @@ -45,18 +45,18 @@ class AnnotationPatchFreeTextRichTextParagraphsItem extends JsonSerializableType public ?string $unknown; /** - * @var array $runs + * @var array $runs */ - #[JsonProperty('runs'), ArrayType([AnnotationPatchFreeTextRichTextParagraphsItemRunsItem::class])] + #[JsonProperty('runs'), ArrayType([RichTextDocumentParagraphsItemRunsItem::class])] public array $runs; /** * @param array{ - * runs: array, - * align?: ?value-of, - * dir?: ?value-of, + * runs: array, + * align?: ?value-of, + * dir?: ?value-of, * lineHeight?: ?float, - * margins?: ?AnnotationPatchFreeTextRichTextParagraphsItemMargins, + * margins?: ?RichTextDocumentParagraphsItemMargins, * textIndent?: ?float, * unknown?: ?string, * } $values diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItemAlign.php b/src/Types/RichTextDocumentParagraphsItemAlign.php similarity index 71% rename from src/Types/AnnotationFreeTextRichTextParagraphsItemAlign.php rename to src/Types/RichTextDocumentParagraphsItemAlign.php index c2cd0f5c..fa7b91e8 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItemAlign.php +++ b/src/Types/RichTextDocumentParagraphsItemAlign.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextParagraphsItemAlign: string +enum RichTextDocumentParagraphsItemAlign: string { case Left = "left"; case Center = "center"; diff --git a/src/Types/AnnotationFreeTextRichTextParagraphsItemDir.php b/src/Types/RichTextDocumentParagraphsItemDir.php similarity index 58% rename from src/Types/AnnotationFreeTextRichTextParagraphsItemDir.php rename to src/Types/RichTextDocumentParagraphsItemDir.php index 88bf9374..1ade64a4 100644 --- a/src/Types/AnnotationFreeTextRichTextParagraphsItemDir.php +++ b/src/Types/RichTextDocumentParagraphsItemDir.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationFreeTextRichTextParagraphsItemDir: string +enum RichTextDocumentParagraphsItemDir: string { case Ltr = "ltr"; case Rtl = "rtl"; diff --git a/src/Types/AnnotationFreeTextRichTextBodyMargins.php b/src/Types/RichTextDocumentParagraphsItemMargins.php similarity index 94% rename from src/Types/AnnotationFreeTextRichTextBodyMargins.php rename to src/Types/RichTextDocumentParagraphsItemMargins.php index dc90ce69..a63af745 100644 --- a/src/Types/AnnotationFreeTextRichTextBodyMargins.php +++ b/src/Types/RichTextDocumentParagraphsItemMargins.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class AnnotationFreeTextRichTextBodyMargins extends JsonSerializableType +class RichTextDocumentParagraphsItemMargins extends JsonSerializableType { /** * @var float $top diff --git a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItem.php b/src/Types/RichTextDocumentParagraphsItemRunsItem.php similarity index 65% rename from src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItem.php rename to src/Types/RichTextDocumentParagraphsItemRunsItem.php index 346d9c07..3e602305 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItem.php +++ b/src/Types/RichTextDocumentParagraphsItemRunsItem.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class AnnotationPatchFreeTextRichTextParagraphsItemRunsItem extends JsonSerializableType +class RichTextDocumentParagraphsItemRunsItem extends JsonSerializableType { /** * @var string $text @@ -14,15 +14,15 @@ class AnnotationPatchFreeTextRichTextParagraphsItemRunsItem extends JsonSerializ public string $text; /** - * @var ?AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle $style + * @var ?RichTextDocumentParagraphsItemRunsItemStyle $style */ #[JsonProperty('style')] - public ?AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle $style; + public ?RichTextDocumentParagraphsItemRunsItemStyle $style; /** * @param array{ * text: string, - * style?: ?AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle, + * style?: ?RichTextDocumentParagraphsItemRunsItemStyle, * } $values */ public function __construct( diff --git a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle.php b/src/Types/RichTextDocumentParagraphsItemRunsItemStyle.php similarity index 81% rename from src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle.php rename to src/Types/RichTextDocumentParagraphsItemRunsItemStyle.php index f0594e3e..9f965f9c 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle.php +++ b/src/Types/RichTextDocumentParagraphsItemRunsItemStyle.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle extends JsonSerializableType +class RichTextDocumentParagraphsItemRunsItemStyle extends JsonSerializableType { /** * @var ?string $family @@ -39,13 +39,13 @@ class AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle extends JsonSer public ?string $color; /** - * @var ?array> $decoration + * @var ?array> $decoration */ #[JsonProperty('decoration'), ArrayType(['string'])] public ?array $decoration; /** - * @var ?value-of $script + * @var ?value-of $script */ #[JsonProperty('script')] public ?string $script; @@ -75,8 +75,8 @@ class AnnotationPatchFreeTextRichTextParagraphsItemRunsItemStyle extends JsonSer * italic?: ?bool, * size?: ?float, * color?: ?string, - * decoration?: ?array>, - * script?: ?value-of, + * decoration?: ?array>, + * script?: ?value-of, * letterSpacing?: ?float, * horizontalScale?: ?float, * unknown?: ?string, diff --git a/src/Types/AnnotationDraftFreeTextRichTextBodyDecorationItem.php b/src/Types/RichTextDocumentParagraphsItemRunsItemStyleDecorationItem.php similarity index 65% rename from src/Types/AnnotationDraftFreeTextRichTextBodyDecorationItem.php rename to src/Types/RichTextDocumentParagraphsItemRunsItemStyleDecorationItem.php index bb64fcdc..4b341c1a 100644 --- a/src/Types/AnnotationDraftFreeTextRichTextBodyDecorationItem.php +++ b/src/Types/RichTextDocumentParagraphsItemRunsItemStyleDecorationItem.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationDraftFreeTextRichTextBodyDecorationItem: string +enum RichTextDocumentParagraphsItemRunsItemStyleDecorationItem: string { case Underline = "underline"; case LineThrough = "line-through"; diff --git a/src/Types/AnnotationPatchFreeTextRichTextBodyScript.php b/src/Types/RichTextDocumentParagraphsItemRunsItemStyleScript.php similarity index 64% rename from src/Types/AnnotationPatchFreeTextRichTextBodyScript.php rename to src/Types/RichTextDocumentParagraphsItemRunsItemStyleScript.php index 49a5ac1d..cf31ca9b 100644 --- a/src/Types/AnnotationPatchFreeTextRichTextBodyScript.php +++ b/src/Types/RichTextDocumentParagraphsItemRunsItemStyleScript.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum AnnotationPatchFreeTextRichTextBodyScript: string +enum RichTextDocumentParagraphsItemRunsItemStyleScript: string { case Normal = "normal"; case Sub = "sub";