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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"generatorConfig": {
"moduleName": "CloudPDF"
},
"originGitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83",
"originGitCommit": "7b7201308398662b3f0b9fdb47aca99f653b01b5",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.4.0",
"requestedVersion": "3.5.0",
"ciProvider": "github"
}
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"language": "ruby",
"canonicalVersion": "3.4.0",
"sdkVersion": "3.4.0",
"canonicalVersion": "3.5.0",
"sdkVersion": "3.5.0",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "1416853fd5400e76cd33ffd218e90673faf6c8c8c50f86af1937ba6576efb27d",
"gitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83",
"openapiSha256": "6d3ad28f2a9e47e0e98945a6f8111bbc271a12e95ce8ac5f5eadbda260ad0d0e",
"gitCommit": "7b7201308398662b3f0b9fdb47aca99f653b01b5",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
2 changes: 1 addition & 1 deletion lib/CloudPDF/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(token:, base_url: nil, max_retries: 2)
headers: {
"X-Fern-Language" => "Ruby",
Authorization: "Bearer #{token}",
"EmbedPDF-Version" => "3.4"
"EmbedPDF-Version" => "3.5"
},
max_retries: max_retries
)
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_widget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class AnnotationDraftWidget < Internal::Types::Model

field :check_style, -> { CloudPDF::Types::AnnotationDraftWidgetCheckStyle }, optional: true, nullable: false, api_name: "checkStyle"

field :layout, -> { CloudPDF::Types::AnnotationDraftWidgetLayout }, optional: true, nullable: false

field :field, -> { Object }, optional: true, nullable: false

field :field_kind, -> { Object }, optional: true, nullable: false, api_name: "fieldKind"
Expand Down
17 changes: 17 additions & 0 deletions lib/CloudPDF/types/annotation_draft_widget_layout.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

module CloudPDF
module Types
module AnnotationDraftWidgetLayout
extend CloudPDF::Internal::Types::Enum

CAPTION = "caption"
IMAGE = "image"
CAPTION_BELOW = "caption-below"
CAPTION_ABOVE = "caption-above"
CAPTION_RIGHT = "caption-right"
CAPTION_LEFT = "caption-left"
CAPTION_OVER = "caption-over"
end
end
end
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/change_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class ChangeItem < Internal::Types::Model

member -> { CloudPDF::Types::ChangeItemFormsCopy }, key: "FORMS_COPY"

member -> { CloudPDF::Types::ChangeItemFormsRepeat }, key: "FORMS_REPEAT"

member -> { CloudPDF::Types::ChangeItemFormsUpdate }, key: "FORMS_UPDATE"

member -> { CloudPDF::Types::ChangeItemFormsDelete }, key: "FORMS_DELETE"
Expand All @@ -41,6 +43,8 @@ class ChangeItem < Internal::Types::Model

member -> { CloudPDF::Types::ChangeItemFormsSetSignatureAppearance }, key: "FORMS_SET_SIGNATURE_APPEARANCE"

member -> { CloudPDF::Types::ChangeItemFormsSetButtonImage }, key: "FORMS_SET_BUTTON_IMAGE"

member -> { CloudPDF::Types::ChangeItemFormsAddWidget }, key: "FORMS_ADD_WIDGET"

member -> { CloudPDF::Types::ChangeItemFormsRemoveWidget }, key: "FORMS_REMOVE_WIDGET"
Expand Down
21 changes: 21 additions & 0 deletions lib/CloudPDF/types/change_item_forms_repeat.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

module CloudPDF
module Types
class ChangeItemFormsRepeat < Internal::Types::Model
field :undone, -> { Internal::Types::Boolean }, optional: true, nullable: false

field :as, -> { CloudPDF::Types::ChangeItemFormsRepeatAs }, optional: false, nullable: false

field :fields, -> { Internal::Types::Array[CloudPDF::Types::FormField] }, optional: false, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetAnnotation] }, optional: false, nullable: false

field :dropped, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemFormsRepeatDroppedItem] }, optional: false, nullable: false

field :calculation_order, -> { Internal::Types::Array[CloudPDF::Types::FormFieldRef] }, optional: true, nullable: false, api_name: "calculationOrder"

field :meta, -> { CloudPDF::Types::FormMutationMeta }, optional: false, nullable: false
end
end
end
12 changes: 12 additions & 0 deletions lib/CloudPDF/types/change_item_forms_repeat_as.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module CloudPDF
module Types
module ChangeItemFormsRepeatAs
extend CloudPDF::Internal::Types::Enum

BOXES = "boxes"
FIELDS = "fields"
end
end
end
15 changes: 15 additions & 0 deletions lib/CloudPDF/types/change_item_forms_repeat_dropped_item.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module CloudPDF
module Types
class ChangeItemFormsRepeatDroppedItem < Internal::Types::Model
field :ref, -> { CloudPDF::Types::FormFieldRef }, optional: false, nullable: true

field :widget, -> { CloudPDF::Types::AnnotationRef }, optional: true, nullable: false

field :field, -> { String }, optional: true, nullable: false

field :reason, -> { CloudPDF::Types::ChangeItemFormsRepeatDroppedItemReason }, optional: false, nullable: false
end
end
end
15 changes: 15 additions & 0 deletions lib/CloudPDF/types/change_item_forms_repeat_dropped_item_reason.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module CloudPDF
module Types
module ChangeItemFormsRepeatDroppedItemReason
extend CloudPDF::Internal::Types::Enum

NAME_CONFLICT = "name-conflict"
NO_FIELD = "no-field"
UNSUPPORTED_KIND = "unsupported-kind"
SCRIPT_NOT_ALLOWED = "script-not-allowed"
UNSUPPORTED_ACTION = "unsupported-action"
end
end
end
15 changes: 15 additions & 0 deletions lib/CloudPDF/types/change_item_forms_set_button_image.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module CloudPDF
module Types
class ChangeItemFormsSetButtonImage < Internal::Types::Model
field :field, -> { CloudPDF::Types::FormField }, optional: false, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetAnnotation] }, optional: false, nullable: false

field :calculation_order, -> { Internal::Types::Array[CloudPDF::Types::FormFieldRef] }, optional: true, nullable: false, api_name: "calculationOrder"

field :meta, -> { CloudPDF::Types::FormMutationMeta }, optional: false, nullable: false
end
end
end
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/change_item_skipped_op.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module ChangeItemSkippedOp
FORMS_RESET = "forms.reset"
FORMS_CREATE = "forms.create"
FORMS_COPY = "forms.copy"
FORMS_REPEAT = "forms.repeat"
FORMS_UPDATE = "forms.update"
FORMS_DELETE = "forms.delete"
FORMS_ADD_WIDGET = "forms.addWidget"
Expand All @@ -25,6 +26,7 @@ module ChangeItemSkippedOp
FORMS_REORDER_WIDGETS = "forms.reorderWidgets"
FORMS_UPDATE_WIDGET = "forms.updateWidget"
FORMS_SET_SIGNATURE_APPEARANCE = "forms.setSignatureAppearance"
FORMS_SET_BUTTON_IMAGE = "forms.setButtonImage"
METADATA_UPDATE = "metadata.update"
METADATA_UPDATE_CUSTOM = "metadata.updateCustom"
OUTLINE_CREATE = "outline.create"
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/change_op.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class ChangeOp < Internal::Types::Model

member -> { CloudPDF::Types::ChangeOpFormsCopy }, key: "FORMS_COPY"

member -> { CloudPDF::Types::ChangeOpFormsRepeat }, key: "FORMS_REPEAT"

member -> { CloudPDF::Types::ChangeOpFormsUpdate }, key: "FORMS_UPDATE"

member -> { CloudPDF::Types::ChangeOpFormsDelete }, key: "FORMS_DELETE"
Expand All @@ -47,6 +49,8 @@ class ChangeOp < Internal::Types::Model

member -> { CloudPDF::Types::ChangeOpFormsSetSignatureAppearance }, key: "FORMS_SET_SIGNATURE_APPEARANCE"

member -> { CloudPDF::Types::ChangeOpFormsSetButtonImage }, key: "FORMS_SET_BUTTON_IMAGE"

member -> { CloudPDF::Types::ChangeOpMetadataUpdate }, key: "METADATA_UPDATE"

member -> { CloudPDF::Types::ChangeOpMetadataUpdateCustom }, key: "METADATA_UPDATE_CUSTOM"
Expand Down
15 changes: 15 additions & 0 deletions lib/CloudPDF/types/change_op_forms_repeat.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module CloudPDF
module Types
class ChangeOpFormsRepeat < Internal::Types::Model
field :field, -> { CloudPDF::Types::FormFieldRef }, optional: false, nullable: false

field :pages, -> { CloudPDF::Types::ChangeOpFormsRepeatPages }, optional: false, nullable: false

field :as, -> { CloudPDF::Types::ChangeOpFormsRepeatAs }, optional: true, nullable: false

field :object_numbers, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false, api_name: "objectNumbers"
end
end
end
12 changes: 12 additions & 0 deletions lib/CloudPDF/types/change_op_forms_repeat_as.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module CloudPDF
module Types
module ChangeOpFormsRepeatAs
extend CloudPDF::Internal::Types::Enum

BOXES = "boxes"
FIELDS = "fields"
end
end
end
13 changes: 13 additions & 0 deletions lib/CloudPDF/types/change_op_forms_repeat_pages.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module CloudPDF
module Types
class ChangeOpFormsRepeatPages < Internal::Types::Model
extend CloudPDF::Internal::Types::Union

member -> { CloudPDF::Types::ChangeOpFormsRepeatPagesZero }

member -> { Internal::Types::Array[CloudPDF::Types::PageRef] }
end
end
end
11 changes: 11 additions & 0 deletions lib/CloudPDF/types/change_op_forms_repeat_pages_zero.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

module CloudPDF
module Types
module ChangeOpFormsRepeatPagesZero
extend CloudPDF::Internal::Types::Enum

ALL = "all"
end
end
end
11 changes: 11 additions & 0 deletions lib/CloudPDF/types/change_op_forms_set_button_image.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

module CloudPDF
module Types
class ChangeOpFormsSetButtonImage < Internal::Types::Model
field :field, -> { CloudPDF::Types::FormFieldRef }, optional: false, nullable: false

field :resources, -> { CloudPDF::Types::ChangeOpFormsSetButtonImageResources }, optional: false, nullable: false
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module CloudPDF
module Types
class ChangeOpFormsSetButtonImageResources < Internal::Types::Model
field :image, -> { String }, optional: false, nullable: true
end
end
end
17 changes: 17 additions & 0 deletions lib/CloudPDF/types/field_assignment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FieldAssignment < Internal::Types::Model
extend CloudPDF::Internal::Types::Union

discriminant :kind

member -> { CloudPDF::Types::FieldAssignmentGroup }, key: "GROUP"

member -> { CloudPDF::Types::FieldAssignmentAnyone }, key: "ANYONE"

member -> { CloudPDF::Types::FieldAssignmentUnassigned }, key: "UNASSIGNED"
end
end
end
7 changes: 7 additions & 0 deletions lib/CloudPDF/types/field_assignment_anyone.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FieldAssignmentAnyone < Internal::Types::Model; end
end
end
9 changes: 9 additions & 0 deletions lib/CloudPDF/types/field_assignment_group.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FieldAssignmentGroup < Internal::Types::Model
field :group_id, -> { String }, optional: false, nullable: false, api_name: "groupId"
end
end
end
7 changes: 7 additions & 0 deletions lib/CloudPDF/types/field_assignment_unassigned.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FieldAssignmentUnassigned < Internal::Types::Model; end
end
end
11 changes: 11 additions & 0 deletions lib/CloudPDF/types/field_signature_lock.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FieldSignatureLock < Internal::Types::Model
field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex"

field :source, -> { CloudPDF::Types::FieldSignatureLockSource }, optional: false, nullable: false
end
end
end
12 changes: 12 additions & 0 deletions lib/CloudPDF/types/field_signature_lock_source.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module CloudPDF
module Types
module FieldSignatureLockSource
extend CloudPDF::Internal::Types::Enum

FIELDMDP = "fieldmdp"
LOCK = "lock"
end
end
end
8 changes: 8 additions & 0 deletions lib/CloudPDF/types/form_field_checkbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ class FormFieldCheckbox < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :assignment, -> { CloudPDF::Types::FieldAssignment }, optional: false, nullable: false

field :locked_by, -> { CloudPDF::Types::FieldSignatureLock }, optional: false, nullable: true, api_name: "lockedBy"

field :purpose, -> { String }, optional: false, nullable: true

field :placeholder, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand All @@ -46,6 +52,8 @@ class FormFieldCheckbox < Internal::Types::Model
field :checked, -> { Internal::Types::Boolean }, optional: false, nullable: false

field :export_value, -> { String }, optional: false, nullable: false, api_name: "exportValue"

field :has_values_list, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasValuesList"
end
end
end
6 changes: 6 additions & 0 deletions lib/CloudPDF/types/form_field_combobox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ class FormFieldCombobox < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :assignment, -> { CloudPDF::Types::FieldAssignment }, optional: false, nullable: false

field :locked_by, -> { CloudPDF::Types::FieldSignatureLock }, optional: false, nullable: true, api_name: "lockedBy"

field :purpose, -> { String }, optional: false, nullable: true

field :placeholder, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/form_field_draft_checkbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ class FormFieldDraftCheckbox < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :assignment, -> { CloudPDF::Types::FieldAssignment }, optional: true, nullable: false

field :purpose, -> { String }, optional: true, nullable: false

field :placeholder, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand Down
Loading
Loading