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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"homepage": "https://www.cloudpdf.com"
}
},
"originGitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53",
"originGitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.3.0",
"requestedVersion": "3.4.0",
"ciProvider": "github",
"sdkVersion": "3.3.0"
"sdkVersion": "3.4.0"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use CloudPDF\Doc\Requests\DocChangesRequest;
use CloudPDF\Doc\Types\DocChangesRequestChangesItem;

$client = new CloudPDFClient(
embedPdfVersion: '3.3',
embedPdfVersion: '3.4',
token: '<token>',
);
$client->doc->changes(
Expand Down
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"language": "php",
"canonicalVersion": "3.3.0",
"sdkVersion": "3.3.0",
"canonicalVersion": "3.4.0",
"sdkVersion": "3.4.0",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "8d6fda1d157a3f3f82d3a16835381932eaa6efe3054100bb0aa63c0ad5ac6909",
"gitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53",
"openapiSha256": "1416853fd5400e76cd33ffd218e90673faf6c8c8c50f86af1937ba6576efb27d",
"gitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
6 changes: 3 additions & 3 deletions src/CloudPDFClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ public function __construct(
?array $options = null,
) {
$defaultHeaders = [
'EmbedPDF-Version' => '3.3',
'EmbedPDF-Version' => '3.4',
'X-Fern-Language' => 'PHP',
'X-Fern-SDK-Name' => 'CloudPDF',
'X-Fern-SDK-Version' => '3.3.0',
'User-Agent' => 'cloudpdf/sdk/3.3.0',
'X-Fern-SDK-Version' => '3.4.0',
'User-Agent' => 'cloudpdf/sdk/3.4.0',
];
if ($token != null) {
$defaultHeaders['Authorization'] = "Bearer $token";
Expand Down
10 changes: 5 additions & 5 deletions src/Types/ChangeOpFormsSetSignatureAppearanceResources.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
class ChangeOpFormsSetSignatureAppearanceResources extends JsonSerializableType
{
/**
* @var string $appearance
* @var ?string $appearance
*/
#[JsonProperty('appearance')]
public string $appearance;
public ?string $appearance;

/**
* @param array{
* appearance: string,
* appearance?: ?string,
* } $values
*/
public function __construct(
array $values,
array $values = [],
) {
$this->appearance = $values['appearance'];
$this->appearance = $values['appearance'] ?? null;
}

/**
Expand Down
8 changes: 8 additions & 0 deletions src/Types/FormFieldCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class FormFieldCheckbox extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?string $createdBy
*/
Expand Down Expand Up @@ -153,6 +159,7 @@ class FormFieldCheckbox extends JsonSerializableType
* mappingName?: ?string,
* actions?: ?PdfFieldActions,
* groupId?: ?string,
* purpose?: ?string,
* createdBy?: ?string,
* createdAt?: ?DateTime,
* filledBy?: ?string,
Expand All @@ -176,6 +183,7 @@ public function __construct(
$this->defaultValueEntry = $values['defaultValueEntry'];
$this->actions = $values['actions'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->createdBy = $values['createdBy'] ?? null;
$this->createdAt = $values['createdAt'] ?? null;
$this->filledBy = $values['filledBy'] ?? null;
Expand Down
16 changes: 16 additions & 0 deletions src/Types/FormFieldCombobox.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class FormFieldCombobox extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?string $createdBy
*/
Expand Down Expand Up @@ -148,6 +154,12 @@ class FormFieldCombobox extends JsonSerializableType
#[JsonProperty('options'), ArrayType([FormFieldComboboxOptionsItem::class])]
public array $options;

/**
* @var ?FormFieldFormat $format The shape a text field's or a dropdown's value has, by its `kind`: a date or a time with the pattern it is shown in, or `other` for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as `other`.
*/
#[JsonProperty('format')]
public ?FormFieldFormat $format;

/**
* @param array{
* ref: FormFieldRef,
Expand All @@ -167,12 +179,14 @@ class FormFieldCombobox extends JsonSerializableType
* mappingName?: ?string,
* actions?: ?PdfFieldActions,
* groupId?: ?string,
* purpose?: ?string,
* createdBy?: ?string,
* createdAt?: ?DateTime,
* filledBy?: ?string,
* filledByName?: ?string,
* filledAt?: ?DateTime,
* importedBy?: ?string,
* format?: ?FormFieldFormat,
* } $values
*/
public function __construct(
Expand All @@ -190,6 +204,7 @@ public function __construct(
$this->defaultValueEntry = $values['defaultValueEntry'];
$this->actions = $values['actions'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->createdBy = $values['createdBy'] ?? null;
$this->createdAt = $values['createdAt'] ?? null;
$this->filledBy = $values['filledBy'] ?? null;
Expand All @@ -201,6 +216,7 @@ public function __construct(
$this->defaultValue = $values['defaultValue'];
$this->edit = $values['edit'];
$this->options = $values['options'];
$this->format = $values['format'] ?? null;
}

/**
Expand Down
8 changes: 8 additions & 0 deletions src/Types/FormFieldDraftCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class FormFieldDraftCheckbox extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?FieldActionsPatch $actions
*/
Expand All @@ -71,6 +77,7 @@ class FormFieldDraftCheckbox extends JsonSerializableType
* alternateName?: ?string,
* mappingName?: ?string,
* groupId?: ?string,
* purpose?: ?string,
* actions?: ?FieldActionsPatch,
* widgets?: ?array<WidgetPlacement>,
* } $values
Expand All @@ -85,6 +92,7 @@ public function __construct(
$this->alternateName = $values['alternateName'] ?? null;
$this->mappingName = $values['mappingName'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->actions = $values['actions'] ?? null;
$this->widgets = $values['widgets'] ?? null;
}
Expand Down
16 changes: 16 additions & 0 deletions src/Types/FormFieldDraftCombobox.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class FormFieldDraftCombobox extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?FieldActionsPatch $actions
*/
Expand Down Expand Up @@ -80,6 +86,12 @@ class FormFieldDraftCombobox extends JsonSerializableType
#[JsonProperty('defaultValue')]
public ?string $defaultValue;

/**
* @var ?FormFieldFormatWritable $format
*/
#[JsonProperty('format')]
public ?FormFieldFormatWritable $format;

/**
* @param array{
* name: string,
Expand All @@ -89,11 +101,13 @@ class FormFieldDraftCombobox extends JsonSerializableType
* alternateName?: ?string,
* mappingName?: ?string,
* groupId?: ?string,
* purpose?: ?string,
* actions?: ?FieldActionsPatch,
* widgets?: ?array<WidgetPlacement>,
* edit?: ?bool,
* options?: ?array<FormFieldDraftComboboxOptionsItem>,
* defaultValue?: ?string,
* format?: ?FormFieldFormatWritable,
* } $values
*/
public function __construct(
Expand All @@ -106,11 +120,13 @@ public function __construct(
$this->alternateName = $values['alternateName'] ?? null;
$this->mappingName = $values['mappingName'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->actions = $values['actions'] ?? null;
$this->widgets = $values['widgets'] ?? null;
$this->edit = $values['edit'] ?? null;
$this->options = $values['options'] ?? null;
$this->defaultValue = $values['defaultValue'] ?? null;
$this->format = $values['format'] ?? null;
}

/**
Expand Down
8 changes: 8 additions & 0 deletions src/Types/FormFieldDraftListbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class FormFieldDraftListbox extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?FieldActionsPatch $actions
*/
Expand Down Expand Up @@ -89,6 +95,7 @@ class FormFieldDraftListbox extends JsonSerializableType
* alternateName?: ?string,
* mappingName?: ?string,
* groupId?: ?string,
* purpose?: ?string,
* actions?: ?FieldActionsPatch,
* widgets?: ?array<WidgetPlacement>,
* multiSelect?: ?bool,
Expand All @@ -106,6 +113,7 @@ public function __construct(
$this->alternateName = $values['alternateName'] ?? null;
$this->mappingName = $values['mappingName'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->actions = $values['actions'] ?? null;
$this->widgets = $values['widgets'] ?? null;
$this->multiSelect = $values['multiSelect'] ?? null;
Expand Down
8 changes: 8 additions & 0 deletions src/Types/FormFieldDraftPushbutton.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class FormFieldDraftPushbutton extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?FieldActionsPatch $actions
*/
Expand All @@ -71,6 +77,7 @@ class FormFieldDraftPushbutton extends JsonSerializableType
* alternateName?: ?string,
* mappingName?: ?string,
* groupId?: ?string,
* purpose?: ?string,
* actions?: ?FieldActionsPatch,
* widgets?: ?array<WidgetPlacement>,
* } $values
Expand All @@ -85,6 +92,7 @@ public function __construct(
$this->alternateName = $values['alternateName'] ?? null;
$this->mappingName = $values['mappingName'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->actions = $values['actions'] ?? null;
$this->widgets = $values['widgets'] ?? null;
}
Expand Down
8 changes: 8 additions & 0 deletions src/Types/FormFieldDraftRadio.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class FormFieldDraftRadio extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?FieldActionsPatch $actions
*/
Expand Down Expand Up @@ -83,6 +89,7 @@ class FormFieldDraftRadio extends JsonSerializableType
* alternateName?: ?string,
* mappingName?: ?string,
* groupId?: ?string,
* purpose?: ?string,
* actions?: ?FieldActionsPatch,
* widgets?: ?array<WidgetPlacement>,
* radiosInUnison?: ?bool,
Expand All @@ -99,6 +106,7 @@ public function __construct(
$this->alternateName = $values['alternateName'] ?? null;
$this->mappingName = $values['mappingName'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->actions = $values['actions'] ?? null;
$this->widgets = $values['widgets'] ?? null;
$this->radiosInUnison = $values['radiosInUnison'] ?? null;
Expand Down
8 changes: 8 additions & 0 deletions src/Types/FormFieldDraftSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class FormFieldDraftSignature extends JsonSerializableType
#[JsonProperty('groupId')]
public ?string $groupId;

/**
* @var ?string $purpose
*/
#[JsonProperty('purpose')]
public ?string $purpose;

/**
* @var ?FieldActionsPatch $actions
*/
Expand All @@ -71,6 +77,7 @@ class FormFieldDraftSignature extends JsonSerializableType
* alternateName?: ?string,
* mappingName?: ?string,
* groupId?: ?string,
* purpose?: ?string,
* actions?: ?FieldActionsPatch,
* widgets?: ?array<WidgetPlacement>,
* } $values
Expand All @@ -85,6 +92,7 @@ public function __construct(
$this->alternateName = $values['alternateName'] ?? null;
$this->mappingName = $values['mappingName'] ?? null;
$this->groupId = $values['groupId'] ?? null;
$this->purpose = $values['purpose'] ?? null;
$this->actions = $values['actions'] ?? null;
$this->widgets = $values['widgets'] ?? null;
}
Expand Down
Loading
Loading