diff --git a/.fern/metadata.json b/.fern/metadata.json index 3ce53867..7769dff6 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -5,9 +5,9 @@ "generatorConfig": { "moduleName": "CloudPDF" }, - "originGitCommit": "0606e988ebff3773183ef02e0a820c36b3a25f8d", + "originGitCommit": "622018abaf6e4578d1f4d8377982c48b92c9ced3", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0.alpha.19", + "requestedVersion": "3.0.0.alpha.20", "ciProvider": "github" } \ No newline at end of file diff --git a/README.md b/README.md index 1f320b6e..038f2195 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,15 @@ client.doc.changes( ## Environments -This SDK allows you to configure different custom URLs for API requests. You can specify your own custom URL. +This SDK allows you to configure different environments or custom URLs for API requests. You can either use the predefined environments or specify your own custom URL. +### Environments +```ruby +require "cloudpdf" + +CloudPDF = CloudPDF::Client.new( + base_url: CloudPDF::Environment::SAAS +) +``` ### Custom URL ```ruby diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index d72d5738..499a669c 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "ruby", - "canonicalVersion": "3.0.0-next.19", - "sdkVersion": "3.0.0.alpha.19", + "canonicalVersion": "3.0.0-next.20", + "sdkVersion": "3.0.0.alpha.20", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "e88e02ed71f422ad08b2393abeda474e8dcf6707b6e753af74ba2f40da8e7d6b", - "gitCommit": "0606e988ebff3773183ef02e0a820c36b3a25f8d", + "openapiSha256": "47d739acb956ce8ba0c3990117e505be2e9406038d9e0cd1729608921a40b2d9", + "gitCommit": "622018abaf6e4578d1f4d8377982c48b92c9ced3", "gitCommitIsDirty": false }, "fern": { diff --git a/lib/CloudPDF/client.rb b/lib/CloudPDF/client.rb index ef1ae2f6..dbea3c80 100644 --- a/lib/CloudPDF/client.rb +++ b/lib/CloudPDF/client.rb @@ -9,7 +9,7 @@ class Client # @return [void] def initialize(token:, base_url: nil, max_retries: 2) @raw_client = CloudPDF::Internal::Http::RawClient.new( - base_url: base_url, + base_url: base_url || CloudPDF::Environment::SAAS, headers: { "X-Fern-Language" => "Ruby", Authorization: "Bearer #{token}" diff --git a/lib/CloudPDF/doc/client.rb b/lib/CloudPDF/doc/client.rb index b8f3daac..eef2a4a1 100644 --- a/lib/CloudPDF/doc/client.rb +++ b/lib/CloudPDF/doc/client.rb @@ -359,6 +359,11 @@ def attachments @attachments ||= CloudPDF::Doc::Attachments::Client.new(client: @client) end + # @return [CloudPDF::Fonts::Client] + def fonts + @fonts ||= CloudPDF::Doc::Fonts::Client.new(client: @client) + end + # @return [CloudPDF::Forms::Client] def forms @forms ||= CloudPDF::Doc::Forms::Client.new(client: @client) diff --git a/lib/CloudPDF/doc/fonts/client.rb b/lib/CloudPDF/doc/fonts/client.rb new file mode 100644 index 00000000..a7f0fb9e --- /dev/null +++ b/lib/CloudPDF/doc/fonts/client.rb @@ -0,0 +1,116 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Fonts + class Client + # @param client [CloudPDF::Internal::Http::RawClient] + # + # @return [void] + def initialize(client:) + @client = client + end + + # @param request_options [Hash] + # @param params [Hash] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # @option params [String] :doc_id + # @option params [String] :layer_name + # @option params [String, nil] :document_password + # + # @example + # client.doc.fonts.list( + # doc_id: "docId", + # layer_name: "layerName" + # ) + # + # @return [CloudPDF::Types::FontList] + def list(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + headers = {} + headers["X-Document-Password"] = params[:document_password] if params[:document_password] + + request = CloudPDF::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "GET", + path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/fonts", + headers: headers, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise CloudPDF::Errors::TimeoutError + end + code = response.code.to_i + if code.between?(200, 299) + (response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsList200Response.load(response.body)) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + + # @param request_options [Hash] + # @param params [CloudPDF::Types::DocFontsResolveRequest] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # @option params [String] :doc_id + # @option params [String] :layer_name + # @option params [String, nil] :document_password + # + # @example + # client.doc.fonts.resolve( + # doc_id: "docId", + # layer_name: "layerName", + # runs: [{ + # text: "text" + # }] + # ) + # + # @return [CloudPDF::Types::FontResolution] + def resolve(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + path_param_names = %i[doc_id layer_name] + body_params = params.except(*path_param_names) + + headers = {} + headers["X-Document-Password"] = params[:document_password] if params[:document_password] + + request = CloudPDF::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "POST", + path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/fonts/resolve", + headers: headers, + body: CloudPDF::Types::FontResolveRequest.new(body_params).to_h, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise CloudPDF::Errors::TimeoutError + end + code = response.code.to_i + if code.between?(200, 299) + (response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsResolve200Response.load(response.body)) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + + # @return [CloudPDF::Programs::Client] + def programs + @programs ||= CloudPDF::Doc::Fonts::Programs::Client.new(client: @client) + end + end + end + end +end diff --git a/lib/CloudPDF/doc/fonts/programs/client.rb b/lib/CloudPDF/doc/fonts/programs/client.rb new file mode 100644 index 00000000..9f8d874d --- /dev/null +++ b/lib/CloudPDF/doc/fonts/programs/client.rb @@ -0,0 +1,111 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Fonts + module Programs + class Client + # @param client [CloudPDF::Internal::Http::RawClient] + # + # @return [void] + def initialize(client:) + @client = client + end + + # A document token needs any one of the listed capabilities: one that may write text in the document. A file + # the list says can't be downloaded (`canDownload: false`) is not found. + # + # @param request_options [Hash] + # @param params [Hash] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # @option params [String] :doc_id + # @option params [String] :layer_name + # @option params [String] :display_hash + # @option params [String, nil] :document_password + # + # @example + # client.doc.fonts.programs.download( + # doc_id: "docId", + # layer_name: "layerName", + # display_hash: "displayHash" + # ) + # + # @return [untyped] + def download(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + headers = {} + headers["X-Document-Password"] = params[:document_password] if params[:document_password] + + request = CloudPDF::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "GET", + path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/font-program-files/#{URI.encode_uri_component(params[:display_hash].to_s)}", + headers: headers, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise CloudPDF::Errors::TimeoutError + end + code = response.code.to_i + return if code.between?(200, 299) + + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + + # @param request_options [Hash] + # @param params [Hash] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # @option params [String] :doc_id + # @option params [String] :layer_name + # @option params [String] :display_hash + # @option params [String, nil] :document_password + # + # @example + # client.doc.fonts.programs.get( + # doc_id: "docId", + # layer_name: "layerName", + # display_hash: "displayHash" + # ) + # + # @return [CloudPDF::Types::FontProgramInfo] + def get(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + headers = {} + headers["X-Document-Password"] = params[:document_password] if params[:document_password] + + request = CloudPDF::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "GET", + path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/font-programs/#{URI.encode_uri_component(params[:display_hash].to_s)}", + headers: headers, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise CloudPDF::Errors::TimeoutError + end + code = response.code.to_i + if code.between?(200, 299) + (response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsProgramsGet200Response.load(response.body)) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + end + end + end + end +end diff --git a/lib/CloudPDF/doc/fonts/programs/types/download_programs_request.rb b/lib/CloudPDF/doc/fonts/programs/types/download_programs_request.rb new file mode 100644 index 00000000..2c450b4e --- /dev/null +++ b/lib/CloudPDF/doc/fonts/programs/types/download_programs_request.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Fonts + module Programs + module Types + class DownloadProgramsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName" + + field :display_hash, -> { String }, optional: false, nullable: false, api_name: "displayHash" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end + end +end diff --git a/lib/CloudPDF/doc/fonts/programs/types/get_programs_request.rb b/lib/CloudPDF/doc/fonts/programs/types/get_programs_request.rb new file mode 100644 index 00000000..18a29486 --- /dev/null +++ b/lib/CloudPDF/doc/fonts/programs/types/get_programs_request.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Fonts + module Programs + module Types + class GetProgramsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName" + + field :display_hash, -> { String }, optional: false, nullable: false, api_name: "displayHash" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end + end +end diff --git a/lib/CloudPDF/doc/fonts/types/list_fonts_request.rb b/lib/CloudPDF/doc/fonts/types/list_fonts_request.rb new file mode 100644 index 00000000..4e8c2d75 --- /dev/null +++ b/lib/CloudPDF/doc/fonts/types/list_fonts_request.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Fonts + module Types + class ListFontsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/fonts/types/resolve_fonts_request.rb b/lib/CloudPDF/doc/fonts/types/resolve_fonts_request.rb new file mode 100644 index 00000000..d158bdbd --- /dev/null +++ b/lib/CloudPDF/doc/fonts/types/resolve_fonts_request.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Fonts + module Types + class ResolveFontsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + + field :body, -> { CloudPDF::Types::FontResolveRequest }, optional: false, nullable: false + end + end + end + end +end diff --git a/lib/CloudPDF/documents/client.rb b/lib/CloudPDF/documents/client.rb index 34e1773c..d904d9ff 100644 --- a/lib/CloudPDF/documents/client.rb +++ b/lib/CloudPDF/documents/client.rb @@ -185,6 +185,8 @@ def update(request_options: {}, **params) end end + # An upload token commits only the documents it started; any other document answers 404. + # # @param request_options [Hash] # @param params [CloudPDF::Documents::Types::DocumentsCommitRequest] # @option request_options [String] :base_url @@ -305,7 +307,8 @@ def thumbnail(request_options: {}, **params) end # This bounded origin-mediated fallback must only be used after documents.init returns upload.kind=proxy. Auto - # mode prefers a presigned object-store PUT whenever available. + # mode prefers a presigned object-store PUT whenever available. An upload token sends files only to the documents + # it started. # # @param request_options [Hash] # @param params [void] @@ -404,6 +407,11 @@ def import_from(request_options: {}, **params) end end + # With an upload token, the document goes into the token's folder with the token's metadata, whatever the request + # says; contentLength must be within the token's maxBytes, and the token makes at most maxFiles documents (403 + # after). docId, idempotencyKey and dedupMode reuse-existing are refused (400): each could reach a document the + # token didn't make. + # # @param request_options [Hash] # @param params [CloudPDF::Documents::Types::DocumentsInitRequest] # @option request_options [String] :base_url diff --git a/lib/CloudPDF/environment.rb b/lib/CloudPDF/environment.rb new file mode 100644 index 00000000..db8af10d --- /dev/null +++ b/lib/CloudPDF/environment.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module CloudPDF + class Environment + SAAS = "https://engine.cloudpdf.com" + end +end diff --git a/lib/CloudPDF/grants/client.rb b/lib/CloudPDF/grants/client.rb index e34f2bd7..4741d33f 100644 --- a/lib/CloudPDF/grants/client.rb +++ b/lib/CloudPDF/grants/client.rb @@ -100,8 +100,9 @@ def list(request_options: {}, **params) end end - # The returned id is what a link page or an embed opens. Mounted only when the deployment can sign (HS256 mode) — - # exchange mints session JWTs, so grants exist only where minting does. + # The returned id is what a link page or an embed opens. Its scope gives only document permissions the caller + # holds itself, as tokens.issue does. Mounted only when the deployment can sign (HS256 mode) — exchange mints + # session JWTs, so grants exist only where minting does. # # @param request_options [Hash] # @param params [CloudPDF::Grants::Types::GrantsCreateRequest] diff --git a/lib/CloudPDF/tokens/client.rb b/lib/CloudPDF/tokens/client.rb index aac57635..bd6386e1 100644 --- a/lib/CloudPDF/tokens/client.rb +++ b/lib/CloudPDF/tokens/client.rb @@ -10,8 +10,10 @@ def initialize(client:) @client = client end - # kind "tenant" requires the API token — authority mints only downward. Mounted only when the deployment can sign - # (HS256 mode); asymmetric deployments mint with their own private key. + # Authority mints only downward: kind "doc" gives only document permissions the caller holds itself, kind "tenant" + # requires the API token, and kind "upload" requires docs.create instead of tokens.issue-doc, since an upload + # token can do only what docs.create allows. Mounted only when the deployment can sign (HS256 mode); asymmetric + # deployments mint with their own private key. # # @param request_options [Hash] # @param params [CloudPDF::Types::TokensIssueRequest] diff --git a/lib/CloudPDF/types/annotation_caret.rb b/lib/CloudPDF/types/annotation_caret.rb index 6a9c6f26..aecc7b91 100644 --- a/lib/CloudPDF/types/annotation_caret.rb +++ b/lib/CloudPDF/types/annotation_caret.rb @@ -11,6 +11,8 @@ class AnnotationCaret < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationCaretRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_circle.rb b/lib/CloudPDF/types/annotation_circle.rb index f2b625a5..cd140327 100644 --- a/lib/CloudPDF/types/annotation_circle.rb +++ b/lib/CloudPDF/types/annotation_circle.rb @@ -11,6 +11,8 @@ class AnnotationCircle < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationCircleRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_caret.rb b/lib/CloudPDF/types/annotation_draft_caret.rb index 97d0b5e1..83c394ff 100644 --- a/lib/CloudPDF/types/annotation_draft_caret.rb +++ b/lib/CloudPDF/types/annotation_draft_caret.rb @@ -11,6 +11,8 @@ class AnnotationDraftCaret < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftCaretRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_circle.rb b/lib/CloudPDF/types/annotation_draft_circle.rb index 24896859..6f0a4e10 100644 --- a/lib/CloudPDF/types/annotation_draft_circle.rb +++ b/lib/CloudPDF/types/annotation_draft_circle.rb @@ -11,6 +11,8 @@ class AnnotationDraftCircle < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftCircleRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_file_attachment.rb b/lib/CloudPDF/types/annotation_draft_file_attachment.rb index 37f7e3d4..ecf07342 100644 --- a/lib/CloudPDF/types/annotation_draft_file_attachment.rb +++ b/lib/CloudPDF/types/annotation_draft_file_attachment.rb @@ -11,6 +11,8 @@ class AnnotationDraftFileAttachment < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftFileAttachmentRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_free_text.rb b/lib/CloudPDF/types/annotation_draft_free_text.rb index 1519138a..16ae5070 100644 --- a/lib/CloudPDF/types/annotation_draft_free_text.rb +++ b/lib/CloudPDF/types/annotation_draft_free_text.rb @@ -11,6 +11,8 @@ class AnnotationDraftFreeText < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftFreeTextRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_highlight.rb b/lib/CloudPDF/types/annotation_draft_highlight.rb index 8c31c9b3..66419f54 100644 --- a/lib/CloudPDF/types/annotation_draft_highlight.rb +++ b/lib/CloudPDF/types/annotation_draft_highlight.rb @@ -11,6 +11,8 @@ class AnnotationDraftHighlight < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftHighlightRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_ink.rb b/lib/CloudPDF/types/annotation_draft_ink.rb index 06f01bfb..073ad650 100644 --- a/lib/CloudPDF/types/annotation_draft_ink.rb +++ b/lib/CloudPDF/types/annotation_draft_ink.rb @@ -11,6 +11,8 @@ class AnnotationDraftInk < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftInkRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_line.rb b/lib/CloudPDF/types/annotation_draft_line.rb index 6ebaf60f..15c1b2a6 100644 --- a/lib/CloudPDF/types/annotation_draft_line.rb +++ b/lib/CloudPDF/types/annotation_draft_line.rb @@ -11,6 +11,8 @@ class AnnotationDraftLine < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftLineRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_link.rb b/lib/CloudPDF/types/annotation_draft_link.rb index f2e38ad8..e5765ca3 100644 --- a/lib/CloudPDF/types/annotation_draft_link.rb +++ b/lib/CloudPDF/types/annotation_draft_link.rb @@ -11,6 +11,8 @@ class AnnotationDraftLink < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftLinkRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_polygon.rb b/lib/CloudPDF/types/annotation_draft_polygon.rb index 3dc02cde..11158b71 100644 --- a/lib/CloudPDF/types/annotation_draft_polygon.rb +++ b/lib/CloudPDF/types/annotation_draft_polygon.rb @@ -11,6 +11,8 @@ class AnnotationDraftPolygon < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftPolygonRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_polyline.rb b/lib/CloudPDF/types/annotation_draft_polyline.rb index 43f7dc8d..ac66c86d 100644 --- a/lib/CloudPDF/types/annotation_draft_polyline.rb +++ b/lib/CloudPDF/types/annotation_draft_polyline.rb @@ -11,6 +11,8 @@ class AnnotationDraftPolyline < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftPolylineRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_popup.rb b/lib/CloudPDF/types/annotation_draft_popup.rb index 54d95bc0..981dba5a 100644 --- a/lib/CloudPDF/types/annotation_draft_popup.rb +++ b/lib/CloudPDF/types/annotation_draft_popup.rb @@ -11,6 +11,8 @@ class AnnotationDraftPopup < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftPopupRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_redact.rb b/lib/CloudPDF/types/annotation_draft_redact.rb index 5f78d810..5da6a3b1 100644 --- a/lib/CloudPDF/types/annotation_draft_redact.rb +++ b/lib/CloudPDF/types/annotation_draft_redact.rb @@ -11,6 +11,8 @@ class AnnotationDraftRedact < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftRedactRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_square.rb b/lib/CloudPDF/types/annotation_draft_square.rb index cfcfec1a..7b20f54c 100644 --- a/lib/CloudPDF/types/annotation_draft_square.rb +++ b/lib/CloudPDF/types/annotation_draft_square.rb @@ -11,6 +11,8 @@ class AnnotationDraftSquare < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftSquareRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_squiggly.rb b/lib/CloudPDF/types/annotation_draft_squiggly.rb index 6e5576b4..9ca2b901 100644 --- a/lib/CloudPDF/types/annotation_draft_squiggly.rb +++ b/lib/CloudPDF/types/annotation_draft_squiggly.rb @@ -11,6 +11,8 @@ class AnnotationDraftSquiggly < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftSquigglyRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_stamp.rb b/lib/CloudPDF/types/annotation_draft_stamp.rb index 30163560..14b6b67a 100644 --- a/lib/CloudPDF/types/annotation_draft_stamp.rb +++ b/lib/CloudPDF/types/annotation_draft_stamp.rb @@ -11,6 +11,8 @@ class AnnotationDraftStamp < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftStampRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_strikeout.rb b/lib/CloudPDF/types/annotation_draft_strikeout.rb index 2fceddcb..119e7ff9 100644 --- a/lib/CloudPDF/types/annotation_draft_strikeout.rb +++ b/lib/CloudPDF/types/annotation_draft_strikeout.rb @@ -11,6 +11,8 @@ class AnnotationDraftStrikeout < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftStrikeoutRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_text.rb b/lib/CloudPDF/types/annotation_draft_text.rb index 540eac14..f7973fb3 100644 --- a/lib/CloudPDF/types/annotation_draft_text.rb +++ b/lib/CloudPDF/types/annotation_draft_text.rb @@ -11,6 +11,8 @@ class AnnotationDraftText < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftTextRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_underline.rb b/lib/CloudPDF/types/annotation_draft_underline.rb index 8d2180b8..17def418 100644 --- a/lib/CloudPDF/types/annotation_draft_underline.rb +++ b/lib/CloudPDF/types/annotation_draft_underline.rb @@ -11,6 +11,8 @@ class AnnotationDraftUnderline < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftUnderlineRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_draft_widget.rb b/lib/CloudPDF/types/annotation_draft_widget.rb index 19a215f7..f12a1ae8 100644 --- a/lib/CloudPDF/types/annotation_draft_widget.rb +++ b/lib/CloudPDF/types/annotation_draft_widget.rb @@ -11,6 +11,8 @@ class AnnotationDraftWidget < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationDraftWidgetRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_file_attachment.rb b/lib/CloudPDF/types/annotation_file_attachment.rb index 0638ac4b..1376d44e 100644 --- a/lib/CloudPDF/types/annotation_file_attachment.rb +++ b/lib/CloudPDF/types/annotation_file_attachment.rb @@ -11,6 +11,8 @@ class AnnotationFileAttachment < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationFileAttachmentRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_free_text.rb b/lib/CloudPDF/types/annotation_free_text.rb index 534d3a67..8fa27195 100644 --- a/lib/CloudPDF/types/annotation_free_text.rb +++ b/lib/CloudPDF/types/annotation_free_text.rb @@ -11,6 +11,8 @@ class AnnotationFreeText < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationFreeTextRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_highlight.rb b/lib/CloudPDF/types/annotation_highlight.rb index 736a21e7..0329722a 100644 --- a/lib/CloudPDF/types/annotation_highlight.rb +++ b/lib/CloudPDF/types/annotation_highlight.rb @@ -11,6 +11,8 @@ class AnnotationHighlight < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationHighlightRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_ink.rb b/lib/CloudPDF/types/annotation_ink.rb index 531f7006..2e1bf518 100644 --- a/lib/CloudPDF/types/annotation_ink.rb +++ b/lib/CloudPDF/types/annotation_ink.rb @@ -11,6 +11,8 @@ class AnnotationInk < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationInkRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_line.rb b/lib/CloudPDF/types/annotation_line.rb index c77dd288..4253c463 100644 --- a/lib/CloudPDF/types/annotation_line.rb +++ b/lib/CloudPDF/types/annotation_line.rb @@ -11,6 +11,8 @@ class AnnotationLine < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationLineRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_link.rb b/lib/CloudPDF/types/annotation_link.rb index c13400bd..e8713839 100644 --- a/lib/CloudPDF/types/annotation_link.rb +++ b/lib/CloudPDF/types/annotation_link.rb @@ -11,6 +11,8 @@ class AnnotationLink < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationLinkRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_mutation_meta.rb b/lib/CloudPDF/types/annotation_mutation_meta.rb index 63d4bb47..8cca9fb9 100644 --- a/lib/CloudPDF/types/annotation_mutation_meta.rb +++ b/lib/CloudPDF/types/annotation_mutation_meta.rb @@ -11,6 +11,8 @@ class AnnotationMutationMeta < Internal::Types::Model field :undoable, -> { Internal::Types::Boolean }, optional: false, nullable: false + field :missing_characters, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "missingCharacters" + field :changed, -> { Internal::Types::Array[CloudPDF::Types::AnnotationRef] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/annotation_patch_caret.rb b/lib/CloudPDF/types/annotation_patch_caret.rb index d2d4b1ab..5547dc1e 100644 --- a/lib/CloudPDF/types/annotation_patch_caret.rb +++ b/lib/CloudPDF/types/annotation_patch_caret.rb @@ -11,6 +11,8 @@ class AnnotationPatchCaret < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchCaretRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_circle.rb b/lib/CloudPDF/types/annotation_patch_circle.rb index 62ab9185..4d045972 100644 --- a/lib/CloudPDF/types/annotation_patch_circle.rb +++ b/lib/CloudPDF/types/annotation_patch_circle.rb @@ -11,6 +11,8 @@ class AnnotationPatchCircle < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchCircleRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_file_attachment.rb b/lib/CloudPDF/types/annotation_patch_file_attachment.rb index 6533684c..232d7251 100644 --- a/lib/CloudPDF/types/annotation_patch_file_attachment.rb +++ b/lib/CloudPDF/types/annotation_patch_file_attachment.rb @@ -11,6 +11,8 @@ class AnnotationPatchFileAttachment < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchFileAttachmentRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_free_text.rb b/lib/CloudPDF/types/annotation_patch_free_text.rb index abd836cc..a70712e7 100644 --- a/lib/CloudPDF/types/annotation_patch_free_text.rb +++ b/lib/CloudPDF/types/annotation_patch_free_text.rb @@ -11,6 +11,8 @@ class AnnotationPatchFreeText < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchFreeTextRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_highlight.rb b/lib/CloudPDF/types/annotation_patch_highlight.rb index af6f639c..4deff47e 100644 --- a/lib/CloudPDF/types/annotation_patch_highlight.rb +++ b/lib/CloudPDF/types/annotation_patch_highlight.rb @@ -11,6 +11,8 @@ class AnnotationPatchHighlight < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchHighlightRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_ink.rb b/lib/CloudPDF/types/annotation_patch_ink.rb index d4cdf8ba..c982c7e0 100644 --- a/lib/CloudPDF/types/annotation_patch_ink.rb +++ b/lib/CloudPDF/types/annotation_patch_ink.rb @@ -11,6 +11,8 @@ class AnnotationPatchInk < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchInkRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_line.rb b/lib/CloudPDF/types/annotation_patch_line.rb index 0e3f7d0d..2d09481b 100644 --- a/lib/CloudPDF/types/annotation_patch_line.rb +++ b/lib/CloudPDF/types/annotation_patch_line.rb @@ -11,6 +11,8 @@ class AnnotationPatchLine < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchLineRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_link.rb b/lib/CloudPDF/types/annotation_patch_link.rb index efd814fc..eaaccab9 100644 --- a/lib/CloudPDF/types/annotation_patch_link.rb +++ b/lib/CloudPDF/types/annotation_patch_link.rb @@ -11,6 +11,8 @@ class AnnotationPatchLink < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchLinkRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_polygon.rb b/lib/CloudPDF/types/annotation_patch_polygon.rb index d355dc91..d3619c76 100644 --- a/lib/CloudPDF/types/annotation_patch_polygon.rb +++ b/lib/CloudPDF/types/annotation_patch_polygon.rb @@ -11,6 +11,8 @@ class AnnotationPatchPolygon < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchPolygonRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_polyline.rb b/lib/CloudPDF/types/annotation_patch_polyline.rb index 46c0be9f..94c9d9d9 100644 --- a/lib/CloudPDF/types/annotation_patch_polyline.rb +++ b/lib/CloudPDF/types/annotation_patch_polyline.rb @@ -11,6 +11,8 @@ class AnnotationPatchPolyline < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchPolylineRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_popup.rb b/lib/CloudPDF/types/annotation_patch_popup.rb index 9adc9fa2..f602cc85 100644 --- a/lib/CloudPDF/types/annotation_patch_popup.rb +++ b/lib/CloudPDF/types/annotation_patch_popup.rb @@ -11,6 +11,8 @@ class AnnotationPatchPopup < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchPopupRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_redact.rb b/lib/CloudPDF/types/annotation_patch_redact.rb index e04c4506..1a5707d1 100644 --- a/lib/CloudPDF/types/annotation_patch_redact.rb +++ b/lib/CloudPDF/types/annotation_patch_redact.rb @@ -11,6 +11,8 @@ class AnnotationPatchRedact < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchRedactRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_square.rb b/lib/CloudPDF/types/annotation_patch_square.rb index 5c289d72..3125638e 100644 --- a/lib/CloudPDF/types/annotation_patch_square.rb +++ b/lib/CloudPDF/types/annotation_patch_square.rb @@ -11,6 +11,8 @@ class AnnotationPatchSquare < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchSquareRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_squiggly.rb b/lib/CloudPDF/types/annotation_patch_squiggly.rb index 2f4cfd22..02d2aa2d 100644 --- a/lib/CloudPDF/types/annotation_patch_squiggly.rb +++ b/lib/CloudPDF/types/annotation_patch_squiggly.rb @@ -11,6 +11,8 @@ class AnnotationPatchSquiggly < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchSquigglyRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_stamp.rb b/lib/CloudPDF/types/annotation_patch_stamp.rb index f90c269f..2dde1a06 100644 --- a/lib/CloudPDF/types/annotation_patch_stamp.rb +++ b/lib/CloudPDF/types/annotation_patch_stamp.rb @@ -11,6 +11,8 @@ class AnnotationPatchStamp < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchStampRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_strikeout.rb b/lib/CloudPDF/types/annotation_patch_strikeout.rb index 18fde4e2..81e19b25 100644 --- a/lib/CloudPDF/types/annotation_patch_strikeout.rb +++ b/lib/CloudPDF/types/annotation_patch_strikeout.rb @@ -11,6 +11,8 @@ class AnnotationPatchStrikeout < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchStrikeoutRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_text.rb b/lib/CloudPDF/types/annotation_patch_text.rb index a3bcc8df..c3da4a08 100644 --- a/lib/CloudPDF/types/annotation_patch_text.rb +++ b/lib/CloudPDF/types/annotation_patch_text.rb @@ -11,6 +11,8 @@ class AnnotationPatchText < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchTextRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_patch_underline.rb b/lib/CloudPDF/types/annotation_patch_underline.rb index 346caa0b..6df42502 100644 --- a/lib/CloudPDF/types/annotation_patch_underline.rb +++ b/lib/CloudPDF/types/annotation_patch_underline.rb @@ -11,6 +11,8 @@ class AnnotationPatchUnderline < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::AnnotationPatchUnderlineRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/annotation_polygon.rb b/lib/CloudPDF/types/annotation_polygon.rb index ced58cd4..20db0687 100644 --- a/lib/CloudPDF/types/annotation_polygon.rb +++ b/lib/CloudPDF/types/annotation_polygon.rb @@ -11,6 +11,8 @@ class AnnotationPolygon < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationPolygonRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_polyline.rb b/lib/CloudPDF/types/annotation_polyline.rb index a5d98967..a7b99932 100644 --- a/lib/CloudPDF/types/annotation_polyline.rb +++ b/lib/CloudPDF/types/annotation_polyline.rb @@ -11,6 +11,8 @@ class AnnotationPolyline < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationPolylineRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_popup.rb b/lib/CloudPDF/types/annotation_popup.rb index 02959e07..f450a6e2 100644 --- a/lib/CloudPDF/types/annotation_popup.rb +++ b/lib/CloudPDF/types/annotation_popup.rb @@ -11,6 +11,8 @@ class AnnotationPopup < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationPopupRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_redact.rb b/lib/CloudPDF/types/annotation_redact.rb index 58577f84..baa88f6b 100644 --- a/lib/CloudPDF/types/annotation_redact.rb +++ b/lib/CloudPDF/types/annotation_redact.rb @@ -11,6 +11,8 @@ class AnnotationRedact < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationRedactRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_square.rb b/lib/CloudPDF/types/annotation_square.rb index a3a631f5..fd1d5ac7 100644 --- a/lib/CloudPDF/types/annotation_square.rb +++ b/lib/CloudPDF/types/annotation_square.rb @@ -11,6 +11,8 @@ class AnnotationSquare < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationSquareRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_squiggly.rb b/lib/CloudPDF/types/annotation_squiggly.rb index f451d450..9ce6f4b9 100644 --- a/lib/CloudPDF/types/annotation_squiggly.rb +++ b/lib/CloudPDF/types/annotation_squiggly.rb @@ -11,6 +11,8 @@ class AnnotationSquiggly < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationSquigglyRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_stamp.rb b/lib/CloudPDF/types/annotation_stamp.rb index 88b7c248..3e968f0d 100644 --- a/lib/CloudPDF/types/annotation_stamp.rb +++ b/lib/CloudPDF/types/annotation_stamp.rb @@ -11,6 +11,8 @@ class AnnotationStamp < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationStampRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_strikeout.rb b/lib/CloudPDF/types/annotation_strikeout.rb index 7971526d..8202f099 100644 --- a/lib/CloudPDF/types/annotation_strikeout.rb +++ b/lib/CloudPDF/types/annotation_strikeout.rb @@ -11,6 +11,8 @@ class AnnotationStrikeout < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationStrikeoutRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_text.rb b/lib/CloudPDF/types/annotation_text.rb index 23046844..97b78f4f 100644 --- a/lib/CloudPDF/types/annotation_text.rb +++ b/lib/CloudPDF/types/annotation_text.rb @@ -11,6 +11,8 @@ class AnnotationText < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationTextRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_underline.rb b/lib/CloudPDF/types/annotation_underline.rb index eb3ff589..b49dac21 100644 --- a/lib/CloudPDF/types/annotation_underline.rb +++ b/lib/CloudPDF/types/annotation_underline.rb @@ -11,6 +11,8 @@ class AnnotationUnderline < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationUnderlineRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/annotation_unsupported.rb b/lib/CloudPDF/types/annotation_unsupported.rb index fa064b94..a2204c53 100644 --- a/lib/CloudPDF/types/annotation_unsupported.rb +++ b/lib/CloudPDF/types/annotation_unsupported.rb @@ -11,6 +11,8 @@ class AnnotationUnsupported < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::AnnotationUnsupportedRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/attachment_mutation_meta.rb b/lib/CloudPDF/types/attachment_mutation_meta.rb index 7744b866..a98ecea5 100644 --- a/lib/CloudPDF/types/attachment_mutation_meta.rb +++ b/lib/CloudPDF/types/attachment_mutation_meta.rb @@ -11,6 +11,8 @@ class AttachmentMutationMeta < Internal::Types::Model field :undoable, -> { Internal::Types::Boolean }, optional: false, nullable: false + field :missing_characters, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "missingCharacters" + field :changed, -> { Internal::Types::Array[CloudPDF::Types::AttachmentRef] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/cache_delta.rb b/lib/CloudPDF/types/cache_delta.rb index 9b5d8c44..8e68501e 100644 --- a/lib/CloudPDF/types/cache_delta.rb +++ b/lib/CloudPDF/types/cache_delta.rb @@ -19,6 +19,8 @@ class CacheDelta < Internal::Types::Model field :outline_version, -> { Integer }, optional: true, nullable: false, api_name: "outlineVersion" + field :fonts_version, -> { Integer }, optional: true, nullable: false, api_name: "fontsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false diff --git a/lib/CloudPDF/types/change_item.rb b/lib/CloudPDF/types/change_item.rb index a7bfab79..458f4c99 100644 --- a/lib/CloudPDF/types/change_item.rb +++ b/lib/CloudPDF/types/change_item.rb @@ -75,6 +75,8 @@ class ChangeItem < Internal::Types::Model member -> { CloudPDF::Types::ChangeItemPagesInsert }, key: "PAGES_INSERT" + member -> { CloudPDF::Types::ChangeItemPagesCopy }, key: "PAGES_COPY" + member -> { CloudPDF::Types::ChangeItemPagesRestore }, key: "PAGES_RESTORE" member -> { CloudPDF::Types::ChangeItemAttachmentsCreate }, key: "ATTACHMENTS_CREATE" diff --git a/lib/CloudPDF/types/change_item_pages_copy.rb b/lib/CloudPDF/types/change_item_pages_copy.rb new file mode 100644 index 00000000..c61af582 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopy < Internal::Types::Model + field :inserted_pages, -> { Internal::Types::Array[CloudPDF::Types::PageRef] }, optional: false, nullable: false, api_name: "insertedPages" + + field :layout, -> { CloudPDF::Types::ChangeItemPagesCopyLayout }, optional: false, nullable: false + + field :meta, -> { CloudPDF::Types::MutationMeta }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout.rb b/lib/CloudPDF/types/change_item_pages_copy_layout.rb new file mode 100644 index 00000000..943a702f --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayout < Internal::Types::Model + field :page_count, -> { Integer }, optional: false, nullable: false, api_name: "pageCount" + + field :pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItem] }, optional: false, nullable: false + + field :labels, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesCopyLayoutLabelsItem] }, optional: false, nullable: false + + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesCopyLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item.rb new file mode 100644 index 00000000..6fda66cf --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item_style.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item_style.rb new file mode 100644 index 00000000..8e8ba666 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesCopyLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item.rb new file mode 100644 index 00000000..3304812e --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutNamedPagesItem < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: false + + field :target, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutNamedPagesItemTarget }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target.rb new file mode 100644 index 00000000..08ab8dc2 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutNamedPagesItemTarget < Internal::Types::Model + extend CloudPDF::Internal::Types::Union + + discriminant :kind + + member -> { CloudPDF::Types::ChangeItemPagesCopyLayoutNamedPagesItemTargetPage }, key: "PAGE" + + member -> { CloudPDF::Types::ChangeItemPagesCopyLayoutNamedPagesItemTargetTemplate }, key: "TEMPLATE" + + member -> { CloudPDF::Types::ChangeItemPagesCopyLayoutNamedPagesItemTargetDangling }, key: "DANGLING" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_dangling.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_dangling.rb new file mode 100644 index 00000000..b16cc311 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_dangling.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutNamedPagesItemTargetDangling < Internal::Types::Model; end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_page.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_page.rb new file mode 100644 index 00000000..f398de63 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_page.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutNamedPagesItemTargetPage < Internal::Types::Model + field :page, -> { CloudPDF::Types::PageRef }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_template.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_template.rb new file mode 100644 index 00000000..02a7e26b --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_template.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutNamedPagesItemTargetTemplate < Internal::Types::Model + field :object_number, -> { Integer }, optional: false, nullable: false, api_name: "objectNumber" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item.rb new file mode 100644 index 00000000..0b7137fe --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItem < Internal::Types::Model + field :index, -> { Integer }, optional: false, nullable: false + + field :ref, -> { CloudPDF::Types::PageRef }, optional: false, nullable: false + + field :label, -> { String }, optional: false, nullable: true + + field :size, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemSize }, optional: false, nullable: false + + field :rotation, -> { Integer }, optional: false, nullable: false + + field :user_unit, -> { Integer }, optional: false, nullable: false, api_name: "userUnit" + + field :tab_order, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemTabOrder }, optional: false, nullable: true, api_name: "tabOrder" + + field :boxes, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemBoxes }, optional: false, nullable: false + + field :pdf_crop_box, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemPdfCropBox }, optional: false, nullable: false, api_name: "pdfCropBox" + + field :actions, -> { CloudPDF::Types::PdfPageActions }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes.rb new file mode 100644 index 00000000..fdd532c6 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemBoxes < Internal::Types::Model + field :media, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemBoxesMedia }, optional: false, nullable: false + + field :crop, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemBoxesCrop }, optional: false, nullable: false + + field :bleed, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemBoxesBleed }, optional: false, nullable: false + + field :trim, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemBoxesTrim }, optional: false, nullable: false + + field :art, -> { CloudPDF::Types::ChangeItemPagesCopyLayoutPagesItemBoxesArt }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_art.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_art.rb new file mode 100644 index 00000000..b9dc2542 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_art.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemBoxesArt < Internal::Types::Model + field :x, -> { Integer }, optional: false, nullable: false + + field :y, -> { Integer }, optional: false, nullable: false + + field :width, -> { Integer }, optional: false, nullable: false + + field :height, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_bleed.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_bleed.rb new file mode 100644 index 00000000..fb33717d --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_bleed.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemBoxesBleed < Internal::Types::Model + field :x, -> { Integer }, optional: false, nullable: false + + field :y, -> { Integer }, optional: false, nullable: false + + field :width, -> { Integer }, optional: false, nullable: false + + field :height, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_crop.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_crop.rb new file mode 100644 index 00000000..bfa0b391 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_crop.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemBoxesCrop < Internal::Types::Model + field :x, -> { Integer }, optional: false, nullable: false + + field :y, -> { Integer }, optional: false, nullable: false + + field :width, -> { Integer }, optional: false, nullable: false + + field :height, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_media.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_media.rb new file mode 100644 index 00000000..2ee2395d --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_media.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemBoxesMedia < Internal::Types::Model + field :x, -> { Integer }, optional: false, nullable: false + + field :y, -> { Integer }, optional: false, nullable: false + + field :width, -> { Integer }, optional: false, nullable: false + + field :height, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_trim.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_trim.rb new file mode 100644 index 00000000..9526eef2 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_trim.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemBoxesTrim < Internal::Types::Model + field :x, -> { Integer }, optional: false, nullable: false + + field :y, -> { Integer }, optional: false, nullable: false + + field :width, -> { Integer }, optional: false, nullable: false + + field :height, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_pdf_crop_box.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_pdf_crop_box.rb new file mode 100644 index 00000000..1bd581ff --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_pdf_crop_box.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemPdfCropBox < Internal::Types::Model + field :left, -> { Integer }, optional: false, nullable: false + + field :bottom, -> { Integer }, optional: false, nullable: false + + field :right, -> { Integer }, optional: false, nullable: false + + field :top, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_size.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_size.rb new file mode 100644 index 00000000..3945ab63 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_size.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesCopyLayoutPagesItemSize < Internal::Types::Model + field :width, -> { Integer }, optional: false, nullable: false + + field :height, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_tab_order.rb b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_tab_order.rb new file mode 100644 index 00000000..021f27e5 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_tab_order.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesCopyLayoutPagesItemTabOrder + extend CloudPDF::Internal::Types::Enum + + ROWS = "rows" + COLUMNS = "columns" + STRUCTURE = "structure" + ANNOTATIONS = "annotations" + WIDGETS = "widgets" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_delete_layout.rb b/lib/CloudPDF/types/change_item_pages_delete_layout.rb index 8ea4cb1a..d22ed14e 100644 --- a/lib/CloudPDF/types/change_item_pages_delete_layout.rb +++ b/lib/CloudPDF/types/change_item_pages_delete_layout.rb @@ -7,6 +7,8 @@ class ChangeItemPagesDeleteLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesDeleteLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesDeleteLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesDeleteLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item.rb b/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item.rb new file mode 100644 index 00000000..e47a60b1 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesDeleteLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::ChangeItemPagesDeleteLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item_style.rb b/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item_style.rb new file mode 100644 index 00000000..5e88a78b --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesDeleteLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_insert_blank_layout.rb b/lib/CloudPDF/types/change_item_pages_insert_blank_layout.rb index b68cfb4e..0b20e619 100644 --- a/lib/CloudPDF/types/change_item_pages_insert_blank_layout.rb +++ b/lib/CloudPDF/types/change_item_pages_insert_blank_layout.rb @@ -7,6 +7,8 @@ class ChangeItemPagesInsertBlankLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesInsertBlankLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesInsertBlankLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesInsertBlankLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item.rb b/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item.rb new file mode 100644 index 00000000..809734ea --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesInsertBlankLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::ChangeItemPagesInsertBlankLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item_style.rb b/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item_style.rb new file mode 100644 index 00000000..26232d0c --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesInsertBlankLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_insert_layout.rb b/lib/CloudPDF/types/change_item_pages_insert_layout.rb index 97ecec61..e76901b7 100644 --- a/lib/CloudPDF/types/change_item_pages_insert_layout.rb +++ b/lib/CloudPDF/types/change_item_pages_insert_layout.rb @@ -7,6 +7,8 @@ class ChangeItemPagesInsertLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesInsertLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesInsertLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesInsertLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item.rb b/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item.rb new file mode 100644 index 00000000..e0cdce8d --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesInsertLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::ChangeItemPagesInsertLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item_style.rb b/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item_style.rb new file mode 100644 index 00000000..3d6528b6 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesInsertLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_reorder_layout.rb b/lib/CloudPDF/types/change_item_pages_reorder_layout.rb index f7312bb6..64ed0aaa 100644 --- a/lib/CloudPDF/types/change_item_pages_reorder_layout.rb +++ b/lib/CloudPDF/types/change_item_pages_reorder_layout.rb @@ -7,6 +7,8 @@ class ChangeItemPagesReorderLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesReorderLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesReorderLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesReorderLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item.rb b/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item.rb new file mode 100644 index 00000000..9fa99d54 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesReorderLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::ChangeItemPagesReorderLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item_style.rb b/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item_style.rb new file mode 100644 index 00000000..81c007c2 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesReorderLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_restore_layout.rb b/lib/CloudPDF/types/change_item_pages_restore_layout.rb index 96b72792..77d0eeed 100644 --- a/lib/CloudPDF/types/change_item_pages_restore_layout.rb +++ b/lib/CloudPDF/types/change_item_pages_restore_layout.rb @@ -7,6 +7,8 @@ class ChangeItemPagesRestoreLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesRestoreLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesRestoreLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesRestoreLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item.rb b/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item.rb new file mode 100644 index 00000000..723b43c8 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesRestoreLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::ChangeItemPagesRestoreLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item_style.rb b/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item_style.rb new file mode 100644 index 00000000..ac82ab55 --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesRestoreLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_rotate_layout.rb b/lib/CloudPDF/types/change_item_pages_rotate_layout.rb index cc545936..f445ffb9 100644 --- a/lib/CloudPDF/types/change_item_pages_rotate_layout.rb +++ b/lib/CloudPDF/types/change_item_pages_rotate_layout.rb @@ -7,6 +7,8 @@ class ChangeItemPagesRotateLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesRotateLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesRotateLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemPagesRotateLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item.rb b/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item.rb new file mode 100644 index 00000000..03390a9d --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeItemPagesRotateLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::ChangeItemPagesRotateLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item_style.rb b/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item_style.rb new file mode 100644 index 00000000..7feaa54f --- /dev/null +++ b/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module ChangeItemPagesRotateLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/change_item_skipped_op.rb b/lib/CloudPDF/types/change_item_skipped_op.rb index 5062eb0a..39e5560a 100644 --- a/lib/CloudPDF/types/change_item_skipped_op.rb +++ b/lib/CloudPDF/types/change_item_skipped_op.rb @@ -34,6 +34,7 @@ module ChangeItemSkippedOp PAGES_DELETE = "pages.delete" PAGES_INSERT_BLANK = "pages.insertBlank" PAGES_INSERT = "pages.insert" + PAGES_COPY = "pages.copy" ATTACHMENTS_CREATE = "attachments.create" ATTACHMENTS_DELETE = "attachments.delete" ANNOTATIONS_RESTORE = "annotations.restore" diff --git a/lib/CloudPDF/types/change_op.rb b/lib/CloudPDF/types/change_op.rb index 3b06aa0e..202f5c9a 100644 --- a/lib/CloudPDF/types/change_op.rb +++ b/lib/CloudPDF/types/change_op.rb @@ -65,6 +65,8 @@ class ChangeOp < Internal::Types::Model member -> { CloudPDF::Types::ChangeOpPagesInsert }, key: "PAGES_INSERT" + member -> { CloudPDF::Types::ChangeOpPagesCopy }, key: "PAGES_COPY" + member -> { CloudPDF::Types::ChangeOpAttachmentsCreate }, key: "ATTACHMENTS_CREATE" member -> { CloudPDF::Types::ChangeOpAttachmentsDelete }, key: "ATTACHMENTS_DELETE" diff --git a/lib/CloudPDF/types/change_op_pages_copy.rb b/lib/CloudPDF/types/change_op_pages_copy.rb new file mode 100644 index 00000000..383aa774 --- /dev/null +++ b/lib/CloudPDF/types/change_op_pages_copy.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ChangeOpPagesCopy < Internal::Types::Model + field :pages, -> { Internal::Types::Array[CloudPDF::Types::PageRef] }, optional: false, nullable: false + + field :position, -> { CloudPDF::Types::PagePosition }, optional: true, nullable: false + + field :object_numbers, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false, api_name: "objectNumbers" + end + end +end diff --git a/lib/CloudPDF/types/change_op_pages_insert.rb b/lib/CloudPDF/types/change_op_pages_insert.rb index dcec34af..2cabe2a8 100644 --- a/lib/CloudPDF/types/change_op_pages_insert.rb +++ b/lib/CloudPDF/types/change_op_pages_insert.rb @@ -6,6 +6,8 @@ class ChangeOpPagesInsert < Internal::Types::Model field :resources, -> { CloudPDF::Types::ChangeOpPagesInsertResources }, optional: false, nullable: false field :position, -> { CloudPDF::Types::PagePosition }, optional: true, nullable: false + + field :object_numbers, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false, api_name: "objectNumbers" end end end diff --git a/lib/CloudPDF/types/doc_fonts_list200response.rb b/lib/CloudPDF/types/doc_fonts_list200response.rb new file mode 100644 index 00000000..480b3394 --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_list200response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsList200Response + # DocFontsList200Response is an alias for FontList + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_list404response.rb b/lib/CloudPDF/types/doc_fonts_list404response.rb new file mode 100644 index 00000000..9a068e1b --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_list404response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsList404Response + # DocFontsList404Response is an alias for EngineErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_programs_download403response.rb b/lib/CloudPDF/types/doc_fonts_programs_download403response.rb new file mode 100644 index 00000000..02cbbbee --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_programs_download403response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsProgramsDownload403Response + # DocFontsProgramsDownload403Response is an alias for EngineErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_programs_download404response.rb b/lib/CloudPDF/types/doc_fonts_programs_download404response.rb new file mode 100644 index 00000000..f57b59e1 --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_programs_download404response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsProgramsDownload404Response + # DocFontsProgramsDownload404Response is an alias for EngineErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_programs_get200response.rb b/lib/CloudPDF/types/doc_fonts_programs_get200response.rb new file mode 100644 index 00000000..589a0150 --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_programs_get200response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsProgramsGet200Response + # DocFontsProgramsGet200Response is an alias for FontProgramInfo + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_programs_get404response.rb b/lib/CloudPDF/types/doc_fonts_programs_get404response.rb new file mode 100644 index 00000000..fdc7a7e5 --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_programs_get404response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsProgramsGet404Response + # DocFontsProgramsGet404Response is an alias for EngineErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_resolve200response.rb b/lib/CloudPDF/types/doc_fonts_resolve200response.rb new file mode 100644 index 00000000..3223f1ac --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_resolve200response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsResolve200Response + # DocFontsResolve200Response is an alias for FontResolution + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_resolve400response.rb b/lib/CloudPDF/types/doc_fonts_resolve400response.rb new file mode 100644 index 00000000..66872548 --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_resolve400response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsResolve400Response + # DocFontsResolve400Response is an alias for EngineErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_resolve404response.rb b/lib/CloudPDF/types/doc_fonts_resolve404response.rb new file mode 100644 index 00000000..62498285 --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_resolve404response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsResolve404Response + # DocFontsResolve404Response is an alias for EngineErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_fonts_resolve_request.rb b/lib/CloudPDF/types/doc_fonts_resolve_request.rb new file mode 100644 index 00000000..da5b7764 --- /dev/null +++ b/lib/CloudPDF/types/doc_fonts_resolve_request.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocFontsResolveRequest + # DocFontsResolveRequest is an alias for FontResolveRequest + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/doc_manifest200response.rb b/lib/CloudPDF/types/doc_manifest200response.rb index 810da989..1a5001c8 100644 --- a/lib/CloudPDF/types/doc_manifest200response.rb +++ b/lib/CloudPDF/types/doc_manifest200response.rb @@ -19,6 +19,10 @@ class DocManifest200Response < Internal::Types::Model field :outline_version, -> { Integer }, optional: true, nullable: false, api_name: "outlineVersion" + field :fonts_version, -> { Integer }, optional: true, nullable: false, api_name: "fontsVersion" + + field :server_fonts, -> { String }, optional: false, nullable: false, api_name: "serverFonts" + field :audit_head, -> { Integer }, optional: false, nullable: false, api_name: "auditHead" field :base_sha, -> { String }, optional: false, nullable: false, api_name: "baseSha" diff --git a/lib/CloudPDF/types/doc_pages_remove_name200response_layout.rb b/lib/CloudPDF/types/doc_pages_remove_name200response_layout.rb index c897d5ca..2057c7bf 100644 --- a/lib/CloudPDF/types/doc_pages_remove_name200response_layout.rb +++ b/lib/CloudPDF/types/doc_pages_remove_name200response_layout.rb @@ -7,6 +7,8 @@ class DocPagesRemoveName200ResponseLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesRemoveName200ResponseLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::DocPagesRemoveName200ResponseLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesRemoveName200ResponseLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item.rb b/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item.rb new file mode 100644 index 00000000..6f1f3ab4 --- /dev/null +++ b/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocPagesRemoveName200ResponseLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::DocPagesRemoveName200ResponseLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item_style.rb b/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item_style.rb new file mode 100644 index 00000000..b94fa59c --- /dev/null +++ b/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocPagesRemoveName200ResponseLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/doc_pages_set_name200response_layout.rb b/lib/CloudPDF/types/doc_pages_set_name200response_layout.rb index 9c6e03fe..0b9ed332 100644 --- a/lib/CloudPDF/types/doc_pages_set_name200response_layout.rb +++ b/lib/CloudPDF/types/doc_pages_set_name200response_layout.rb @@ -7,6 +7,8 @@ class DocPagesSetName200ResponseLayout < Internal::Types::Model field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesSetName200ResponseLayoutPagesItem] }, optional: false, nullable: false + field :labels, -> { Internal::Types::Array[CloudPDF::Types::DocPagesSetName200ResponseLayoutLabelsItem] }, optional: false, nullable: false + field :named_pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesSetName200ResponseLayoutNamedPagesItem] }, optional: false, nullable: false, api_name: "namedPages" end end diff --git a/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item.rb b/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item.rb new file mode 100644 index 00000000..2defa5bc --- /dev/null +++ b/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocPagesSetName200ResponseLayoutLabelsItem < Internal::Types::Model + field :first_page, -> { Integer }, optional: false, nullable: false, api_name: "firstPage" + + field :style, -> { CloudPDF::Types::DocPagesSetName200ResponseLayoutLabelsItemStyle }, optional: false, nullable: true + + field :first_number, -> { Integer }, optional: false, nullable: false, api_name: "firstNumber" + + field :prefix, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item_style.rb b/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item_style.rb new file mode 100644 index 00000000..87809f61 --- /dev/null +++ b/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item_style.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocPagesSetName200ResponseLayoutLabelsItemStyle + extend CloudPDF::Internal::Types::Enum + + DECIMAL = "decimal" + UPPER_ROMAN = "upperRoman" + LOWER_ROMAN = "lowerRoman" + UPPER_LETTERS = "upperLetters" + LOWER_LETTERS = "lowerLetters" + end + end +end diff --git a/lib/CloudPDF/types/documents_init403response.rb b/lib/CloudPDF/types/documents_init403response.rb new file mode 100644 index 00000000..fb418a76 --- /dev/null +++ b/lib/CloudPDF/types/documents_init403response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocumentsInit403Response + # DocumentsInit403Response is an alias for AdminErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/documents_upload_proxy404response.rb b/lib/CloudPDF/types/documents_upload_proxy404response.rb new file mode 100644 index 00000000..87f56758 --- /dev/null +++ b/lib/CloudPDF/types/documents_upload_proxy404response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocumentsUploadProxy404Response + # DocumentsUploadProxy404Response is an alias for AdminErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/font.rb b/lib/CloudPDF/types/font.rb new file mode 100644 index 00000000..5f75c12d --- /dev/null +++ b/lib/CloudPDF/types/font.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class Font < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: false + + field :source, -> { CloudPDF::Types::FontSource }, optional: false, nullable: false + + field :family_name, -> { String }, optional: false, nullable: false, api_name: "familyName" + + field :weight, -> { Integer }, optional: false, nullable: false + + field :italic, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :post_script_name, -> { String }, optional: false, nullable: true, api_name: "postScriptName" + + field :can_choose, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canChoose" + + field :restrictions, -> { Internal::Types::Array[CloudPDF::Types::FontRestrictionsItem] }, optional: false, nullable: false + + field :programs, -> { Internal::Types::Array[CloudPDF::Types::FontProgram] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/font_list.rb b/lib/CloudPDF/types/font_list.rb new file mode 100644 index 00000000..88499ed3 --- /dev/null +++ b/lib/CloudPDF/types/font_list.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class FontList < Internal::Types::Model + field :fonts, -> { Internal::Types::Array[CloudPDF::Types::Font] }, optional: false, nullable: false + + field :fallbacks, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :last_resort, -> { CloudPDF::Types::FontProgram }, optional: false, nullable: false, api_name: "lastResort" + end + end +end diff --git a/lib/CloudPDF/types/font_program.rb b/lib/CloudPDF/types/font_program.rb new file mode 100644 index 00000000..1878e278 --- /dev/null +++ b/lib/CloudPDF/types/font_program.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class FontProgram < Internal::Types::Model + field :display_hash, -> { String }, optional: false, nullable: true, api_name: "displayHash" + + field :source_hash, -> { String }, optional: false, nullable: true, api_name: "sourceHash" + + field :embedded, -> { CloudPDF::Types::FontProgramEmbedded }, optional: false, nullable: false + + field :format, -> { CloudPDF::Types::FontProgramFormat }, optional: false, nullable: true + + field :embedding_permission, -> { CloudPDF::Types::FontProgramEmbeddingPermission }, optional: false, nullable: true, api_name: "embeddingPermission" + + field :can_download, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canDownload" + end + end +end diff --git a/lib/CloudPDF/types/font_program_embedded.rb b/lib/CloudPDF/types/font_program_embedded.rb new file mode 100644 index 00000000..84f3ceff --- /dev/null +++ b/lib/CloudPDF/types/font_program_embedded.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontProgramEmbedded + extend CloudPDF::Internal::Types::Enum + + WHOLE = "whole" + SUBSET = "subset" + NONE = "none" + end + end +end diff --git a/lib/CloudPDF/types/font_program_embedding_permission.rb b/lib/CloudPDF/types/font_program_embedding_permission.rb new file mode 100644 index 00000000..9d9b9531 --- /dev/null +++ b/lib/CloudPDF/types/font_program_embedding_permission.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontProgramEmbeddingPermission + extend CloudPDF::Internal::Types::Enum + + INSTALLABLE = "installable" + EDITABLE = "editable" + PREVIEW_AND_PRINT = "preview-and-print" + end + end +end diff --git a/lib/CloudPDF/types/font_program_format.rb b/lib/CloudPDF/types/font_program_format.rb new file mode 100644 index 00000000..31a5c149 --- /dev/null +++ b/lib/CloudPDF/types/font_program_format.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontProgramFormat + extend CloudPDF::Internal::Types::Enum + + TRUETYPE = "truetype" + OPENTYPE = "opentype" + CFF = "cff" + TYPE1 = "type1" + TYPE3 = "type3" + end + end +end diff --git a/lib/CloudPDF/types/font_program_info.rb b/lib/CloudPDF/types/font_program_info.rb new file mode 100644 index 00000000..1791a6a2 --- /dev/null +++ b/lib/CloudPDF/types/font_program_info.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class FontProgramInfo < Internal::Types::Model + field :display_hash, -> { String }, optional: false, nullable: true, api_name: "displayHash" + + field :source_hash, -> { String }, optional: false, nullable: true, api_name: "sourceHash" + + field :embedded, -> { CloudPDF::Types::FontProgramInfoEmbedded }, optional: false, nullable: false + + field :format, -> { CloudPDF::Types::FontProgramInfoFormat }, optional: false, nullable: true + + field :embedding_permission, -> { CloudPDF::Types::FontProgramInfoEmbeddingPermission }, optional: false, nullable: true, api_name: "embeddingPermission" + + field :can_download, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canDownload" + + field :covers, -> { Internal::Types::Array[CloudPDF::Types::FontProgramInfoCoversItem] }, optional: false, nullable: false + + field :ascent, -> { Integer }, optional: false, nullable: false + + field :descent, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/font_program_info_covers_item.rb b/lib/CloudPDF/types/font_program_info_covers_item.rb new file mode 100644 index 00000000..1c7f1c10 --- /dev/null +++ b/lib/CloudPDF/types/font_program_info_covers_item.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class FontProgramInfoCoversItem < Internal::Types::Model + field :start, -> { Integer }, optional: false, nullable: false + + field :count, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/font_program_info_embedded.rb b/lib/CloudPDF/types/font_program_info_embedded.rb new file mode 100644 index 00000000..be8933c5 --- /dev/null +++ b/lib/CloudPDF/types/font_program_info_embedded.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontProgramInfoEmbedded + extend CloudPDF::Internal::Types::Enum + + WHOLE = "whole" + SUBSET = "subset" + NONE = "none" + end + end +end diff --git a/lib/CloudPDF/types/font_program_info_embedding_permission.rb b/lib/CloudPDF/types/font_program_info_embedding_permission.rb new file mode 100644 index 00000000..00365666 --- /dev/null +++ b/lib/CloudPDF/types/font_program_info_embedding_permission.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontProgramInfoEmbeddingPermission + extend CloudPDF::Internal::Types::Enum + + INSTALLABLE = "installable" + EDITABLE = "editable" + PREVIEW_AND_PRINT = "preview-and-print" + end + end +end diff --git a/lib/CloudPDF/types/font_program_info_format.rb b/lib/CloudPDF/types/font_program_info_format.rb new file mode 100644 index 00000000..b2a95eaa --- /dev/null +++ b/lib/CloudPDF/types/font_program_info_format.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontProgramInfoFormat + extend CloudPDF::Internal::Types::Enum + + TRUETYPE = "truetype" + OPENTYPE = "opentype" + CFF = "cff" + TYPE1 = "type1" + TYPE3 = "type3" + end + end +end diff --git a/lib/CloudPDF/types/font_resolution.rb b/lib/CloudPDF/types/font_resolution.rb new file mode 100644 index 00000000..fdebb5bd --- /dev/null +++ b/lib/CloudPDF/types/font_resolution.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class FontResolution < Internal::Types::Model + field :runs, -> { Internal::Types::Array[CloudPDF::Types::ResolvedFontRun] }, optional: false, nullable: false + + field :missing_characters, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "missingCharacters" + end + end +end diff --git a/lib/CloudPDF/types/font_resolve_request.rb b/lib/CloudPDF/types/font_resolve_request.rb new file mode 100644 index 00000000..7032ecd2 --- /dev/null +++ b/lib/CloudPDF/types/font_resolve_request.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class FontResolveRequest < Internal::Types::Model + field :annotation, -> { CloudPDF::Types::AnnotationRef }, optional: true, nullable: false + + field :runs, -> { Internal::Types::Array[CloudPDF::Types::FontResolveRun] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/font_resolve_run.rb b/lib/CloudPDF/types/font_resolve_run.rb new file mode 100644 index 00000000..1c42360b --- /dev/null +++ b/lib/CloudPDF/types/font_resolve_run.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class FontResolveRun < Internal::Types::Model + field :text, -> { String }, optional: false, nullable: false + + field :font_family, -> { String }, optional: true, nullable: false, api_name: "fontFamily" + + field :family, -> { String }, optional: true, nullable: false + + field :weight, -> { Integer }, optional: true, nullable: false + + field :italic, -> { Internal::Types::Boolean }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/font_restrictions_item.rb b/lib/CloudPDF/types/font_restrictions_item.rb new file mode 100644 index 00000000..2434babc --- /dev/null +++ b/lib/CloudPDF/types/font_restrictions_item.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontRestrictionsItem + extend CloudPDF::Internal::Types::Enum + + SUBSET = "subset" + NOT_EMBEDDED = "not-embedded" + PREVIEW_AND_PRINT = "preview-and-print" + UNSUPPORTED_FORMAT = "unsupported-format" + NO_UNICODE_MAP = "no-unicode-map" + NOT_SERVED = "not-served" + end + end +end diff --git a/lib/CloudPDF/types/font_source.rb b/lib/CloudPDF/types/font_source.rb new file mode 100644 index 00000000..0c67a24b --- /dev/null +++ b/lib/CloudPDF/types/font_source.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module FontSource + extend CloudPDF::Internal::Types::Enum + + STANDARD = "standard" + ENGINE = "engine" + DOCUMENT = "document" + end + end +end diff --git a/lib/CloudPDF/types/form_mutation_meta.rb b/lib/CloudPDF/types/form_mutation_meta.rb index 8e12734d..618bbe2b 100644 --- a/lib/CloudPDF/types/form_mutation_meta.rb +++ b/lib/CloudPDF/types/form_mutation_meta.rb @@ -11,6 +11,8 @@ class FormMutationMeta < Internal::Types::Model field :undoable, -> { Internal::Types::Boolean }, optional: false, nullable: false + field :missing_characters, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "missingCharacters" + field :changed_fields, -> { Internal::Types::Array[CloudPDF::Types::FormFieldRef] }, optional: false, nullable: false, api_name: "changedFields" field :changed_widgets, -> { Internal::Types::Array[CloudPDF::Types::FormWidget] }, optional: false, nullable: false, api_name: "changedWidgets" diff --git a/lib/CloudPDF/types/grants_update403response.rb b/lib/CloudPDF/types/grants_update403response.rb new file mode 100644 index 00000000..8336da19 --- /dev/null +++ b/lib/CloudPDF/types/grants_update403response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module GrantsUpdate403Response + # GrantsUpdate403Response is an alias for AdminErrorPayload + + # @option str [String] + # + # @return [untyped] + def self.load(str) + ::JSON.parse(str) + end + + # @option value [untyped] + # + # @return [String] + def self.dump(value) + ::JSON.generate(value) + end + end + end +end diff --git a/lib/CloudPDF/types/mutation_meta.rb b/lib/CloudPDF/types/mutation_meta.rb index edc6b7d2..01dbf447 100644 --- a/lib/CloudPDF/types/mutation_meta.rb +++ b/lib/CloudPDF/types/mutation_meta.rb @@ -10,6 +10,8 @@ class MutationMeta < Internal::Types::Model field :op_id, -> { String }, optional: false, nullable: false, api_name: "opId" field :undoable, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :missing_characters, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "missingCharacters" end end end diff --git a/lib/CloudPDF/types/outline_mutation_meta.rb b/lib/CloudPDF/types/outline_mutation_meta.rb index 9a1d48fc..4ba6e455 100644 --- a/lib/CloudPDF/types/outline_mutation_meta.rb +++ b/lib/CloudPDF/types/outline_mutation_meta.rb @@ -11,6 +11,8 @@ class OutlineMutationMeta < Internal::Types::Model field :undoable, -> { Internal::Types::Boolean }, optional: false, nullable: false + field :missing_characters, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "missingCharacters" + field :changed, -> { Internal::Types::Array[CloudPDF::Types::OutlineItemRef] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/resolved_font_run.rb b/lib/CloudPDF/types/resolved_font_run.rb new file mode 100644 index 00000000..90c21e58 --- /dev/null +++ b/lib/CloudPDF/types/resolved_font_run.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class ResolvedFontRun < Internal::Types::Model + field :font, -> { String }, optional: false, nullable: false + + field :weight, -> { Integer }, optional: false, nullable: false + + field :italic, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :substituted, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :program, -> { String }, optional: false, nullable: true + + field :fallbacks, -> { Internal::Types::Array[String] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/tokens_issue_request.rb b/lib/CloudPDF/types/tokens_issue_request.rb index 364cedde..1ba58fc5 100644 --- a/lib/CloudPDF/types/tokens_issue_request.rb +++ b/lib/CloudPDF/types/tokens_issue_request.rb @@ -10,6 +10,8 @@ class TokensIssueRequest < Internal::Types::Model member -> { CloudPDF::Types::TokensIssueRequestDoc }, key: "DOC" member -> { CloudPDF::Types::TokensIssueRequestTenant }, key: "TENANT" + + member -> { CloudPDF::Types::TokensIssueRequestUpload }, key: "UPLOAD" end end end diff --git a/lib/CloudPDF/types/tokens_issue_request_upload.rb b/lib/CloudPDF/types/tokens_issue_request_upload.rb new file mode 100644 index 00000000..2ddab787 --- /dev/null +++ b/lib/CloudPDF/types/tokens_issue_request_upload.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class TokensIssueRequestUpload < Internal::Types::Model + field :sub, -> { String }, optional: false, nullable: false + + field :folder_id, -> { String }, optional: true, nullable: false, api_name: "folderId" + + field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + + field :max_files, -> { Integer }, optional: true, nullable: false, api_name: "maxFiles" + + field :max_bytes, -> { Integer }, optional: true, nullable: false, api_name: "maxBytes" + + field :origins, -> { Internal::Types::Array[String] }, optional: true, nullable: false + + field :expires_in, -> { Integer }, optional: false, nullable: false, api_name: "expiresIn" + end + end +end diff --git a/lib/CloudPDF/types/widget_annotation.rb b/lib/CloudPDF/types/widget_annotation.rb index 51f45f46..26d64a7d 100644 --- a/lib/CloudPDF/types/widget_annotation.rb +++ b/lib/CloudPDF/types/widget_annotation.rb @@ -13,6 +13,8 @@ class WidgetAnnotation < Internal::Types::Model field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState" + field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition" + field :nm, -> { String }, optional: false, nullable: true field :rect, -> { CloudPDF::Types::WidgetAnnotationRect }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/widget_patch.rb b/lib/CloudPDF/types/widget_patch.rb index 76a9c6d2..6813cd90 100644 --- a/lib/CloudPDF/types/widget_patch.rb +++ b/lib/CloudPDF/types/widget_patch.rb @@ -13,6 +13,8 @@ class WidgetPatch < Internal::Types::Model field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState" + field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition" + field :nm, -> { String }, optional: true, nullable: false field :rect, -> { CloudPDF::Types::WidgetPatchRect }, optional: true, nullable: false diff --git a/lib/CloudPDF/version.rb b/lib/CloudPDF/version.rb index d781a054..544524a0 100644 --- a/lib/CloudPDF/version.rb +++ b/lib/CloudPDF/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module CloudPDF - VERSION = "3.0.0.alpha.19" + VERSION = "3.0.0.alpha.20" end diff --git a/lib/cloudpdf.rb b/lib/cloudpdf.rb index 6cc4f97d..19e586d3 100644 --- a/lib/cloudpdf.rb +++ b/lib/cloudpdf.rb @@ -722,6 +722,7 @@ require_relative "CloudPDF/types/change_op_pages_insert_blank" require_relative "CloudPDF/types/change_op_pages_insert_resources" require_relative "CloudPDF/types/change_op_pages_insert" +require_relative "CloudPDF/types/change_op_pages_copy" require_relative "CloudPDF/types/change_op_attachments_create_resources" require_relative "CloudPDF/types/change_op_attachments_create" require_relative "CloudPDF/types/change_op_attachments_delete" @@ -1214,6 +1215,8 @@ require_relative "CloudPDF/types/change_item_pages_rotate_layout_pages_item_boxes" require_relative "CloudPDF/types/change_item_pages_rotate_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/change_item_pages_rotate_layout_pages_item" +require_relative "CloudPDF/types/change_item_pages_rotate_layout_labels_item_style" +require_relative "CloudPDF/types/change_item_pages_rotate_layout_labels_item" require_relative "CloudPDF/types/change_item_pages_rotate_layout_named_pages_item_target_page" require_relative "CloudPDF/types/change_item_pages_rotate_layout_named_pages_item_target_template" require_relative "CloudPDF/types/change_item_pages_rotate_layout_named_pages_item_target_dangling" @@ -1231,6 +1234,8 @@ require_relative "CloudPDF/types/change_item_pages_reorder_layout_pages_item_boxes" require_relative "CloudPDF/types/change_item_pages_reorder_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/change_item_pages_reorder_layout_pages_item" +require_relative "CloudPDF/types/change_item_pages_reorder_layout_labels_item_style" +require_relative "CloudPDF/types/change_item_pages_reorder_layout_labels_item" require_relative "CloudPDF/types/change_item_pages_reorder_layout_named_pages_item_target_page" require_relative "CloudPDF/types/change_item_pages_reorder_layout_named_pages_item_target_template" require_relative "CloudPDF/types/change_item_pages_reorder_layout_named_pages_item_target_dangling" @@ -1248,6 +1253,8 @@ require_relative "CloudPDF/types/change_item_pages_delete_layout_pages_item_boxes" require_relative "CloudPDF/types/change_item_pages_delete_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/change_item_pages_delete_layout_pages_item" +require_relative "CloudPDF/types/change_item_pages_delete_layout_labels_item_style" +require_relative "CloudPDF/types/change_item_pages_delete_layout_labels_item" require_relative "CloudPDF/types/change_item_pages_delete_layout_named_pages_item_target_page" require_relative "CloudPDF/types/change_item_pages_delete_layout_named_pages_item_target_template" require_relative "CloudPDF/types/change_item_pages_delete_layout_named_pages_item_target_dangling" @@ -1265,6 +1272,8 @@ require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_pages_item_boxes" require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_pages_item" +require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_labels_item_style" +require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_labels_item" require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_named_pages_item_target_page" require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_named_pages_item_target_template" require_relative "CloudPDF/types/change_item_pages_insert_blank_layout_named_pages_item_target_dangling" @@ -1282,6 +1291,8 @@ require_relative "CloudPDF/types/change_item_pages_insert_layout_pages_item_boxes" require_relative "CloudPDF/types/change_item_pages_insert_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/change_item_pages_insert_layout_pages_item" +require_relative "CloudPDF/types/change_item_pages_insert_layout_labels_item_style" +require_relative "CloudPDF/types/change_item_pages_insert_layout_labels_item" require_relative "CloudPDF/types/change_item_pages_insert_layout_named_pages_item_target_page" require_relative "CloudPDF/types/change_item_pages_insert_layout_named_pages_item_target_template" require_relative "CloudPDF/types/change_item_pages_insert_layout_named_pages_item_target_dangling" @@ -1289,6 +1300,25 @@ require_relative "CloudPDF/types/change_item_pages_insert_layout_named_pages_item" require_relative "CloudPDF/types/change_item_pages_insert_layout" require_relative "CloudPDF/types/change_item_pages_insert" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_size" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_tab_order" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_media" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_crop" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_bleed" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_trim" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_art" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item_pdf_crop_box" +require_relative "CloudPDF/types/change_item_pages_copy_layout_pages_item" +require_relative "CloudPDF/types/change_item_pages_copy_layout_labels_item_style" +require_relative "CloudPDF/types/change_item_pages_copy_layout_labels_item" +require_relative "CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_page" +require_relative "CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_template" +require_relative "CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_dangling" +require_relative "CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target" +require_relative "CloudPDF/types/change_item_pages_copy_layout_named_pages_item" +require_relative "CloudPDF/types/change_item_pages_copy_layout" +require_relative "CloudPDF/types/change_item_pages_copy" require_relative "CloudPDF/types/change_item_pages_restore_layout_pages_item_size" require_relative "CloudPDF/types/change_item_pages_restore_layout_pages_item_tab_order" require_relative "CloudPDF/types/change_item_pages_restore_layout_pages_item_boxes_media" @@ -1299,6 +1329,8 @@ require_relative "CloudPDF/types/change_item_pages_restore_layout_pages_item_boxes" require_relative "CloudPDF/types/change_item_pages_restore_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/change_item_pages_restore_layout_pages_item" +require_relative "CloudPDF/types/change_item_pages_restore_layout_labels_item_style" +require_relative "CloudPDF/types/change_item_pages_restore_layout_labels_item" require_relative "CloudPDF/types/change_item_pages_restore_layout_named_pages_item_target_page" require_relative "CloudPDF/types/change_item_pages_restore_layout_named_pages_item_target_template" require_relative "CloudPDF/types/change_item_pages_restore_layout_named_pages_item_target_dangling" @@ -1311,6 +1343,23 @@ require_relative "CloudPDF/types/change_item_attachments_restore" require_relative "CloudPDF/types/change_item" require_relative "CloudPDF/types/change_result" +require_relative "CloudPDF/types/font_program_embedded" +require_relative "CloudPDF/types/font_program_format" +require_relative "CloudPDF/types/font_program_embedding_permission" +require_relative "CloudPDF/types/font_program" +require_relative "CloudPDF/types/font_source" +require_relative "CloudPDF/types/font_restrictions_item" +require_relative "CloudPDF/types/font" +require_relative "CloudPDF/types/font_list" +require_relative "CloudPDF/types/font_program_info_embedded" +require_relative "CloudPDF/types/font_program_info_format" +require_relative "CloudPDF/types/font_program_info_embedding_permission" +require_relative "CloudPDF/types/font_program_info_covers_item" +require_relative "CloudPDF/types/font_program_info" +require_relative "CloudPDF/types/font_resolve_run" +require_relative "CloudPDF/types/font_resolve_request" +require_relative "CloudPDF/types/resolved_font_run" +require_relative "CloudPDF/types/font_resolution" require_relative "CloudPDF/types/tenants_create200response_tenant_status" require_relative "CloudPDF/types/tenants_create200response_tenant" require_relative "CloudPDF/types/tenants_create200response" @@ -1348,6 +1397,7 @@ require_relative "CloudPDF/types/documents_init200response_deduped" require_relative "CloudPDF/types/documents_init200response" require_relative "CloudPDF/types/documents_init400response" +require_relative "CloudPDF/types/documents_init403response" require_relative "CloudPDF/types/documents_commit200response_document_state" require_relative "CloudPDF/types/documents_commit200response_document_thumbnail_state" require_relative "CloudPDF/types/documents_commit200response_document" @@ -1356,6 +1406,7 @@ require_relative "CloudPDF/types/documents_commit404response" require_relative "CloudPDF/types/documents_upload_proxy200response" require_relative "CloudPDF/types/documents_upload_proxy400response" +require_relative "CloudPDF/types/documents_upload_proxy404response" require_relative "CloudPDF/types/documents_upload_proxy409response" require_relative "CloudPDF/types/documents_import_from200response_tag" require_relative "CloudPDF/types/documents_import_from200response_document_state" @@ -1434,6 +1485,7 @@ require_relative "CloudPDF/types/deployment_license_status_response" require_relative "CloudPDF/types/tokens_issue_request_doc" require_relative "CloudPDF/types/tokens_issue_request_tenant" +require_relative "CloudPDF/types/tokens_issue_request_upload" require_relative "CloudPDF/types/tokens_issue_request" require_relative "CloudPDF/types/tokens_issue200response" require_relative "CloudPDF/types/tokens_issue400response" @@ -1496,6 +1548,7 @@ require_relative "CloudPDF/types/grants_update200response_grant" require_relative "CloudPDF/types/grants_update200response" require_relative "CloudPDF/types/grants_update400response" +require_relative "CloudPDF/types/grants_update403response" require_relative "CloudPDF/types/grants_update404response" require_relative "CloudPDF/types/grants_update409response" require_relative "CloudPDF/types/grants_archive200response_grant_layer_mode" @@ -1577,6 +1630,16 @@ require_relative "CloudPDF/types/doc_attachments_download400response" require_relative "CloudPDF/types/doc_attachments_download404response" require_relative "CloudPDF/types/doc_attachments_download413response" +require_relative "CloudPDF/types/doc_fonts_list200response" +require_relative "CloudPDF/types/doc_fonts_list404response" +require_relative "CloudPDF/types/doc_fonts_resolve_request" +require_relative "CloudPDF/types/doc_fonts_resolve200response" +require_relative "CloudPDF/types/doc_fonts_resolve400response" +require_relative "CloudPDF/types/doc_fonts_resolve404response" +require_relative "CloudPDF/types/doc_fonts_programs_get200response" +require_relative "CloudPDF/types/doc_fonts_programs_get404response" +require_relative "CloudPDF/types/doc_fonts_programs_download403response" +require_relative "CloudPDF/types/doc_fonts_programs_download404response" require_relative "CloudPDF/types/doc_signatures_list200response_revisions_item" require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_kind" require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_coverage" @@ -1809,6 +1872,8 @@ require_relative "CloudPDF/types/doc_pages_set_name200response_layout_pages_item_boxes" require_relative "CloudPDF/types/doc_pages_set_name200response_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/doc_pages_set_name200response_layout_pages_item" +require_relative "CloudPDF/types/doc_pages_set_name200response_layout_labels_item_style" +require_relative "CloudPDF/types/doc_pages_set_name200response_layout_labels_item" require_relative "CloudPDF/types/doc_pages_set_name200response_layout_named_pages_item_target_page" require_relative "CloudPDF/types/doc_pages_set_name200response_layout_named_pages_item_target_template" require_relative "CloudPDF/types/doc_pages_set_name200response_layout_named_pages_item_target_dangling" @@ -1829,6 +1894,8 @@ require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_pages_item_boxes" require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_pages_item_pdf_crop_box" require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_pages_item" +require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_labels_item_style" +require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_labels_item" require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_named_pages_item_target_page" require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_named_pages_item_target_template" require_relative "CloudPDF/types/doc_pages_remove_name200response_layout_named_pages_item_target_dangling" @@ -1919,6 +1986,9 @@ require_relative "CloudPDF/doc/attachments/client" require_relative "CloudPDF/doc/attachments/types/download_attachments_request" require_relative "CloudPDF/doc/attachments/types/list_attachments_request" +require_relative "CloudPDF/doc/fonts/client" +require_relative "CloudPDF/doc/fonts/types/list_fonts_request" +require_relative "CloudPDF/doc/fonts/types/resolve_fonts_request" require_relative "CloudPDF/doc/forms/client" require_relative "CloudPDF/doc/forms/types/list_forms_request" require_relative "CloudPDF/doc/forms/types/doc_forms_reorder_calculations_request" @@ -1954,6 +2024,9 @@ require_relative "CloudPDF/doc/versions/types/signatures_versions_request" require_relative "CloudPDF/doc/versions/types/signature_contents_versions_request" require_relative "CloudPDF/doc/versions/types/signature_digest_versions_request" +require_relative "CloudPDF/doc/fonts/programs/client" +require_relative "CloudPDF/doc/fonts/programs/types/download_programs_request" +require_relative "CloudPDF/doc/fonts/programs/types/get_programs_request" require_relative "CloudPDF/doc/metadata/custom/client" require_relative "CloudPDF/doc/metadata/custom/types/get_custom_request" require_relative "CloudPDF/documents/layers/client" @@ -1962,3 +2035,4 @@ require_relative "CloudPDF/grants/visitors/client" require_relative "CloudPDF/grants/visitors/types/list_visitors_request" require_relative "CloudPDF/grants/visitors/types/delete_visitors_request" +require_relative "CloudPDF/environment" diff --git a/reference.md b/reference.md index 195f6350..f46540ab 100644 --- a/reference.md +++ b/reference.md @@ -765,7 +765,7 @@ client.grants.list(tenant_id: "tenantId")
client.doc.fonts.list(doc_id:, layer_name:) -> CloudPDF::Types::FontListclient.doc.fonts.resolve(doc_id:, layer_name:, request) -> CloudPDF::Types::FontResolutionclient.doc.fonts.programs.download(doc_id:, layer_name:, display_hash:) -> Stringclient.doc.fonts.programs.get(doc_id:, layer_name:, display_hash:) -> CloudPDF::Types::FontProgramInfo