diff --git a/.fern/metadata.json b/.fern/metadata.json index 9ba1211..1924645 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -5,9 +5,9 @@ "generatorConfig": { "moduleName": "CloudPDF" }, - "originGitCommit": "b0888bd6ca83627cb07ea05c440e35c183cebbd0", + "originGitCommit": "5f2d480665034420df58c19fd1328b0823104e0f", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0.alpha.12", + "requestedVersion": "3.0.0.alpha.13", "ciProvider": "github" } \ No newline at end of file diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index 14a424d..4135808 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "ruby", - "canonicalVersion": "3.0.0-next.12", - "sdkVersion": "3.0.0.alpha.12", + "canonicalVersion": "3.0.0-next.13", + "sdkVersion": "3.0.0.alpha.13", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "501ec54f2f28089dc8a3cf3a8d2ff3ade44c6c35d47977a3dfa47465fb83a049", - "gitCommit": "b0888bd6ca83627cb07ea05c440e35c183cebbd0", + "openapiSha256": "a472da9c7aed5db7f2b6b1f67f1b6268a9407afe9e7cf879ac04b878b4fc9dc7", + "gitCommit": "5f2d480665034420df58c19fd1328b0823104e0f", "gitCommitIsDirty": false }, "fern": { diff --git a/lib/CloudPDF/doc/client.rb b/lib/CloudPDF/doc/client.rb index aba5c0c..4b1c0ca 100644 --- a/lib/CloudPDF/doc/client.rb +++ b/lib/CloudPDF/doc/client.rb @@ -253,6 +253,16 @@ def pages def redactions @redactions ||= CloudPDF::Doc::Redactions::Client.new(client: @client) end + + # @return [CloudPDF::Signatures::Client] + def signatures + @signatures ||= CloudPDF::Doc::Signatures::Client.new(client: @client) + end + + # @return [CloudPDF::Versions::Client] + def versions + @versions ||= CloudPDF::Doc::Versions::Client.new(client: @client) + end end end end diff --git a/lib/CloudPDF/doc/signatures/client.rb b/lib/CloudPDF/doc/signatures/client.rb new file mode 100644 index 0000000..6c42585 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/client.rb @@ -0,0 +1,276 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + class Client + # @param client [CloudPDF::Internal::Http::RawClient] + # + # @return [void] + def initialize(client:) + @client = client + end + + # Describes the bytes the layer is over: the base version's signatures plus the layer's own edits as the last + # revision. Signed bytes (contents, digests, revision prefixes) are served per base version under /versions. + # + # @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.signatures.list( + # doc_id: "docId", + # layer_name: "layerName" + # ) + # + # @return [CloudPDF::Types::DocSignaturesList200Response] + 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)}/signatures", + 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) + CloudPDF::Types::DocSignaturesList200Response.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 [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] :signing_id + # @option params [String, nil] :document_password + # + # @example + # client.doc.signatures.abort( + # doc_id: "docId", + # layer_name: "layerName", + # signing_id: "signingId" + # ) + # + # @return [CloudPDF::Types::DocSignaturesAbort200Response] + def abort(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: "DELETE", + path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/signatures/#{URI.encode_uri_component(params[:signing_id].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) + CloudPDF::Types::DocSignaturesAbort200Response.load(response.body) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + + # `cms` is the detached CMS over the prepared digest, base64. `expectedVersion` must be what prepare returned. + # Idempotent by signing id: the same CMS again answers `already-completed`. Every layer of the document then + # sits over the new version; refetch the manifest after a completion. + # + # @param request_options [Hash] + # @param params [CloudPDF::Doc::Signatures::Types::DocSignaturesCompleteRequest] + # @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] :signing_id + # @option params [String, nil] :document_password + # + # @example + # client.doc.signatures.complete( + # doc_id: "docId", + # layer_name: "layerName", + # signing_id: "signingId", + # cms: "cms", + # expected_version: { + # base_sha256: "baseSha256", + # edits_version: 1 + # } + # ) + # + # @return [CloudPDF::Types::DocSignaturesComplete200Response] + def complete(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + request_data = CloudPDF::Doc::Signatures::Types::DocSignaturesCompleteRequest.new(params).to_h + non_body_param_names = %w[docId layerName signingId X-Document-Password] + body = request_data.except(*non_body_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)}/signatures/#{URI.encode_uri_component(params[:signing_id].to_s)}/complete", + headers: headers, + body: body, + 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) + CloudPDF::Types::DocSignaturesComplete200Response.load(response.body) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + + # Exactly one of `since.signature=` or `since.revision=`; the layer's pending edits are the end. + # `level=fill|annotate|lta|none` evaluates exploratorily and never becomes a verdict. For history between two + # base revisions use the version analysis. + # + # @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 [Integer, nil] :since_signature + # @option params [Integer, nil] :since_revision + # @option params [CloudPDF::Doc::Signatures::Types::AnalysisSignaturesRequestLevel, nil] :level + # @option params [String, nil] :document_password + # + # @example + # client.doc.signatures.analysis( + # doc_id: "docId", + # layer_name: "layerName" + # ) + # + # @return [CloudPDF::Types::DocSignaturesAnalysis200Response] + def analysis(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + query_params = {} + query_params["since.signature"] = params[:since_signature] if params.key?(:since_signature) + query_params["since.revision"] = params[:since_revision] if params.key?(:since_revision) + query_params["level"] = params[:level] if params.key?(:level) + + 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)}/signatures/analysis", + headers: headers, + query: query_params, + 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) + CloudPDF::Types::DocSignaturesAnalysis200Response.load(response.body) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + + # The multipart envelope: a JSON `body` part (field, subFilter, digest, contentsSize, signer, certify, lock, + # appearance) and an optional `resource:` PDF part the body's `appearance.resource` names. A certification + # (`certify.permission`) additionally requires `doc.sign.certify`. The layer is read-only until the signing + # completes, is aborted, or expires (15 minutes). A layer behind the document head cannot sign (StaleBase). + # + # @param request_options [Hash] + # @param params [void] + # @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.signatures.prepare( + # doc_id: "docId", + # layer_name: "layerName" + # ) + # + # @return [CloudPDF::Types::DocSignaturesPrepare200Response] + def prepare(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + body = Internal::Multipart::FormData.new + + body.add_part(params[:file].to_form_data_part(name: "file")) if params[:file] + + request = CloudPDF::Internal::Multipart::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)}/signatures/prepare", + body: body, + 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) + CloudPDF::Types::DocSignaturesPrepare200Response.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 diff --git a/lib/CloudPDF/doc/signatures/types/abort_signatures_request.rb b/lib/CloudPDF/doc/signatures/types/abort_signatures_request.rb new file mode 100644 index 0000000..bc5c701 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/types/abort_signatures_request.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + module Types + class AbortSignaturesRequest < 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 :signing_id, -> { String }, optional: false, nullable: false, api_name: "signingId" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/signatures/types/analysis_signatures_request.rb b/lib/CloudPDF/doc/signatures/types/analysis_signatures_request.rb new file mode 100644 index 0000000..957aa89 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/types/analysis_signatures_request.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + module Types + class AnalysisSignaturesRequest < 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 :since_signature, -> { Integer }, optional: true, nullable: false, api_name: "since.signature" + + field :since_revision, -> { Integer }, optional: true, nullable: false, api_name: "since.revision" + + field :level, -> { CloudPDF::Doc::Signatures::Types::AnalysisSignaturesRequestLevel }, optional: true, nullable: false + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/signatures/types/analysis_signatures_request_level.rb b/lib/CloudPDF/doc/signatures/types/analysis_signatures_request_level.rb new file mode 100644 index 0000000..6879323 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/types/analysis_signatures_request_level.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + module Types + module AnalysisSignaturesRequestLevel + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request.rb b/lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request.rb new file mode 100644 index 0000000..33d9ce7 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + module Types + class DocSignaturesCompleteRequest < 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 :signing_id, -> { String }, optional: false, nullable: false, api_name: "signingId" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + + field :cms, -> { String }, optional: false, nullable: false + + field :expected_version, -> { CloudPDF::Doc::Signatures::Types::DocSignaturesCompleteRequestExpectedVersion }, optional: false, nullable: false, api_name: "expectedVersion" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request_expected_version.rb b/lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request_expected_version.rb new file mode 100644 index 0000000..0db4531 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request_expected_version.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + module Types + class DocSignaturesCompleteRequestExpectedVersion < Internal::Types::Model + field :base_sha256, -> { String }, optional: false, nullable: false, api_name: "baseSha256" + + field :edits_version, -> { Integer }, optional: false, nullable: false, api_name: "editsVersion" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/signatures/types/list_signatures_request.rb b/lib/CloudPDF/doc/signatures/types/list_signatures_request.rb new file mode 100644 index 0000000..c3ec519 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/types/list_signatures_request.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + module Types + class ListSignaturesRequest < 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/signatures/types/prepare_signatures_request.rb b/lib/CloudPDF/doc/signatures/types/prepare_signatures_request.rb new file mode 100644 index 0000000..275f7a7 --- /dev/null +++ b/lib/CloudPDF/doc/signatures/types/prepare_signatures_request.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Signatures + module Types + class PrepareSignaturesRequest < 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/versions/client.rb b/lib/CloudPDF/doc/versions/client.rb new file mode 100644 index 0000000..aa5fae7 --- /dev/null +++ b/lib/CloudPDF/doc/versions/client.rb @@ -0,0 +1,342 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + class Client + # @param client [CloudPDF::Internal::Http::RawClient] + # + # @return [void] + def initialize(client:) + @client = client + end + + # Every completed signature publishes a new version. Never cached: the list grows. + # + # @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, nil] :document_password + # + # @example + # client.doc.versions.list(doc_id: "docId") + # + # @return [CloudPDF::Types::DocVersionsList200Response] + 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)}/versions", + 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) + CloudPDF::Types::DocVersionsList200Response.load(response.body) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + + # Exactly one of `since.signature` / `since.revision`; `until=` defaults to the last. The same answer + # for every layer and every caller. + # + # @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] :sha + # @option params [Integer, nil] :since_signature + # @option params [Integer, nil] :since_revision + # @option params [CloudPDF::Doc::Versions::Types::AnalysisVersionsRequestLevel, nil] :level + # @option params [Integer, nil] :until_ + # @option params [Integer, nil] :policy + # @option params [String, nil] :document_password + # + # @example + # client.doc.versions.analysis( + # doc_id: "docId", + # sha: "sha" + # ) + # + # @return [CloudPDF::Types::DocVersionsAnalysis200Response] + def analysis(request_options: {}, **params) + params = CloudPDF::Internal::Types::Utils.normalize_keys(params) + query_params = {} + query_params["since.signature"] = params[:since_signature] if params.key?(:since_signature) + query_params["since.revision"] = params[:since_revision] if params.key?(:since_revision) + query_params["level"] = params[:level] if params.key?(:level) + query_params["until"] = params[:until_] if params.key?(:until_) + query_params["policy"] = params[:policy] if params.key?(:policy) + + 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)}/versions/analysis/#{URI.encode_uri_component(params[:sha].to_s)}", + headers: headers, + query: query_params, + 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) + CloudPDF::Types::DocVersionsAnalysis200Response.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 [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] :sha + # @option params [String, nil] :document_password + # + # @example + # client.doc.versions.download( + # doc_id: "docId", + # sha: "sha" + # ) + # + # @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)}/versions/download/#{URI.encode_uri_component(params[:sha].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] :sha + # @option params [Integer] :index + # @option params [String, nil] :document_password + # + # @example + # client.doc.versions.revision( + # doc_id: "docId", + # sha: "sha", + # index: 1 + # ) + # + # @return [untyped] + def revision(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)}/versions/revisions/#{URI.encode_uri_component(params[:sha].to_s)}/#{URI.encode_uri_component(params[:index].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] :sha + # @option params [String, nil] :document_password + # + # @example + # client.doc.versions.signatures( + # doc_id: "docId", + # sha: "sha" + # ) + # + # @return [CloudPDF::Types::DocVersionsSignatures200Response] + def signatures(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)}/versions/signatures/#{URI.encode_uri_component(params[:sha].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) + CloudPDF::Types::DocVersionsSignatures200Response.load(response.body) + else + error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + + # `fieldKey` is the field's fully qualified name, token-text encoded (the same encoding attachment keys use). + # + # @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] :sha + # @option params [String] :field_key + # @option params [String, nil] :document_password + # + # @example + # client.doc.versions.signature_contents( + # doc_id: "docId", + # sha: "sha", + # field_key: "fieldKey" + # ) + # + # @return [untyped] + def signature_contents(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)}/versions/signatures/#{URI.encode_uri_component(params[:sha].to_s)}/#{URI.encode_uri_component(params[:field_key].to_s)}/contents", + 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 + + # What a CMS verifier compares its message digest to. + # + # @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] :sha + # @option params [String] :field_key + # @option params [CloudPDF::Doc::Versions::Types::SignatureDigestVersionsRequestAlgorithm] :algorithm + # @option params [String, nil] :document_password + # + # @example + # client.doc.versions.signature_digest( + # doc_id: "docId", + # sha: "sha", + # field_key: "fieldKey", + # algorithm: "sha1" + # ) + # + # @return [untyped] + def signature_digest(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)}/versions/signatures/#{URI.encode_uri_component(params[:sha].to_s)}/#{URI.encode_uri_component(params[:field_key].to_s)}/digest/#{URI.encode_uri_component(params[:algorithm].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 + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/analysis_versions_request.rb b/lib/CloudPDF/doc/versions/types/analysis_versions_request.rb new file mode 100644 index 0000000..b4c8950 --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/analysis_versions_request.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + class AnalysisVersionsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :sha, -> { String }, optional: false, nullable: false + + field :since_signature, -> { Integer }, optional: true, nullable: false, api_name: "since.signature" + + field :since_revision, -> { Integer }, optional: true, nullable: false, api_name: "since.revision" + + field :level, -> { CloudPDF::Doc::Versions::Types::AnalysisVersionsRequestLevel }, optional: true, nullable: false + + field :until_, -> { Integer }, optional: true, nullable: false, api_name: "until" + + field :policy, -> { Integer }, optional: true, nullable: false + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/analysis_versions_request_level.rb b/lib/CloudPDF/doc/versions/types/analysis_versions_request_level.rb new file mode 100644 index 0000000..02228d6 --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/analysis_versions_request_level.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + module AnalysisVersionsRequestLevel + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/download_versions_request.rb b/lib/CloudPDF/doc/versions/types/download_versions_request.rb new file mode 100644 index 0000000..9ee0ce3 --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/download_versions_request.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + class DownloadVersionsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :sha, -> { String }, optional: false, nullable: false + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/list_versions_request.rb b/lib/CloudPDF/doc/versions/types/list_versions_request.rb new file mode 100644 index 0000000..a63ec35 --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/list_versions_request.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + class ListVersionsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/revision_versions_request.rb b/lib/CloudPDF/doc/versions/types/revision_versions_request.rb new file mode 100644 index 0000000..fc274a5 --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/revision_versions_request.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + class RevisionVersionsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :sha, -> { String }, optional: false, nullable: false + + field :index, -> { Integer }, optional: false, nullable: false + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/signature_contents_versions_request.rb b/lib/CloudPDF/doc/versions/types/signature_contents_versions_request.rb new file mode 100644 index 0000000..c954f8b --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/signature_contents_versions_request.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + class SignatureContentsVersionsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :sha, -> { String }, optional: false, nullable: false + + field :field_key, -> { String }, optional: false, nullable: false, api_name: "fieldKey" + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/signature_digest_versions_request.rb b/lib/CloudPDF/doc/versions/types/signature_digest_versions_request.rb new file mode 100644 index 0000000..f604b30 --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/signature_digest_versions_request.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + class SignatureDigestVersionsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :sha, -> { String }, optional: false, nullable: false + + field :field_key, -> { String }, optional: false, nullable: false, api_name: "fieldKey" + + field :algorithm, -> { CloudPDF::Doc::Versions::Types::SignatureDigestVersionsRequestAlgorithm }, optional: false, nullable: false + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/signature_digest_versions_request_algorithm.rb b/lib/CloudPDF/doc/versions/types/signature_digest_versions_request_algorithm.rb new file mode 100644 index 0000000..7acaa16 --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/signature_digest_versions_request_algorithm.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + module SignatureDigestVersionsRequestAlgorithm + extend CloudPDF::Internal::Types::Enum + + SHA1 = "sha1" + SHA256 = "sha256" + SHA384 = "sha384" + SHA512 = "sha512" + end + end + end + end +end diff --git a/lib/CloudPDF/doc/versions/types/signatures_versions_request.rb b/lib/CloudPDF/doc/versions/types/signatures_versions_request.rb new file mode 100644 index 0000000..fd9e32e --- /dev/null +++ b/lib/CloudPDF/doc/versions/types/signatures_versions_request.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Doc + module Versions + module Types + class SignaturesVersionsRequest < Internal::Types::Model + field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId" + + field :sha, -> { String }, optional: false, nullable: false + + field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password" + end + end + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_create200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_annotations_create200response_meta_cache_delta.rb index 75322e4..eb2db03 100644 --- a/lib/CloudPDF/types/doc_annotations_create200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_annotations_create200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocAnnotationsCreate200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_annotations_create400response_code.rb b/lib/CloudPDF/types/doc_annotations_create400response_code.rb index fefaa06..4468fc8 100644 --- a/lib/CloudPDF/types/doc_annotations_create400response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_create400response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsCreate400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_create404response_code.rb b/lib/CloudPDF/types/doc_annotations_create404response_code.rb index 254f257..49ed495 100644 --- a/lib/CloudPDF/types/doc_annotations_create404response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_create404response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsCreate404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_delete200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_annotations_delete200response_meta_cache_delta.rb index 5a6bc15..65b8c2e 100644 --- a/lib/CloudPDF/types/doc_annotations_delete200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_annotations_delete200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocAnnotationsDelete200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_annotations_delete404response_code.rb b/lib/CloudPDF/types/doc_annotations_delete404response_code.rb index 8271d13..9564a3a 100644 --- a/lib/CloudPDF/types/doc_annotations_delete404response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_delete404response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsDelete404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_export_appearance400response_code.rb b/lib/CloudPDF/types/doc_annotations_export_appearance400response_code.rb index 709a5a7..6936604 100644 --- a/lib/CloudPDF/types/doc_annotations_export_appearance400response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_export_appearance400response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsExportAppearance400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_export_appearance404response_code.rb b/lib/CloudPDF/types/doc_annotations_export_appearance404response_code.rb index 0a382ab..f5dbdb0 100644 --- a/lib/CloudPDF/types/doc_annotations_export_appearance404response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_export_appearance404response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsExportAppearance404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta.rb index 733f5d9..ee79da4 100644 --- a/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocAnnotationsFlatten200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_annotations_flatten400response_code.rb b/lib/CloudPDF/types/doc_annotations_flatten400response_code.rb index 12d2244..c3f3821 100644 --- a/lib/CloudPDF/types/doc_annotations_flatten400response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_flatten400response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsFlatten400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_flatten404response_code.rb b/lib/CloudPDF/types/doc_annotations_flatten404response_code.rb index 8715473..dfa10bf 100644 --- a/lib/CloudPDF/types/doc_annotations_flatten404response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_flatten404response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsFlatten404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text.rb index a61fac9..924dd41 100644 --- a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text.rb +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text.rb @@ -45,12 +45,14 @@ class DocAnnotationsList200ResponseAnnotationsItemFreeText < Internal::Types::Mo field :intent, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextIntent }, optional: false, nullable: false - field :font_family, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily }, optional: false, nullable: false, api_name: "fontFamily" + field :font_family, -> { String }, optional: false, nullable: false, api_name: "fontFamily" field :font_size, -> { Integer }, optional: false, nullable: false, api_name: "fontSize" field :text_align, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign }, optional: false, nullable: false, api_name: "textAlign" + field :rich_text, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichText }, optional: false, nullable: false, api_name: "richText" + field :color, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextColor }, optional: false, nullable: false field :font_color, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor }, optional: true, nullable: false, api_name: "fontColor" diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_font_family.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_font_family.rb deleted file mode 100644 index e1eea1a..0000000 --- a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_font_family.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -module CloudPDF - module Types - module DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily - extend CloudPDF::Internal::Types::Enum - - COURIER = "courier" - COURIER_BOLD = "courier-bold" - COURIER_BOLD_OBLIQUE = "courier-bold-oblique" - COURIER_OBLIQUE = "courier-oblique" - HELVETICA = "helvetica" - HELVETICA_BOLD = "helvetica-bold" - HELVETICA_BOLD_OBLIQUE = "helvetica-bold-oblique" - HELVETICA_OBLIQUE = "helvetica-oblique" - TIMES_ROMAN = "times-roman" - TIMES_BOLD = "times-bold" - TIMES_BOLD_ITALIC = "times-bold-italic" - TIMES_ITALIC = "times-italic" - SYMBOL = "symbol" - ZAPF_DINGBATS = "zapf-dingbats" - end - end -end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text.rb new file mode 100644 index 0000000..044c6ec --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsList200ResponseAnnotationsItemFreeTextRichText < Internal::Types::Model + field :body, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBody }, optional: false, nullable: false + + field :paragraphs, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItem] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body.rb new file mode 100644 index 0000000..4d04452 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBody < Internal::Types::Model + field :family, -> { String }, optional: false, nullable: false + + field :weight, -> { Integer }, optional: false, nullable: false + + field :italic, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :size, -> { Integer }, optional: false, nullable: false + + field :color, -> { String }, optional: false, nullable: false + + field :decoration, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyDecorationItem] }, optional: false, nullable: false + + field :script, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyScript }, optional: false, nullable: false + + field :letter_spacing, -> { Integer }, optional: false, nullable: false, api_name: "letterSpacing" + + field :horizontal_scale, -> { Integer }, optional: false, nullable: false, api_name: "horizontalScale" + + field :unknown, -> { String }, optional: true, nullable: false + + field :align, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyAlign }, optional: false, nullable: false + + field :dir, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyDir }, optional: false, nullable: false + + field :line_height, -> { Integer }, optional: true, nullable: false, api_name: "lineHeight" + + field :margins, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyMargins }, optional: true, nullable: false + + field :text_indent, -> { Integer }, optional: true, nullable: false, api_name: "textIndent" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_align.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_align.rb new file mode 100644 index 0000000..946e97a --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_align.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyAlign + extend CloudPDF::Internal::Types::Enum + + LEFT = "left" + CENTER = "center" + RIGHT = "right" + JUSTIFY = "justify" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_decoration_item.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_decoration_item.rb new file mode 100644 index 0000000..9307e88 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_decoration_item.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyDecorationItem + extend CloudPDF::Internal::Types::Enum + + UNDERLINE = "underline" + LINE_THROUGH = "line-through" + WORD = "word" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_dir.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_dir.rb new file mode 100644 index 0000000..2e3d9f9 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_dir.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyDir + extend CloudPDF::Internal::Types::Enum + + LTR = "ltr" + RTL = "rtl" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_margins.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_margins.rb new file mode 100644 index 0000000..6af2382 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_margins.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyMargins < Internal::Types::Model + field :top, -> { Integer }, optional: false, nullable: false + + field :bottom, -> { Integer }, optional: false, nullable: false + + field :left, -> { Integer }, optional: false, nullable: false + + field :right, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_script.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_script.rb new file mode 100644 index 0000000..1904620 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_script.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextBodyScript + extend CloudPDF::Internal::Types::Enum + + NORMAL = "normal" + SUB = "sub" + SUPER = "super" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item.rb new file mode 100644 index 0000000..86502fc --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItem < Internal::Types::Model + field :align, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemAlign }, optional: true, nullable: false + + field :dir, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemDir }, optional: true, nullable: false + + field :line_height, -> { Integer }, optional: true, nullable: false, api_name: "lineHeight" + + field :margins, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemMargins }, optional: true, nullable: false + + field :text_indent, -> { Integer }, optional: true, nullable: false, api_name: "textIndent" + + field :unknown, -> { String }, optional: true, nullable: false + + field :runs, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItem] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_align.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_align.rb new file mode 100644 index 0000000..dbb0fad --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_align.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemAlign + extend CloudPDF::Internal::Types::Enum + + LEFT = "left" + CENTER = "center" + RIGHT = "right" + JUSTIFY = "justify" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_dir.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_dir.rb new file mode 100644 index 0000000..9db3198 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_dir.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemDir + extend CloudPDF::Internal::Types::Enum + + LTR = "ltr" + RTL = "rtl" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_margins.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_margins.rb new file mode 100644 index 0000000..c467a6d --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_margins.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemMargins < Internal::Types::Model + field :top, -> { Integer }, optional: false, nullable: false + + field :bottom, -> { Integer }, optional: false, nullable: false + + field :left, -> { Integer }, optional: false, nullable: false + + field :right, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_0dedd5.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_0dedd5.rb new file mode 100644 index 0000000..d5b455b --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_0dedd5.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript + extend CloudPDF::Internal::Types::Enum + + NORMAL = "normal" + SUB = "sub" + SUPER = "super" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_957038.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_957038.rb new file mode 100644 index 0000000..9872849 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_957038.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem + extend CloudPDF::Internal::Types::Enum + + UNDERLINE = "underline" + LINE_THROUGH = "line-through" + WORD = "word" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_fd1f6a.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_fd1f6a.rb new file mode 100644 index 0000000..3ea16ed --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_fd1f6a.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle < Internal::Types::Model + field :family, -> { String }, optional: true, nullable: false + + field :weight, -> { Integer }, optional: true, nullable: false + + field :italic, -> { Internal::Types::Boolean }, optional: true, nullable: false + + field :size, -> { Integer }, optional: true, nullable: false + + field :color, -> { String }, optional: true, nullable: false + + field :decoration, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem] }, optional: true, nullable: false + + field :script, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript }, optional: true, nullable: false + + field :letter_spacing, -> { Integer }, optional: true, nullable: false, api_name: "letterSpacing" + + field :horizontal_scale, -> { Integer }, optional: true, nullable: false, api_name: "horizontalScale" + + field :unknown, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_item.rb b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_item.rb new file mode 100644 index 0000000..9f8bfa1 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_item.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItem < Internal::Types::Model + field :text, -> { String }, optional: false, nullable: false + + field :style, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list404response_code.rb b/lib/CloudPDF/types/doc_annotations_list404response_code.rb index 23c6c06..c80d63a 100644 --- a/lib/CloudPDF/types/doc_annotations_list404response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_list404response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsList404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text.rb index 483fb4e..ddf6ddd 100644 --- a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text.rb +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text.rb @@ -45,12 +45,14 @@ class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText < Interna field :intent, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent }, optional: false, nullable: false - field :font_family, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily }, optional: false, nullable: false, api_name: "fontFamily" + field :font_family, -> { String }, optional: false, nullable: false, api_name: "fontFamily" field :font_size, -> { Integer }, optional: false, nullable: false, api_name: "fontSize" field :text_align, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign }, optional: false, nullable: false, api_name: "textAlign" + field :rich_text, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText }, optional: false, nullable: false, api_name: "richText" + field :color, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor }, optional: false, nullable: false field :font_color, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor }, optional: true, nullable: false, api_name: "fontColor" diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_font_family.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_font_family.rb deleted file mode 100644 index 6c90949..0000000 --- a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_font_family.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -module CloudPDF - module Types - module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily - extend CloudPDF::Internal::Types::Enum - - COURIER = "courier" - COURIER_BOLD = "courier-bold" - COURIER_BOLD_OBLIQUE = "courier-bold-oblique" - COURIER_OBLIQUE = "courier-oblique" - HELVETICA = "helvetica" - HELVETICA_BOLD = "helvetica-bold" - HELVETICA_BOLD_OBLIQUE = "helvetica-bold-oblique" - HELVETICA_OBLIQUE = "helvetica-oblique" - TIMES_ROMAN = "times-roman" - TIMES_BOLD = "times-bold" - TIMES_BOLD_ITALIC = "times-bold-italic" - TIMES_ITALIC = "times-italic" - SYMBOL = "symbol" - ZAPF_DINGBATS = "zapf-dingbats" - end - end -end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text.rb new file mode 100644 index 0000000..094bc15 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText < Internal::Types::Model + field :body, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody }, optional: false, nullable: false + + field :paragraphs, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body.rb new file mode 100644 index 0000000..7181f5d --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody < Internal::Types::Model + field :family, -> { String }, optional: false, nullable: false + + field :weight, -> { Integer }, optional: false, nullable: false + + field :italic, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :size, -> { Integer }, optional: false, nullable: false + + field :color, -> { String }, optional: false, nullable: false + + field :decoration, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem] }, optional: false, nullable: false + + field :script, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript }, optional: false, nullable: false + + field :letter_spacing, -> { Integer }, optional: false, nullable: false, api_name: "letterSpacing" + + field :horizontal_scale, -> { Integer }, optional: false, nullable: false, api_name: "horizontalScale" + + field :unknown, -> { String }, optional: true, nullable: false + + field :align, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign }, optional: false, nullable: false + + field :dir, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir }, optional: false, nullable: false + + field :line_height, -> { Integer }, optional: true, nullable: false, api_name: "lineHeight" + + field :margins, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins }, optional: true, nullable: false + + field :text_indent, -> { Integer }, optional: true, nullable: false, api_name: "textIndent" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_align.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_align.rb new file mode 100644 index 0000000..3963d8b --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_align.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign + extend CloudPDF::Internal::Types::Enum + + LEFT = "left" + CENTER = "center" + RIGHT = "right" + JUSTIFY = "justify" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_d_27cc8f.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_d_27cc8f.rb new file mode 100644 index 0000000..b53f94c --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_d_27cc8f.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem + extend CloudPDF::Internal::Types::Enum + + UNDERLINE = "underline" + LINE_THROUGH = "line-through" + WORD = "word" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_dir.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_dir.rb new file mode 100644 index 0000000..202ad86 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_dir.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir + extend CloudPDF::Internal::Types::Enum + + LTR = "ltr" + RTL = "rtl" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_margins.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_margins.rb new file mode 100644 index 0000000..360c86e --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_margins.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins < Internal::Types::Model + field :top, -> { Integer }, optional: false, nullable: false + + field :bottom, -> { Integer }, optional: false, nullable: false + + field :left, -> { Integer }, optional: false, nullable: false + + field :right, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_script.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_script.rb new file mode 100644 index 0000000..68fb5d5 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_script.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript + extend CloudPDF::Internal::Types::Enum + + NORMAL = "normal" + SUB = "sub" + SUPER = "super" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_182642.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_182642.rb new file mode 100644 index 0000000..94a825c --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_182642.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem + extend CloudPDF::Internal::Types::Enum + + UNDERLINE = "underline" + LINE_THROUGH = "line-through" + WORD = "word" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_1e6df8.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_1e6df8.rb new file mode 100644 index 0000000..04056de --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_1e6df8.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle < Internal::Types::Model + field :family, -> { String }, optional: true, nullable: false + + field :weight, -> { Integer }, optional: true, nullable: false + + field :italic, -> { Internal::Types::Boolean }, optional: true, nullable: false + + field :size, -> { Integer }, optional: true, nullable: false + + field :color, -> { String }, optional: true, nullable: false + + field :decoration, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem] }, optional: true, nullable: false + + field :script, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript }, optional: true, nullable: false + + field :letter_spacing, -> { Integer }, optional: true, nullable: false, api_name: "letterSpacing" + + field :horizontal_scale, -> { Integer }, optional: true, nullable: false, api_name: "horizontalScale" + + field :unknown, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_2ecf2a.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_2ecf2a.rb new file mode 100644 index 0000000..6ed2ca3 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_2ecf2a.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir + extend CloudPDF::Internal::Types::Enum + + LTR = "ltr" + RTL = "rtl" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_84e1e5.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_84e1e5.rb new file mode 100644 index 0000000..b7687ef --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_84e1e5.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript + extend CloudPDF::Internal::Types::Enum + + NORMAL = "normal" + SUB = "sub" + SUPER = "super" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_99744f.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_99744f.rb new file mode 100644 index 0000000..82a4dc5 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_99744f.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem < Internal::Types::Model + field :text, -> { String }, optional: false, nullable: false + + field :style, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_aa2697.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_aa2697.rb new file mode 100644 index 0000000..887ec0a --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_aa2697.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins < Internal::Types::Model + field :top, -> { Integer }, optional: false, nullable: false + + field :bottom, -> { Integer }, optional: false, nullable: false + + field :left, -> { Integer }, optional: false, nullable: false + + field :right, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_d0e05b.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_d0e05b.rb new file mode 100644 index 0000000..3d30f70 --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_d0e05b.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign + extend CloudPDF::Internal::Types::Enum + + LEFT = "left" + CENTER = "center" + RIGHT = "right" + JUSTIFY = "justify" + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_e928ea.rb b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_e928ea.rb new file mode 100644 index 0000000..24646db --- /dev/null +++ b/lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_e928ea.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem < Internal::Types::Model + field :align, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign }, optional: true, nullable: false + + field :dir, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir }, optional: true, nullable: false + + field :line_height, -> { Integer }, optional: true, nullable: false, api_name: "lineHeight" + + field :margins, -> { CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins }, optional: true, nullable: false + + field :text_indent, -> { Integer }, optional: true, nullable: false, api_name: "textIndent" + + field :unknown, -> { String }, optional: true, nullable: false + + field :runs, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_annotations_list_all404response_code.rb b/lib/CloudPDF/types/doc_annotations_list_all404response_code.rb index 259e7c0..9772ec0 100644 --- a/lib/CloudPDF/types/doc_annotations_list_all404response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_list_all404response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsListAll404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_list_all409response_code.rb b/lib/CloudPDF/types/doc_annotations_list_all409response_code.rb index 376460a..84d2e22 100644 --- a/lib/CloudPDF/types/doc_annotations_list_all409response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_list_all409response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsListAll409ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_update200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_annotations_update200response_meta_cache_delta.rb index 9f91950..333568d 100644 --- a/lib/CloudPDF/types/doc_annotations_update200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_annotations_update200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocAnnotationsUpdate200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_annotations_update400response_code.rb b/lib/CloudPDF/types/doc_annotations_update400response_code.rb index 78a3fe1..8fbfabc 100644 --- a/lib/CloudPDF/types/doc_annotations_update400response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_update400response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsUpdate400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_annotations_update404response_code.rb b/lib/CloudPDF/types/doc_annotations_update404response_code.rb index 78271d8..8bc122c 100644 --- a/lib/CloudPDF/types/doc_annotations_update404response_code.rb +++ b/lib/CloudPDF/types/doc_annotations_update404response_code.rb @@ -24,6 +24,12 @@ module DocAnnotationsUpdate404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_download_response_code.rb b/lib/CloudPDF/types/doc_download_response_code.rb index f467306..faafda7 100644 --- a/lib/CloudPDF/types/doc_download_response_code.rb +++ b/lib/CloudPDF/types/doc_download_response_code.rb @@ -24,6 +24,12 @@ module DocDownloadResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_forms_export_data_response_code.rb b/lib/CloudPDF/types/doc_forms_export_data_response_code.rb index 6698a85..fa7122b 100644 --- a/lib/CloudPDF/types/doc_forms_export_data_response_code.rb +++ b/lib/CloudPDF/types/doc_forms_export_data_response_code.rb @@ -24,6 +24,12 @@ module DocFormsExportDataResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_forms_get404response_code.rb b/lib/CloudPDF/types/doc_forms_get404response_code.rb index 8dc0c32..f19ae8e 100644 --- a/lib/CloudPDF/types/doc_forms_get404response_code.rb +++ b/lib/CloudPDF/types/doc_forms_get404response_code.rb @@ -24,6 +24,12 @@ module DocFormsGet404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_forms_import_data200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_forms_import_data200response_meta_cache_delta.rb index 46e4c64..c119461 100644 --- a/lib/CloudPDF/types/doc_forms_import_data200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_forms_import_data200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocFormsImportData200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocFormsImportData200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_forms_import_data400response_code.rb b/lib/CloudPDF/types/doc_forms_import_data400response_code.rb index 8d0d34b..4059360 100644 --- a/lib/CloudPDF/types/doc_forms_import_data400response_code.rb +++ b/lib/CloudPDF/types/doc_forms_import_data400response_code.rb @@ -24,6 +24,12 @@ module DocFormsImportData400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_forms_import_data404response_code.rb b/lib/CloudPDF/types/doc_forms_import_data404response_code.rb index ff517a6..9775f82 100644 --- a/lib/CloudPDF/types/doc_forms_import_data404response_code.rb +++ b/lib/CloudPDF/types/doc_forms_import_data404response_code.rb @@ -24,6 +24,12 @@ module DocFormsImportData404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_forms_reset200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_forms_reset200response_meta_cache_delta.rb index 9862915..c633d41 100644 --- a/lib/CloudPDF/types/doc_forms_reset200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_forms_reset200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocFormsReset200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocFormsReset200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_forms_reset404response_code.rb b/lib/CloudPDF/types/doc_forms_reset404response_code.rb index e60460d..0bc4638 100644 --- a/lib/CloudPDF/types/doc_forms_reset404response_code.rb +++ b/lib/CloudPDF/types/doc_forms_reset404response_code.rb @@ -24,6 +24,12 @@ module DocFormsReset404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_forms_set_value200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_forms_set_value200response_meta_cache_delta.rb index f8fa254..0ae89f7 100644 --- a/lib/CloudPDF/types/doc_forms_set_value200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_forms_set_value200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocFormsSetValue200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocFormsSetValue200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_forms_set_value400response_code.rb b/lib/CloudPDF/types/doc_forms_set_value400response_code.rb index 7417f56..be825e6 100644 --- a/lib/CloudPDF/types/doc_forms_set_value400response_code.rb +++ b/lib/CloudPDF/types/doc_forms_set_value400response_code.rb @@ -24,6 +24,12 @@ module DocFormsSetValue400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_forms_set_value404response_code.rb b/lib/CloudPDF/types/doc_forms_set_value404response_code.rb index d3cd092..5468254 100644 --- a/lib/CloudPDF/types/doc_forms_set_value404response_code.rb +++ b/lib/CloudPDF/types/doc_forms_set_value404response_code.rb @@ -24,6 +24,12 @@ module DocFormsSetValue404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_head404response_code.rb b/lib/CloudPDF/types/doc_head404response_code.rb index 7b29cba..095042f 100644 --- a/lib/CloudPDF/types/doc_head404response_code.rb +++ b/lib/CloudPDF/types/doc_head404response_code.rb @@ -24,6 +24,12 @@ module DocHead404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_manifest200response.rb b/lib/CloudPDF/types/doc_manifest200response.rb index 210b700..3b18c3c 100644 --- a/lib/CloudPDF/types/doc_manifest200response.rb +++ b/lib/CloudPDF/types/doc_manifest200response.rb @@ -19,6 +19,12 @@ class DocManifest200Response < Internal::Types::Model field :base_sha, -> { String }, optional: false, nullable: false, api_name: "baseSha" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + + field :base_byte_length, -> { Integer }, optional: true, nullable: false, api_name: "baseByteLength" + field :scopes, -> { CloudPDF::Types::DocManifest200ResponseScopes }, optional: true, nullable: false field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocManifest200ResponsePagesItem] }, optional: false, nullable: false diff --git a/lib/CloudPDF/types/doc_manifest404response_code.rb b/lib/CloudPDF/types/doc_manifest404response_code.rb index 3a509f4..e5c70e6 100644 --- a/lib/CloudPDF/types/doc_manifest404response_code.rb +++ b/lib/CloudPDF/types/doc_manifest404response_code.rb @@ -24,6 +24,12 @@ module DocManifest404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_metadata_get404response_code.rb b/lib/CloudPDF/types/doc_metadata_get404response_code.rb index 9803381..54bf668 100644 --- a/lib/CloudPDF/types/doc_metadata_get404response_code.rb +++ b/lib/CloudPDF/types/doc_metadata_get404response_code.rb @@ -24,6 +24,12 @@ module DocMetadataGet404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_delete200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_delete200response_meta_cache_delta.rb index bc343c4..e110edc 100644 --- a/lib/CloudPDF/types/doc_pages_delete200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_delete200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesDelete200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesDelete200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_delete400response_code.rb b/lib/CloudPDF/types/doc_pages_delete400response_code.rb index 29a70de..15bd5e8 100644 --- a/lib/CloudPDF/types/doc_pages_delete400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_delete400response_code.rb @@ -24,6 +24,12 @@ module DocPagesDelete400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_delete404response_code.rb b/lib/CloudPDF/types/doc_pages_delete404response_code.rb index dcc2b32..4e76908 100644 --- a/lib/CloudPDF/types/doc_pages_delete404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_delete404response_code.rb @@ -24,6 +24,12 @@ module DocPagesDelete404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_extract400response_code.rb b/lib/CloudPDF/types/doc_pages_extract400response_code.rb index 6adec5f..bd4dd6b 100644 --- a/lib/CloudPDF/types/doc_pages_extract400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_extract400response_code.rb @@ -24,6 +24,12 @@ module DocPagesExtract400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_extract404response_code.rb b/lib/CloudPDF/types/doc_pages_extract404response_code.rb index bd21087..5e2e07e 100644 --- a/lib/CloudPDF/types/doc_pages_extract404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_extract404response_code.rb @@ -24,6 +24,12 @@ module DocPagesExtract404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_flatten200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_flatten200response_meta_cache_delta.rb index b1e87c5..ce2140c 100644 --- a/lib/CloudPDF/types/doc_pages_flatten200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_flatten200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesFlatten200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesFlatten200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_flatten400response_code.rb b/lib/CloudPDF/types/doc_pages_flatten400response_code.rb index 7a6a7f1..9909ee1 100644 --- a/lib/CloudPDF/types/doc_pages_flatten400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_flatten400response_code.rb @@ -24,6 +24,12 @@ module DocPagesFlatten400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_flatten404response_code.rb b/lib/CloudPDF/types/doc_pages_flatten404response_code.rb index 3f14c3e..38cbf55 100644 --- a/lib/CloudPDF/types/doc_pages_flatten404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_flatten404response_code.rb @@ -24,6 +24,12 @@ module DocPagesFlatten404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_insert200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_insert200response_meta_cache_delta.rb index a3a41f2..948a313 100644 --- a/lib/CloudPDF/types/doc_pages_insert200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_insert200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesInsert200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesInsert200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_insert400response_code.rb b/lib/CloudPDF/types/doc_pages_insert400response_code.rb index 22e6ef5..948bca4 100644 --- a/lib/CloudPDF/types/doc_pages_insert400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_insert400response_code.rb @@ -24,6 +24,12 @@ module DocPagesInsert400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_insert404response_code.rb b/lib/CloudPDF/types/doc_pages_insert404response_code.rb index 0d96f95..bb4ce5d 100644 --- a/lib/CloudPDF/types/doc_pages_insert404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_insert404response_code.rb @@ -24,6 +24,12 @@ module DocPagesInsert404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_cache_delta.rb index 3e2c84e..2fe014d 100644 --- a/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesInsertBlank200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_insert_blank400response_code.rb b/lib/CloudPDF/types/doc_pages_insert_blank400response_code.rb index d412a7d..b849d30 100644 --- a/lib/CloudPDF/types/doc_pages_insert_blank400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_insert_blank400response_code.rb @@ -24,6 +24,12 @@ module DocPagesInsertBlank400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_insert_blank404response_code.rb b/lib/CloudPDF/types/doc_pages_insert_blank404response_code.rb index 0863b82..0fe5796 100644 --- a/lib/CloudPDF/types/doc_pages_insert_blank404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_insert_blank404response_code.rb @@ -24,6 +24,12 @@ module DocPagesInsertBlank404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_move200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_move200response_meta_cache_delta.rb index 63cf0e3..654942b 100644 --- a/lib/CloudPDF/types/doc_pages_move200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_move200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesMove200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesMove200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_move400response_code.rb b/lib/CloudPDF/types/doc_pages_move400response_code.rb index bbc19b0..15f3f7e 100644 --- a/lib/CloudPDF/types/doc_pages_move400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_move400response_code.rb @@ -24,6 +24,12 @@ module DocPagesMove400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_move404response_code.rb b/lib/CloudPDF/types/doc_pages_move404response_code.rb index c4d03dc..e35bc86 100644 --- a/lib/CloudPDF/types/doc_pages_move404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_move404response_code.rb @@ -24,6 +24,12 @@ module DocPagesMove404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_remove_name200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_remove_name200response_meta_cache_delta.rb index c7bd821..57e2f8f 100644 --- a/lib/CloudPDF/types/doc_pages_remove_name200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_remove_name200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesRemoveName200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_remove_name400response_code.rb b/lib/CloudPDF/types/doc_pages_remove_name400response_code.rb index 526c609..7b38dc6 100644 --- a/lib/CloudPDF/types/doc_pages_remove_name400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_remove_name400response_code.rb @@ -24,6 +24,12 @@ module DocPagesRemoveName400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_remove_name404response_code.rb b/lib/CloudPDF/types/doc_pages_remove_name404response_code.rb index cdd967f..cdfb329 100644 --- a/lib/CloudPDF/types/doc_pages_remove_name404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_remove_name404response_code.rb @@ -24,6 +24,12 @@ module DocPagesRemoveName404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_rotate200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_rotate200response_meta_cache_delta.rb index 54f6e5f..90d56d9 100644 --- a/lib/CloudPDF/types/doc_pages_rotate200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_rotate200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesRotate200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesRotate200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_rotate400response_code.rb b/lib/CloudPDF/types/doc_pages_rotate400response_code.rb index 04e04c9..4b57dab 100644 --- a/lib/CloudPDF/types/doc_pages_rotate400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_rotate400response_code.rb @@ -24,6 +24,12 @@ module DocPagesRotate400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_rotate404response_code.rb b/lib/CloudPDF/types/doc_pages_rotate404response_code.rb index cddae79..5f866e0 100644 --- a/lib/CloudPDF/types/doc_pages_rotate404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_rotate404response_code.rb @@ -24,6 +24,12 @@ module DocPagesRotate404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_set_name200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_pages_set_name200response_meta_cache_delta.rb index e88934e..c8dbce2 100644 --- a/lib/CloudPDF/types/doc_pages_set_name200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_pages_set_name200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocPagesSetName200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesSetName200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_pages_set_name400response_code.rb b/lib/CloudPDF/types/doc_pages_set_name400response_code.rb index ed62e05..8ba6b95 100644 --- a/lib/CloudPDF/types/doc_pages_set_name400response_code.rb +++ b/lib/CloudPDF/types/doc_pages_set_name400response_code.rb @@ -24,6 +24,12 @@ module DocPagesSetName400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_pages_set_name404response_code.rb b/lib/CloudPDF/types/doc_pages_set_name404response_code.rb index 929bf05..d6a7f0a 100644 --- a/lib/CloudPDF/types/doc_pages_set_name404response_code.rb +++ b/lib/CloudPDF/types/doc_pages_set_name404response_code.rb @@ -24,6 +24,12 @@ module DocPagesSetName404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_redactions_apply200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_redactions_apply200response_meta_cache_delta.rb index a6b7503..027a0cf 100644 --- a/lib/CloudPDF/types/doc_redactions_apply200response_meta_cache_delta.rb +++ b/lib/CloudPDF/types/doc_redactions_apply200response_meta_cache_delta.rb @@ -9,6 +9,10 @@ class DocRedactionsApply200ResponseMetaCacheDelta < Internal::Types::Model field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocRedactionsApply200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false end end diff --git a/lib/CloudPDF/types/doc_redactions_apply400response_code.rb b/lib/CloudPDF/types/doc_redactions_apply400response_code.rb index 1d25b27..12d02ee 100644 --- a/lib/CloudPDF/types/doc_redactions_apply400response_code.rb +++ b/lib/CloudPDF/types/doc_redactions_apply400response_code.rb @@ -24,6 +24,12 @@ module DocRedactionsApply400ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_redactions_apply404response_code.rb b/lib/CloudPDF/types/doc_redactions_apply404response_code.rb index 7235f1f..f746480 100644 --- a/lib/CloudPDF/types/doc_redactions_apply404response_code.rb +++ b/lib/CloudPDF/types/doc_redactions_apply404response_code.rb @@ -24,6 +24,12 @@ module DocRedactionsApply404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_render_response_code.rb b/lib/CloudPDF/types/doc_render_response_code.rb index 963e3bd..bd4f9df 100644 --- a/lib/CloudPDF/types/doc_render_response_code.rb +++ b/lib/CloudPDF/types/doc_render_response_code.rb @@ -24,6 +24,12 @@ module DocRenderResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_signatures_abort200response.rb b/lib/CloudPDF/types/doc_signatures_abort200response.rb new file mode 100644 index 0000000..c1a7d75 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_abort200response.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAbort200Response < Internal::Types::Model + field :status, -> { CloudPDF::Types::DocSignaturesAbort200ResponseStatus }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_abort200response_status.rb b/lib/CloudPDF/types/doc_signatures_abort200response_status.rb new file mode 100644 index 0000000..ec77d12 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_abort200response_status.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAbort200ResponseStatus + extend CloudPDF::Internal::Types::Enum + + ABORTED = "aborted" + ALREADY_COMPLETED = "already-completed" + UNKNOWN = "unknown" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_abort404response.rb b/lib/CloudPDF/types/doc_signatures_abort404response.rb new file mode 100644 index 0000000..eabb635 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_abort404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAbort404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesAbort404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesAbort404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_abort404response_code.rb b/lib/CloudPDF/types/doc_signatures_abort404response_code.rb new file mode 100644 index 0000000..311f2f3 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_abort404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAbort404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_abort404response_name.rb b/lib/CloudPDF/types/doc_signatures_abort404response_name.rb new file mode 100644 index 0000000..cf88d1f --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_abort404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAbort404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response.rb b/lib/CloudPDF/types/doc_signatures_analysis200response.rb new file mode 100644 index 0000000..91f50a3 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200Response < Internal::Types::Model + field :mode, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseMode }, optional: false, nullable: false + + field :policy_version, -> { Integer }, optional: false, nullable: false, api_name: "policyVersion" + + field :basis, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseBasis }, optional: false, nullable: false + + field :since, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseSince }, optional: false, nullable: false + + field :until_, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseUntil }, optional: false, nullable: false, api_name: "until" + + field :restrictions, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesAnalysis200ResponseRestrictionsItem] }, optional: false, nullable: false + + field :current, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseCurrent }, optional: false, nullable: false + + field :later, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseLater }, optional: false, nullable: false + + field :verdict, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseVerdict }, optional: false, nullable: false + + field :steps, -> { Internal::Types::Array[Object] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_basis.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_basis.rb new file mode 100644 index 0000000..f628310 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_basis.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseBasis < Internal::Types::Model + field :version, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseBasisVersion }, optional: false, nullable: false + + field :edits_version, -> { Integer }, optional: false, nullable: false, api_name: "editsVersion" + + field :source, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseBasisSource }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_basis_source.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_basis_source.rb new file mode 100644 index 0000000..e9dae82 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_basis_source.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseBasisSource + extend CloudPDF::Internal::Types::Enum + + PERSISTED = "persisted" + WORKING_COPY = "working-copy" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_basis_version.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_basis_version.rb new file mode 100644 index 0000000..9dea3db --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_basis_version.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseBasisVersion < Internal::Types::Model + field :sha256, -> { String }, optional: false, nullable: false + + field :byte_length, -> { Integer }, optional: false, nullable: false, api_name: "byteLength" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_current.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_current.rb new file mode 100644 index 0000000..aa99113 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_current.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseCurrent < Internal::Types::Model + field :verdict, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseCurrentVerdict }, optional: false, nullable: false + + field :complete, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :primary, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseCurrentPrimary }, optional: true, nullable: false + + field :findings, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesAnalysis200ResponseCurrentFindingsItem] }, optional: false, nullable: false + + field :method_, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseCurrentMethod }, optional: false, nullable: false, api_name: "method" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item.rb new file mode 100644 index 0000000..27fcb24 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseCurrentFindingsItem < Internal::Types::Model + field :rule, -> { String }, optional: false, nullable: false + + field :verdict, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseCurrentFindingsItemVerdict }, optional: false, nullable: false + + field :object_number, -> { Integer }, optional: false, nullable: false, api_name: "objectNumber" + + field :edge, -> { String }, optional: true, nullable: false + + field :detail, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item_verdict.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item_verdict.rb new file mode 100644 index 0000000..9789b66 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item_verdict.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseCurrentFindingsItemVerdict + extend CloudPDF::Internal::Types::Enum + + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INCOMPLETE = "incomplete" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_current_method.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_current_method.rb new file mode 100644 index 0000000..5df8c79 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_current_method.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseCurrentMethod + extend CloudPDF::Internal::Types::Enum + + NET_STATE = "net-state" + NET_STATE_REPLAY = "net-state+replay" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_current_primary.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_current_primary.rb new file mode 100644 index 0000000..f7071d3 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_current_primary.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseCurrentPrimary < Internal::Types::Model + field :rule, -> { String }, optional: false, nullable: false + + field :verdict, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseCurrentPrimaryVerdict }, optional: false, nullable: false + + field :object_number, -> { Integer }, optional: false, nullable: false, api_name: "objectNumber" + + field :edge, -> { String }, optional: true, nullable: false + + field :detail, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_current_primary_verdict.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_current_primary_verdict.rb new file mode 100644 index 0000000..aded945 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_current_primary_verdict.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseCurrentPrimaryVerdict + extend CloudPDF::Internal::Types::Enum + + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INCOMPLETE = "incomplete" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_current_verdict.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_current_verdict.rb new file mode 100644 index 0000000..32e82c6 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_current_verdict.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseCurrentVerdict + extend CloudPDF::Internal::Types::Enum + + UNCHANGED = "unchanged" + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INDETERMINATE = "indeterminate" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_later.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_later.rb new file mode 100644 index 0000000..15922cf --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_later.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseLater < Internal::Types::Model + field :revision_count, -> { Integer }, optional: false, nullable: false, api_name: "revisionCount" + + field :undone_object_numbers, -> { Internal::Types::Array[Integer] }, optional: false, nullable: false, api_name: "undoneObjectNumbers" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_mode.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_mode.rb new file mode 100644 index 0000000..9a96eb3 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_mode.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseMode + extend CloudPDF::Internal::Types::Enum + + AUTHORITATIVE = "authoritative" + EXPLORATORY = "exploratory" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item.rb new file mode 100644 index 0000000..5ba9af2 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseRestrictionsItem < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :revision_index, -> { Integer }, optional: false, nullable: false, api_name: "revisionIndex" + + field :source, -> { CloudPDF::Types::DocSignaturesAnalysis200ResponseRestrictionsItemSource }, optional: false, nullable: false + + field :own, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + + field :fields, -> { Object }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item_source.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item_source.rb new file mode 100644 index 0000000..e18f934 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item_source.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseRestrictionsItemSource + extend CloudPDF::Internal::Types::Enum + + DOCMDP = "docmdp" + FIELDMDP = "fieldmdp" + LOCK = "lock" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_since.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_since.rb new file mode 100644 index 0000000..35f9b2b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_since.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseSince < Internal::Types::Model + field :revision_index, -> { Integer }, optional: false, nullable: false, api_name: "revisionIndex" + + field :signature_index, -> { Integer }, optional: false, nullable: true, api_name: "signatureIndex" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_until.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_until.rb new file mode 100644 index 0000000..7e71dde --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_until.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis200ResponseUntil < Internal::Types::Model + field :revision_index, -> { Integer }, optional: false, nullable: false, api_name: "revisionIndex" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis200response_verdict.rb b/lib/CloudPDF/types/doc_signatures_analysis200response_verdict.rb new file mode 100644 index 0000000..acdd8e2 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis200response_verdict.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis200ResponseVerdict + extend CloudPDF::Internal::Types::Enum + + UNCHANGED = "unchanged" + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INDETERMINATE = "indeterminate" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis400response.rb b/lib/CloudPDF/types/doc_signatures_analysis400response.rb new file mode 100644 index 0000000..f891fc5 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis400response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis400Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesAnalysis400ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesAnalysis400ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis400response_code.rb b/lib/CloudPDF/types/doc_signatures_analysis400response_code.rb new file mode 100644 index 0000000..e838a89 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis400response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis400ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis400response_name.rb b/lib/CloudPDF/types/doc_signatures_analysis400response_name.rb new file mode 100644 index 0000000..8c5d87c --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis400response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis400ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis404response.rb b/lib/CloudPDF/types/doc_signatures_analysis404response.rb new file mode 100644 index 0000000..84bf291 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesAnalysis404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesAnalysis404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesAnalysis404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis404response_code.rb b/lib/CloudPDF/types/doc_signatures_analysis404response_code.rb new file mode 100644 index 0000000..20c2e65 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_analysis404response_name.rb b/lib/CloudPDF/types/doc_signatures_analysis404response_name.rb new file mode 100644 index 0000000..9bd193c --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_analysis404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesAnalysis404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response.rb b/lib/CloudPDF/types/doc_signatures_complete200response.rb new file mode 100644 index 0000000..1240678 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200Response < Internal::Types::Model + field :status, -> { CloudPDF::Types::DocSignaturesComplete200ResponseStatus }, optional: false, nullable: false + + field :signature, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignature }, optional: false, nullable: false + + field :version, -> { CloudPDF::Types::DocSignaturesComplete200ResponseVersion }, optional: false, nullable: false + + field :previous, -> { CloudPDF::Types::DocSignaturesComplete200ResponsePrevious }, optional: false, nullable: false + + field :protection, -> { CloudPDF::Types::DocSignaturesComplete200ResponseProtection }, optional: false, nullable: false + + field :meta, -> { CloudPDF::Types::DocSignaturesComplete200ResponseMeta }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta.rb new file mode 100644 index 0000000..9aadaf9 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMeta < Internal::Types::Model + field :affected_pages, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesComplete200ResponseMetaAffectedPagesItem] }, optional: false, nullable: false, api_name: "affectedPages" + + field :cache_delta, -> { CloudPDF::Types::DocSignaturesComplete200ResponseMetaCacheDelta }, optional: false, nullable: true, api_name: "cacheDelta" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item.rb new file mode 100644 index 0000000..1fc273d --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaAffectedPagesItem < Internal::Types::Model + field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber" + + field :revision, -> { CloudPDF::Types::DocSignaturesComplete200ResponseMetaAffectedPagesItemRevision }, optional: false, nullable: false + + field :weak_annotation_state, -> { CloudPDF::Types::DocSignaturesComplete200ResponseMetaAffectedPagesItemWeakAnnotationState }, optional: false, nullable: false, api_name: "weakAnnotationState" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_revision.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_revision.rb new file mode 100644 index 0000000..4d49afd --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_revision.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaAffectedPagesItemRevision < Internal::Types::Model + field :doc_session_id, -> { String }, optional: false, nullable: false, api_name: "docSessionId" + + field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber" + + field :generation, -> { Integer }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state.rb new file mode 100644 index 0000000..26b8fec --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaAffectedPagesItemWeakAnnotationState < Internal::Types::Model + extend CloudPDF::Internal::Types::Union + + discriminant :kind + + member -> { CloudPDF::Types::DocSignaturesComplete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown }, key: "UNKNOWN" + + member -> { CloudPDF::Types::DocSignaturesComplete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown }, key: "KNOWN" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_known.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_known.rb new file mode 100644 index 0000000..a958d1b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_known.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown < Internal::Types::Model + field :has_any_weak_annotations, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasAnyWeakAnnotations" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_unknown.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_unknown.rb new file mode 100644 index 0000000..bf933f9 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_unknown.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown < Internal::Types::Model; end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta.rb new file mode 100644 index 0000000..f31dd28 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaCacheDelta < Internal::Types::Model + field :previous_doc_version, -> { Integer }, optional: false, nullable: false, api_name: "previousDocVersion" + + field :doc_version, -> { Integer }, optional: false, nullable: false, api_name: "docVersion" + + field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion" + + field :layer_version, -> { Integer }, optional: true, nullable: false, api_name: "layerVersion" + + field :working, -> { Internal::Types::Boolean }, optional: true, nullable: false + + field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesComplete200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item.rb new file mode 100644 index 0000000..a049707 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaCacheDeltaPagesItem < Internal::Types::Model + field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber" + + field :cache, -> { CloudPDF::Types::DocSignaturesComplete200ResponseMetaCacheDeltaPagesItemCache }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item_cache.rb b/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item_cache.rb new file mode 100644 index 0000000..2cdbb5a --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item_cache.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseMetaCacheDeltaPagesItemCache < Internal::Types::Model + field :content_version, -> { Integer }, optional: false, nullable: false, api_name: "contentVersion" + + field :annotation_version, -> { Integer }, optional: false, nullable: false, api_name: "annotationVersion" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_previous.rb b/lib/CloudPDF/types/doc_signatures_complete200response_previous.rb new file mode 100644 index 0000000..b8b4781 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_previous.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponsePrevious < Internal::Types::Model + field :base_sha256, -> { String }, optional: false, nullable: false, api_name: "baseSha256" + + field :edits_version, -> { Integer }, optional: false, nullable: false, api_name: "editsVersion" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection.rb new file mode 100644 index 0000000..711840d --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseProtection < Internal::Types::Model + field :enforced, -> { CloudPDF::Types::DocSignaturesComplete200ResponseProtectionEnforced }, optional: false, nullable: true + + field :judged, -> { CloudPDF::Types::DocSignaturesComplete200ResponseProtectionJudged }, optional: false, nullable: true + + field :certification, -> { CloudPDF::Types::DocSignaturesComplete200ResponseProtectionCertification }, optional: false, nullable: true + + field :field_locks, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesComplete200ResponseProtectionFieldLocksItem] }, optional: false, nullable: false, api_name: "fieldLocks" + + field :policy_version, -> { Integer }, optional: false, nullable: false, api_name: "policyVersion" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection_certification.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection_certification.rb new file mode 100644 index 0000000..28e7044 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection_certification.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseProtectionCertification < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :permission, -> { Integer }, optional: false, nullable: true + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection_enforced.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection_enforced.rb new file mode 100644 index 0000000..51e7623 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection_enforced.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseProtectionEnforced + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item.rb new file mode 100644 index 0000000..2baffc0 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseProtectionFieldLocksItem < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :source, -> { CloudPDF::Types::DocSignaturesComplete200ResponseProtectionFieldLocksItemSource }, optional: false, nullable: false + + field :spec, -> { CloudPDF::Types::DocSignaturesComplete200ResponseProtectionFieldLocksItemSpec }, optional: false, nullable: true + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_source.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_source.rb new file mode 100644 index 0000000..688ce2d --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_source.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseProtectionFieldLocksItemSource + extend CloudPDF::Internal::Types::Enum + + FIELDMDP = "fieldmdp" + LOCK = "lock" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec.rb new file mode 100644 index 0000000..78f093c --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseProtectionFieldLocksItemSpec < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocSignaturesComplete200ResponseProtectionFieldLocksItemSpecAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec_action.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec_action.rb new file mode 100644 index 0000000..95a9995 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseProtectionFieldLocksItemSpecAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_protection_judged.rb b/lib/CloudPDF/types/doc_signatures_complete200response_protection_judged.rb new file mode 100644 index 0000000..c0bf69f --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_protection_judged.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseProtectionJudged + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature.rb new file mode 100644 index 0000000..e009c38 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignature < Internal::Types::Model + field :index, -> { Integer }, optional: false, nullable: false + + field :field, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureField }, optional: false, nullable: false + + field :field_name, -> { String }, optional: false, nullable: false, api_name: "fieldName" + + field :widget, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureWidget }, optional: false, nullable: true + + field :signed, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :kind, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureKind }, optional: false, nullable: false + + field :filter, -> { String }, optional: false, nullable: true + + field :sub_filter, -> { String }, optional: false, nullable: true, api_name: "subFilter" + + field :byte_range, -> { Internal::Types::Array[Object] }, optional: false, nullable: true, api_name: "byteRange" + + field :contents_size, -> { Integer }, optional: false, nullable: false, api_name: "contentsSize" + + field :coverage, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureCoverage }, optional: false, nullable: true + + field :revision_index, -> { Integer }, optional: false, nullable: true, api_name: "revisionIndex" + + field :signer, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureSigner }, optional: false, nullable: false + + field :doc_mdp, -> { Integer }, optional: false, nullable: true, api_name: "docMdp" + + field :catalog_certification, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "catalogCertification" + + field :field_mdp, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureFieldMdp }, optional: false, nullable: true, api_name: "fieldMdp" + + field :lock, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureLock }, optional: false, nullable: true + + field :seed_value, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureSeedValue }, optional: false, nullable: true, api_name: "seedValue" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_coverage.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_coverage.rb new file mode 100644 index 0000000..21d7554 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_coverage.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseSignatureCoverage + extend CloudPDF::Internal::Types::Enum + + WHOLE_REVISION = "whole-revision" + PARTIAL = "partial" + MALFORMED = "malformed" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_field.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field.rb new file mode 100644 index 0000000..faebf62 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureField < Internal::Types::Model + extend CloudPDF::Internal::Types::Union + + discriminant :kind + + member -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureFieldObjectNumber }, key: "OBJECT_NUMBER" + + member -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureFieldFqn }, key: "FQN" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_fqn.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_fqn.rb new file mode 100644 index 0000000..ff73d51 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_fqn.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureFieldFqn < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp.rb new file mode 100644 index 0000000..cdc8c93 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureFieldMdp < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureFieldMdpAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp_action.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp_action.rb new file mode 100644 index 0000000..dc5c17d --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseSignatureFieldMdpAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_object_number.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_object_number.rb new file mode 100644 index 0000000..590794b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_field_object_number.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureFieldObjectNumber < Internal::Types::Model + field :field_object_number, -> { Integer }, optional: false, nullable: false, api_name: "fieldObjectNumber" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_kind.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_kind.rb new file mode 100644 index 0000000..4227907 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_kind.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseSignatureKind + extend CloudPDF::Internal::Types::Enum + + SIGNATURE = "signature" + TIMESTAMP = "timestamp" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_lock.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_lock.rb new file mode 100644 index 0000000..9b9b82b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_lock.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureLock < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocSignaturesComplete200ResponseSignatureLockAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_lock_action.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_lock_action.rb new file mode 100644 index 0000000..2847f8a --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_lock_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseSignatureLockAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_seed_value.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_seed_value.rb new file mode 100644 index 0000000..b722d4b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_seed_value.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureSeedValue < Internal::Types::Model + field :required_flags, -> { Integer }, optional: false, nullable: false, api_name: "requiredFlags" + + field :present_flags, -> { Integer }, optional: false, nullable: false, api_name: "presentFlags" + + field :version, -> { Integer }, optional: false, nullable: true + + field :mdp, -> { Integer }, optional: false, nullable: true + + field :filter, -> { String }, optional: false, nullable: true + + field :sub_filters, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "subFilters" + + field :digest_methods, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "digestMethods" + + field :reasons, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :unsupported_required, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "unsupportedRequired" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_signer.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_signer.rb new file mode 100644 index 0000000..31338d5 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_signer.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureSigner < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: true + + field :reason, -> { String }, optional: false, nullable: true + + field :location, -> { String }, optional: false, nullable: true + + field :contact_info, -> { String }, optional: false, nullable: true, api_name: "contactInfo" + + field :claimed_time, -> { String }, optional: false, nullable: true, api_name: "claimedTime" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_signature_widget.rb b/lib/CloudPDF/types/doc_signatures_complete200response_signature_widget.rb new file mode 100644 index 0000000..230e865 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_signature_widget.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseSignatureWidget < Internal::Types::Model + field :annot_object_number, -> { Integer }, optional: false, nullable: false, api_name: "annotObjectNumber" + + field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_status.rb b/lib/CloudPDF/types/doc_signatures_complete200response_status.rb new file mode 100644 index 0000000..d744d65 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_status.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete200ResponseStatus + extend CloudPDF::Internal::Types::Enum + + COMPLETED = "completed" + ALREADY_COMPLETED = "already-completed" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete200response_version.rb b/lib/CloudPDF/types/doc_signatures_complete200response_version.rb new file mode 100644 index 0000000..183d1f0 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete200response_version.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete200ResponseVersion < Internal::Types::Model + field :sha256, -> { String }, optional: false, nullable: false + + field :byte_length, -> { Integer }, optional: false, nullable: false, api_name: "byteLength" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete400response.rb b/lib/CloudPDF/types/doc_signatures_complete400response.rb new file mode 100644 index 0000000..f09929b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete400response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete400Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesComplete400ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesComplete400ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete400response_code.rb b/lib/CloudPDF/types/doc_signatures_complete400response_code.rb new file mode 100644 index 0000000..dfe4e7b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete400response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete400ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete400response_name.rb b/lib/CloudPDF/types/doc_signatures_complete400response_name.rb new file mode 100644 index 0000000..c4802d6 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete400response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete400ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete404response.rb b/lib/CloudPDF/types/doc_signatures_complete404response.rb new file mode 100644 index 0000000..f8a5ab5 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesComplete404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesComplete404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete404response_code.rb b/lib/CloudPDF/types/doc_signatures_complete404response_code.rb new file mode 100644 index 0000000..f10cfcf --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete404response_name.rb b/lib/CloudPDF/types/doc_signatures_complete404response_name.rb new file mode 100644 index 0000000..372e714 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete409response.rb b/lib/CloudPDF/types/doc_signatures_complete409response.rb new file mode 100644 index 0000000..56101c1 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete409response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesComplete409Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesComplete409ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesComplete409ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete409response_code.rb b/lib/CloudPDF/types/doc_signatures_complete409response_code.rb new file mode 100644 index 0000000..bdf68e6 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete409response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete409ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_complete409response_name.rb b/lib/CloudPDF/types/doc_signatures_complete409response_name.rb new file mode 100644 index 0000000..1197655 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_complete409response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesComplete409ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response.rb b/lib/CloudPDF/types/doc_signatures_list200response.rb new file mode 100644 index 0000000..5141f32 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200Response < Internal::Types::Model + field :chain_valid, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "chainValid" + + field :revisions, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesList200ResponseRevisionsItem] }, optional: false, nullable: false + + field :signatures, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesList200ResponseSignaturesItem] }, optional: false, nullable: false + + field :protection, -> { CloudPDF::Types::DocSignaturesList200ResponseProtection }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection.rb new file mode 100644 index 0000000..12d9b89 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseProtection < Internal::Types::Model + field :enforced, -> { CloudPDF::Types::DocSignaturesList200ResponseProtectionEnforced }, optional: false, nullable: true + + field :judged, -> { CloudPDF::Types::DocSignaturesList200ResponseProtectionJudged }, optional: false, nullable: true + + field :certification, -> { CloudPDF::Types::DocSignaturesList200ResponseProtectionCertification }, optional: false, nullable: true + + field :field_locks, -> { Internal::Types::Array[CloudPDF::Types::DocSignaturesList200ResponseProtectionFieldLocksItem] }, optional: false, nullable: false, api_name: "fieldLocks" + + field :policy_version, -> { Integer }, optional: false, nullable: false, api_name: "policyVersion" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection_certification.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection_certification.rb new file mode 100644 index 0000000..2b89541 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection_certification.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseProtectionCertification < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :permission, -> { Integer }, optional: false, nullable: true + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection_enforced.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection_enforced.rb new file mode 100644 index 0000000..ea1f88c --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection_enforced.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseProtectionEnforced + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item.rb new file mode 100644 index 0000000..d350a20 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseProtectionFieldLocksItem < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :source, -> { CloudPDF::Types::DocSignaturesList200ResponseProtectionFieldLocksItemSource }, optional: false, nullable: false + + field :spec, -> { CloudPDF::Types::DocSignaturesList200ResponseProtectionFieldLocksItemSpec }, optional: false, nullable: true + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_source.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_source.rb new file mode 100644 index 0000000..e26ec72 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_source.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseProtectionFieldLocksItemSource + extend CloudPDF::Internal::Types::Enum + + FIELDMDP = "fieldmdp" + LOCK = "lock" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec.rb new file mode 100644 index 0000000..336e6d5 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseProtectionFieldLocksItemSpec < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocSignaturesList200ResponseProtectionFieldLocksItemSpecAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec_action.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec_action.rb new file mode 100644 index 0000000..91e1024 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseProtectionFieldLocksItemSpecAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_protection_judged.rb b/lib/CloudPDF/types/doc_signatures_list200response_protection_judged.rb new file mode 100644 index 0000000..c068e0f --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_protection_judged.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseProtectionJudged + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_revisions_item.rb b/lib/CloudPDF/types/doc_signatures_list200response_revisions_item.rb new file mode 100644 index 0000000..b90a34b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_revisions_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseRevisionsItem < Internal::Types::Model + field :index, -> { Integer }, optional: false, nullable: false + + field :end_, -> { Integer }, optional: false, nullable: false, api_name: "end" + + field :xref_offset, -> { Integer }, optional: false, nullable: false, api_name: "xrefOffset" + + field :signature_index, -> { Integer }, optional: false, nullable: true, api_name: "signatureIndex" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item.rb new file mode 100644 index 0000000..7c6b13d --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItem < Internal::Types::Model + field :index, -> { Integer }, optional: false, nullable: false + + field :field, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemField }, optional: false, nullable: false + + field :field_name, -> { String }, optional: false, nullable: false, api_name: "fieldName" + + field :widget, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemWidget }, optional: false, nullable: true + + field :signed, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :kind, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemKind }, optional: false, nullable: false + + field :filter, -> { String }, optional: false, nullable: true + + field :sub_filter, -> { String }, optional: false, nullable: true, api_name: "subFilter" + + field :byte_range, -> { Internal::Types::Array[Object] }, optional: false, nullable: true, api_name: "byteRange" + + field :contents_size, -> { Integer }, optional: false, nullable: false, api_name: "contentsSize" + + field :coverage, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemCoverage }, optional: false, nullable: true + + field :revision_index, -> { Integer }, optional: false, nullable: true, api_name: "revisionIndex" + + field :signer, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemSigner }, optional: false, nullable: false + + field :doc_mdp, -> { Integer }, optional: false, nullable: true, api_name: "docMdp" + + field :catalog_certification, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "catalogCertification" + + field :field_mdp, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemFieldMdp }, optional: false, nullable: true, api_name: "fieldMdp" + + field :lock, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemLock }, optional: false, nullable: true + + field :seed_value, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemSeedValue }, optional: false, nullable: true, api_name: "seedValue" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_coverage.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_coverage.rb new file mode 100644 index 0000000..0e7195c --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_coverage.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseSignaturesItemCoverage + extend CloudPDF::Internal::Types::Enum + + WHOLE_REVISION = "whole-revision" + PARTIAL = "partial" + MALFORMED = "malformed" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field.rb new file mode 100644 index 0000000..ba5fe3e --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemField < Internal::Types::Model + extend CloudPDF::Internal::Types::Union + + discriminant :kind + + member -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemFieldObjectNumber }, key: "OBJECT_NUMBER" + + member -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemFieldFqn }, key: "FQN" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_fqn.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_fqn.rb new file mode 100644 index 0000000..cb82e2b --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_fqn.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemFieldFqn < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp.rb new file mode 100644 index 0000000..b254d66 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemFieldMdp < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemFieldMdpAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp_action.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp_action.rb new file mode 100644 index 0000000..56723ab --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseSignaturesItemFieldMdpAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_object_number.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_object_number.rb new file mode 100644 index 0000000..45302c1 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_object_number.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemFieldObjectNumber < Internal::Types::Model + field :field_object_number, -> { Integer }, optional: false, nullable: false, api_name: "fieldObjectNumber" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_kind.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_kind.rb new file mode 100644 index 0000000..b2fba94 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_kind.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseSignaturesItemKind + extend CloudPDF::Internal::Types::Enum + + SIGNATURE = "signature" + TIMESTAMP = "timestamp" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock.rb new file mode 100644 index 0000000..7a48bd8 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemLock < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocSignaturesList200ResponseSignaturesItemLockAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock_action.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock_action.rb new file mode 100644 index 0000000..4657673 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList200ResponseSignaturesItemLockAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_seed_value.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_seed_value.rb new file mode 100644 index 0000000..1bb9d38 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_seed_value.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemSeedValue < Internal::Types::Model + field :required_flags, -> { Integer }, optional: false, nullable: false, api_name: "requiredFlags" + + field :present_flags, -> { Integer }, optional: false, nullable: false, api_name: "presentFlags" + + field :version, -> { Integer }, optional: false, nullable: true + + field :mdp, -> { Integer }, optional: false, nullable: true + + field :filter, -> { String }, optional: false, nullable: true + + field :sub_filters, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "subFilters" + + field :digest_methods, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "digestMethods" + + field :reasons, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :unsupported_required, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "unsupportedRequired" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_signer.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_signer.rb new file mode 100644 index 0000000..70119da --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_signer.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemSigner < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: true + + field :reason, -> { String }, optional: false, nullable: true + + field :location, -> { String }, optional: false, nullable: true + + field :contact_info, -> { String }, optional: false, nullable: true, api_name: "contactInfo" + + field :claimed_time, -> { String }, optional: false, nullable: true, api_name: "claimedTime" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_widget.rb b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_widget.rb new file mode 100644 index 0000000..827e282 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list200response_signatures_item_widget.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList200ResponseSignaturesItemWidget < Internal::Types::Model + field :annot_object_number, -> { Integer }, optional: false, nullable: false, api_name: "annotObjectNumber" + + field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list404response.rb b/lib/CloudPDF/types/doc_signatures_list404response.rb new file mode 100644 index 0000000..1eeb864 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesList404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesList404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesList404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list404response_code.rb b/lib/CloudPDF/types/doc_signatures_list404response_code.rb new file mode 100644 index 0000000..c60f3e0 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_list404response_name.rb b/lib/CloudPDF/types/doc_signatures_list404response_name.rb new file mode 100644 index 0000000..fdbe03c --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_list404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesList404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare200response.rb b/lib/CloudPDF/types/doc_signatures_prepare200response.rb new file mode 100644 index 0000000..e61e73d --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare200response.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesPrepare200Response < Internal::Types::Model + field :signing_id, -> { String }, optional: false, nullable: false, api_name: "signingId" + + field :digest, -> { String }, optional: false, nullable: false + + field :algorithm, -> { CloudPDF::Types::DocSignaturesPrepare200ResponseAlgorithm }, optional: false, nullable: false + + field :byte_range, -> { Internal::Types::Array[Object] }, optional: false, nullable: false, api_name: "byteRange" + + field :contents_size, -> { Integer }, optional: false, nullable: false, api_name: "contentsSize" + + field :sub_filter, -> { String }, optional: false, nullable: false, api_name: "subFilter" + + field :expected_version, -> { CloudPDF::Types::DocSignaturesPrepare200ResponseExpectedVersion }, optional: false, nullable: false, api_name: "expectedVersion" + + field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare200response_algorithm.rb b/lib/CloudPDF/types/doc_signatures_prepare200response_algorithm.rb new file mode 100644 index 0000000..cb6ab56 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare200response_algorithm.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesPrepare200ResponseAlgorithm + extend CloudPDF::Internal::Types::Enum + + SHA256 = "sha256" + SHA384 = "sha384" + SHA512 = "sha512" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare200response_expected_version.rb b/lib/CloudPDF/types/doc_signatures_prepare200response_expected_version.rb new file mode 100644 index 0000000..7fe4ab4 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare200response_expected_version.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesPrepare200ResponseExpectedVersion < Internal::Types::Model + field :base_sha256, -> { String }, optional: false, nullable: false, api_name: "baseSha256" + + field :edits_version, -> { Integer }, optional: false, nullable: false, api_name: "editsVersion" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare400response.rb b/lib/CloudPDF/types/doc_signatures_prepare400response.rb new file mode 100644 index 0000000..83480a7 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare400response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesPrepare400Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesPrepare400ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesPrepare400ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare400response_code.rb b/lib/CloudPDF/types/doc_signatures_prepare400response_code.rb new file mode 100644 index 0000000..10689d5 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare400response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesPrepare400ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare400response_name.rb b/lib/CloudPDF/types/doc_signatures_prepare400response_name.rb new file mode 100644 index 0000000..c9ee5cd --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare400response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesPrepare400ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare404response.rb b/lib/CloudPDF/types/doc_signatures_prepare404response.rb new file mode 100644 index 0000000..49a9958 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesPrepare404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesPrepare404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesPrepare404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare404response_code.rb b/lib/CloudPDF/types/doc_signatures_prepare404response_code.rb new file mode 100644 index 0000000..e3b781a --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesPrepare404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare404response_name.rb b/lib/CloudPDF/types/doc_signatures_prepare404response_name.rb new file mode 100644 index 0000000..e9535a4 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesPrepare404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare409response.rb b/lib/CloudPDF/types/doc_signatures_prepare409response.rb new file mode 100644 index 0000000..e2c411a --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare409response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocSignaturesPrepare409Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocSignaturesPrepare409ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocSignaturesPrepare409ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare409response_code.rb b/lib/CloudPDF/types/doc_signatures_prepare409response_code.rb new file mode 100644 index 0000000..f765702 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare409response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesPrepare409ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_signatures_prepare409response_name.rb b/lib/CloudPDF/types/doc_signatures_prepare409response_name.rb new file mode 100644 index 0000000..3ba06f5 --- /dev/null +++ b/lib/CloudPDF/types/doc_signatures_prepare409response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocSignaturesPrepare409ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_text404response_code.rb b/lib/CloudPDF/types/doc_text404response_code.rb index 576e847..d19223c 100644 --- a/lib/CloudPDF/types/doc_text404response_code.rb +++ b/lib/CloudPDF/types/doc_text404response_code.rb @@ -24,6 +24,12 @@ module DocText404ResponseCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response.rb b/lib/CloudPDF/types/doc_versions_analysis200response.rb new file mode 100644 index 0000000..97d56cf --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200Response < Internal::Types::Model + field :mode, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseMode }, optional: false, nullable: false + + field :policy_version, -> { Integer }, optional: false, nullable: false, api_name: "policyVersion" + + field :basis, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseBasis }, optional: false, nullable: false + + field :since, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseSince }, optional: false, nullable: false + + field :until_, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseUntil }, optional: false, nullable: false, api_name: "until" + + field :restrictions, -> { Internal::Types::Array[CloudPDF::Types::DocVersionsAnalysis200ResponseRestrictionsItem] }, optional: false, nullable: false + + field :current, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseCurrent }, optional: false, nullable: false + + field :later, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseLater }, optional: false, nullable: false + + field :verdict, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseVerdict }, optional: false, nullable: false + + field :steps, -> { Internal::Types::Array[Object] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_basis.rb b/lib/CloudPDF/types/doc_versions_analysis200response_basis.rb new file mode 100644 index 0000000..9fd9ac8 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_basis.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseBasis < Internal::Types::Model + field :version, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseBasisVersion }, optional: false, nullable: false + + field :edits_version, -> { Integer }, optional: false, nullable: false, api_name: "editsVersion" + + field :source, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseBasisSource }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_basis_source.rb b/lib/CloudPDF/types/doc_versions_analysis200response_basis_source.rb new file mode 100644 index 0000000..53eda11 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_basis_source.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseBasisSource + extend CloudPDF::Internal::Types::Enum + + PERSISTED = "persisted" + WORKING_COPY = "working-copy" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_basis_version.rb b/lib/CloudPDF/types/doc_versions_analysis200response_basis_version.rb new file mode 100644 index 0000000..4abe7d4 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_basis_version.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseBasisVersion < Internal::Types::Model + field :sha256, -> { String }, optional: false, nullable: false + + field :byte_length, -> { Integer }, optional: false, nullable: false, api_name: "byteLength" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_current.rb b/lib/CloudPDF/types/doc_versions_analysis200response_current.rb new file mode 100644 index 0000000..febbc8c --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_current.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseCurrent < Internal::Types::Model + field :verdict, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseCurrentVerdict }, optional: false, nullable: false + + field :complete, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :primary, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseCurrentPrimary }, optional: true, nullable: false + + field :findings, -> { Internal::Types::Array[CloudPDF::Types::DocVersionsAnalysis200ResponseCurrentFindingsItem] }, optional: false, nullable: false + + field :method_, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseCurrentMethod }, optional: false, nullable: false, api_name: "method" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item.rb b/lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item.rb new file mode 100644 index 0000000..f4e9606 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseCurrentFindingsItem < Internal::Types::Model + field :rule, -> { String }, optional: false, nullable: false + + field :verdict, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseCurrentFindingsItemVerdict }, optional: false, nullable: false + + field :object_number, -> { Integer }, optional: false, nullable: false, api_name: "objectNumber" + + field :edge, -> { String }, optional: true, nullable: false + + field :detail, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item_verdict.rb b/lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item_verdict.rb new file mode 100644 index 0000000..47c4831 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item_verdict.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseCurrentFindingsItemVerdict + extend CloudPDF::Internal::Types::Enum + + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INCOMPLETE = "incomplete" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_current_method.rb b/lib/CloudPDF/types/doc_versions_analysis200response_current_method.rb new file mode 100644 index 0000000..0abf1ac --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_current_method.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseCurrentMethod + extend CloudPDF::Internal::Types::Enum + + NET_STATE = "net-state" + NET_STATE_REPLAY = "net-state+replay" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_current_primary.rb b/lib/CloudPDF/types/doc_versions_analysis200response_current_primary.rb new file mode 100644 index 0000000..e1b34d3 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_current_primary.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseCurrentPrimary < Internal::Types::Model + field :rule, -> { String }, optional: false, nullable: false + + field :verdict, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseCurrentPrimaryVerdict }, optional: false, nullable: false + + field :object_number, -> { Integer }, optional: false, nullable: false, api_name: "objectNumber" + + field :edge, -> { String }, optional: true, nullable: false + + field :detail, -> { String }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_current_primary_verdict.rb b/lib/CloudPDF/types/doc_versions_analysis200response_current_primary_verdict.rb new file mode 100644 index 0000000..4c42dc4 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_current_primary_verdict.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseCurrentPrimaryVerdict + extend CloudPDF::Internal::Types::Enum + + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INCOMPLETE = "incomplete" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_current_verdict.rb b/lib/CloudPDF/types/doc_versions_analysis200response_current_verdict.rb new file mode 100644 index 0000000..0c666db --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_current_verdict.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseCurrentVerdict + extend CloudPDF::Internal::Types::Enum + + UNCHANGED = "unchanged" + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INDETERMINATE = "indeterminate" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_later.rb b/lib/CloudPDF/types/doc_versions_analysis200response_later.rb new file mode 100644 index 0000000..58598a8 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_later.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseLater < Internal::Types::Model + field :revision_count, -> { Integer }, optional: false, nullable: false, api_name: "revisionCount" + + field :undone_object_numbers, -> { Internal::Types::Array[Integer] }, optional: false, nullable: false, api_name: "undoneObjectNumbers" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_mode.rb b/lib/CloudPDF/types/doc_versions_analysis200response_mode.rb new file mode 100644 index 0000000..1d0b707 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_mode.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseMode + extend CloudPDF::Internal::Types::Enum + + AUTHORITATIVE = "authoritative" + EXPLORATORY = "exploratory" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item.rb b/lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item.rb new file mode 100644 index 0000000..994b3ab --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseRestrictionsItem < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :revision_index, -> { Integer }, optional: false, nullable: false, api_name: "revisionIndex" + + field :source, -> { CloudPDF::Types::DocVersionsAnalysis200ResponseRestrictionsItemSource }, optional: false, nullable: false + + field :own, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + + field :fields, -> { Object }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item_source.rb b/lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item_source.rb new file mode 100644 index 0000000..2d3bf99 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item_source.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseRestrictionsItemSource + extend CloudPDF::Internal::Types::Enum + + DOCMDP = "docmdp" + FIELDMDP = "fieldmdp" + LOCK = "lock" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_since.rb b/lib/CloudPDF/types/doc_versions_analysis200response_since.rb new file mode 100644 index 0000000..86e1719 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_since.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseSince < Internal::Types::Model + field :revision_index, -> { Integer }, optional: false, nullable: false, api_name: "revisionIndex" + + field :signature_index, -> { Integer }, optional: false, nullable: true, api_name: "signatureIndex" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_until.rb b/lib/CloudPDF/types/doc_versions_analysis200response_until.rb new file mode 100644 index 0000000..9ffd7f7 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_until.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis200ResponseUntil < Internal::Types::Model + field :revision_index, -> { Integer }, optional: false, nullable: false, api_name: "revisionIndex" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis200response_verdict.rb b/lib/CloudPDF/types/doc_versions_analysis200response_verdict.rb new file mode 100644 index 0000000..1e4771e --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis200response_verdict.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis200ResponseVerdict + extend CloudPDF::Internal::Types::Enum + + UNCHANGED = "unchanged" + PERMITTED = "permitted" + FORBIDDEN = "forbidden" + INDETERMINATE = "indeterminate" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis400response.rb b/lib/CloudPDF/types/doc_versions_analysis400response.rb new file mode 100644 index 0000000..b1a9270 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis400response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis400Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsAnalysis400ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsAnalysis400ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis400response_code.rb b/lib/CloudPDF/types/doc_versions_analysis400response_code.rb new file mode 100644 index 0000000..66aa91f --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis400response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis400ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis400response_name.rb b/lib/CloudPDF/types/doc_versions_analysis400response_name.rb new file mode 100644 index 0000000..0d8e102 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis400response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis400ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis404response.rb b/lib/CloudPDF/types/doc_versions_analysis404response.rb new file mode 100644 index 0000000..56210de --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsAnalysis404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsAnalysis404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsAnalysis404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis404response_code.rb b/lib/CloudPDF/types/doc_versions_analysis404response_code.rb new file mode 100644 index 0000000..2a35aae --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_analysis404response_name.rb b/lib/CloudPDF/types/doc_versions_analysis404response_name.rb new file mode 100644 index 0000000..bdd2feb --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_analysis404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsAnalysis404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_download_response.rb b/lib/CloudPDF/types/doc_versions_download_response.rb new file mode 100644 index 0000000..62627fe --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_download_response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsDownloadResponse < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsDownloadResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsDownloadResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_download_response_code.rb b/lib/CloudPDF/types/doc_versions_download_response_code.rb new file mode 100644 index 0000000..96f0802 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_download_response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsDownloadResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_download_response_name.rb b/lib/CloudPDF/types/doc_versions_download_response_name.rb new file mode 100644 index 0000000..ff237c0 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_download_response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsDownloadResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_list200response.rb b/lib/CloudPDF/types/doc_versions_list200response.rb new file mode 100644 index 0000000..4b7a1d1 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_list200response.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsList200Response < Internal::Types::Model + field :head, -> { String }, optional: false, nullable: false + + field :versions, -> { Internal::Types::Array[CloudPDF::Types::DocVersionsList200ResponseVersionsItem] }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_list200response_versions_item.rb b/lib/CloudPDF/types/doc_versions_list200response_versions_item.rb new file mode 100644 index 0000000..981af39 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_list200response_versions_item.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsList200ResponseVersionsItem < Internal::Types::Model + field :sha256, -> { String }, optional: false, nullable: false + + field :byte_length, -> { Integer }, optional: false, nullable: false, api_name: "byteLength" + + field :number, -> { Integer }, optional: false, nullable: false + + field :parent_sha256, -> { String }, optional: false, nullable: true, api_name: "parentSha256" + + field :producer, -> { CloudPDF::Types::DocVersionsList200ResponseVersionsItemProducer }, optional: false, nullable: false + + field :signing_id, -> { String }, optional: false, nullable: true, api_name: "signingId" + + field :created_at, -> { Integer }, optional: false, nullable: false, api_name: "createdAt" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_list200response_versions_item_producer.rb b/lib/CloudPDF/types/doc_versions_list200response_versions_item_producer.rb new file mode 100644 index 0000000..398e774 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_list200response_versions_item_producer.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsList200ResponseVersionsItemProducer + extend CloudPDF::Internal::Types::Enum + + UPLOAD = "upload" + SIGNATURE = "signature" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_list404response.rb b/lib/CloudPDF/types/doc_versions_list404response.rb new file mode 100644 index 0000000..8ff4fc6 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_list404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsList404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsList404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsList404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_list404response_code.rb b/lib/CloudPDF/types/doc_versions_list404response_code.rb new file mode 100644 index 0000000..d66698d --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_list404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsList404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_list404response_name.rb b/lib/CloudPDF/types/doc_versions_list404response_name.rb new file mode 100644 index 0000000..df94456 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_list404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsList404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_revision_response.rb b/lib/CloudPDF/types/doc_versions_revision_response.rb new file mode 100644 index 0000000..6fae36e --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_revision_response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsRevisionResponse < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsRevisionResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsRevisionResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_revision_response_code.rb b/lib/CloudPDF/types/doc_versions_revision_response_code.rb new file mode 100644 index 0000000..19bab54 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_revision_response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsRevisionResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_revision_response_name.rb b/lib/CloudPDF/types/doc_versions_revision_response_name.rb new file mode 100644 index 0000000..3a8d100 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_revision_response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsRevisionResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signature_contents_response.rb b/lib/CloudPDF/types/doc_versions_signature_contents_response.rb new file mode 100644 index 0000000..e5faf77 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signature_contents_response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatureContentsResponse < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsSignatureContentsResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsSignatureContentsResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signature_contents_response_code.rb b/lib/CloudPDF/types/doc_versions_signature_contents_response_code.rb new file mode 100644 index 0000000..09f1d65 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signature_contents_response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatureContentsResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signature_contents_response_name.rb b/lib/CloudPDF/types/doc_versions_signature_contents_response_name.rb new file mode 100644 index 0000000..9356b7f --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signature_contents_response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatureContentsResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signature_digest_response.rb b/lib/CloudPDF/types/doc_versions_signature_digest_response.rb new file mode 100644 index 0000000..adb9348 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signature_digest_response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatureDigestResponse < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsSignatureDigestResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsSignatureDigestResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signature_digest_response_code.rb b/lib/CloudPDF/types/doc_versions_signature_digest_response_code.rb new file mode 100644 index 0000000..8160bae --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signature_digest_response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatureDigestResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signature_digest_response_name.rb b/lib/CloudPDF/types/doc_versions_signature_digest_response_name.rb new file mode 100644 index 0000000..d6ec07a --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signature_digest_response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatureDigestResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response.rb b/lib/CloudPDF/types/doc_versions_signatures200response.rb new file mode 100644 index 0000000..967941b --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200Response < Internal::Types::Model + field :chain_valid, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "chainValid" + + field :revisions, -> { Internal::Types::Array[CloudPDF::Types::DocVersionsSignatures200ResponseRevisionsItem] }, optional: false, nullable: false + + field :signatures, -> { Internal::Types::Array[CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItem] }, optional: false, nullable: false + + field :protection, -> { CloudPDF::Types::DocVersionsSignatures200ResponseProtection }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection.rb new file mode 100644 index 0000000..b026142 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseProtection < Internal::Types::Model + field :enforced, -> { CloudPDF::Types::DocVersionsSignatures200ResponseProtectionEnforced }, optional: false, nullable: true + + field :judged, -> { CloudPDF::Types::DocVersionsSignatures200ResponseProtectionJudged }, optional: false, nullable: true + + field :certification, -> { CloudPDF::Types::DocVersionsSignatures200ResponseProtectionCertification }, optional: false, nullable: true + + field :field_locks, -> { Internal::Types::Array[CloudPDF::Types::DocVersionsSignatures200ResponseProtectionFieldLocksItem] }, optional: false, nullable: false, api_name: "fieldLocks" + + field :policy_version, -> { Integer }, optional: false, nullable: false, api_name: "policyVersion" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection_certification.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection_certification.rb new file mode 100644 index 0000000..d21cf81 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection_certification.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseProtectionCertification < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :permission, -> { Integer }, optional: false, nullable: true + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection_enforced.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection_enforced.rb new file mode 100644 index 0000000..6d32297 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection_enforced.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseProtectionEnforced + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item.rb new file mode 100644 index 0000000..23eb651 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseProtectionFieldLocksItem < Internal::Types::Model + field :signature_index, -> { Integer }, optional: false, nullable: false, api_name: "signatureIndex" + + field :source, -> { CloudPDF::Types::DocVersionsSignatures200ResponseProtectionFieldLocksItemSource }, optional: false, nullable: false + + field :spec, -> { CloudPDF::Types::DocVersionsSignatures200ResponseProtectionFieldLocksItemSpec }, optional: false, nullable: true + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_source.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_source.rb new file mode 100644 index 0000000..84febc6 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_source.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseProtectionFieldLocksItemSource + extend CloudPDF::Internal::Types::Enum + + FIELDMDP = "fieldmdp" + LOCK = "lock" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec.rb new file mode 100644 index 0000000..7ea9850 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseProtectionFieldLocksItemSpec < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocVersionsSignatures200ResponseProtectionFieldLocksItemSpecAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec_action.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec_action.rb new file mode 100644 index 0000000..8d042e8 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseProtectionFieldLocksItemSpecAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_protection_judged.rb b/lib/CloudPDF/types/doc_versions_signatures200response_protection_judged.rb new file mode 100644 index 0000000..0845927 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_protection_judged.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseProtectionJudged + extend CloudPDF::Internal::Types::Enum + + NONE = "none" + LTA = "lta" + FILL = "fill" + ANNOTATE = "annotate" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_revisions_item.rb b/lib/CloudPDF/types/doc_versions_signatures200response_revisions_item.rb new file mode 100644 index 0000000..fbe7827 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_revisions_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseRevisionsItem < Internal::Types::Model + field :index, -> { Integer }, optional: false, nullable: false + + field :end_, -> { Integer }, optional: false, nullable: false, api_name: "end" + + field :xref_offset, -> { Integer }, optional: false, nullable: false, api_name: "xrefOffset" + + field :signature_index, -> { Integer }, optional: false, nullable: true, api_name: "signatureIndex" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item.rb new file mode 100644 index 0000000..b4c63f1 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItem < Internal::Types::Model + field :index, -> { Integer }, optional: false, nullable: false + + field :field, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemField }, optional: false, nullable: false + + field :field_name, -> { String }, optional: false, nullable: false, api_name: "fieldName" + + field :widget, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemWidget }, optional: false, nullable: true + + field :signed, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :kind, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemKind }, optional: false, nullable: false + + field :filter, -> { String }, optional: false, nullable: true + + field :sub_filter, -> { String }, optional: false, nullable: true, api_name: "subFilter" + + field :byte_range, -> { Internal::Types::Array[Object] }, optional: false, nullable: true, api_name: "byteRange" + + field :contents_size, -> { Integer }, optional: false, nullable: false, api_name: "contentsSize" + + field :coverage, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemCoverage }, optional: false, nullable: true + + field :revision_index, -> { Integer }, optional: false, nullable: true, api_name: "revisionIndex" + + field :signer, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemSigner }, optional: false, nullable: false + + field :doc_mdp, -> { Integer }, optional: false, nullable: true, api_name: "docMdp" + + field :catalog_certification, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "catalogCertification" + + field :field_mdp, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemFieldMdp }, optional: false, nullable: true, api_name: "fieldMdp" + + field :lock, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemLock }, optional: false, nullable: true + + field :seed_value, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemSeedValue }, optional: false, nullable: true, api_name: "seedValue" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_coverage.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_coverage.rb new file mode 100644 index 0000000..0f51205 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_coverage.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseSignaturesItemCoverage + extend CloudPDF::Internal::Types::Enum + + WHOLE_REVISION = "whole-revision" + PARTIAL = "partial" + MALFORMED = "malformed" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field.rb new file mode 100644 index 0000000..1f31658 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemField < Internal::Types::Model + extend CloudPDF::Internal::Types::Union + + discriminant :kind + + member -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemFieldObjectNumber }, key: "OBJECT_NUMBER" + + member -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemFieldFqn }, key: "FQN" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_fqn.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_fqn.rb new file mode 100644 index 0000000..0fd58ad --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_fqn.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemFieldFqn < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp.rb new file mode 100644 index 0000000..3bd1b22 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemFieldMdp < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemFieldMdpAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp_action.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp_action.rb new file mode 100644 index 0000000..67166d1 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseSignaturesItemFieldMdpAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_object_number.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_object_number.rb new file mode 100644 index 0000000..556b2fc --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_object_number.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemFieldObjectNumber < Internal::Types::Model + field :field_object_number, -> { Integer }, optional: false, nullable: false, api_name: "fieldObjectNumber" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_kind.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_kind.rb new file mode 100644 index 0000000..9577e17 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_kind.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseSignaturesItemKind + extend CloudPDF::Internal::Types::Enum + + SIGNATURE = "signature" + TIMESTAMP = "timestamp" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock.rb new file mode 100644 index 0000000..d512285 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemLock < Internal::Types::Model + field :action, -> { CloudPDF::Types::DocVersionsSignatures200ResponseSignaturesItemLockAction }, optional: false, nullable: false + + field :fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :permission, -> { Integer }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock_action.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock_action.rb new file mode 100644 index 0000000..1084980 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock_action.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures200ResponseSignaturesItemLockAction + extend CloudPDF::Internal::Types::Enum + + ALL = "all" + INCLUDE = "include" + EXCLUDE = "exclude" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_seed_value.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_seed_value.rb new file mode 100644 index 0000000..02d0805 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_seed_value.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemSeedValue < Internal::Types::Model + field :required_flags, -> { Integer }, optional: false, nullable: false, api_name: "requiredFlags" + + field :present_flags, -> { Integer }, optional: false, nullable: false, api_name: "presentFlags" + + field :version, -> { Integer }, optional: false, nullable: true + + field :mdp, -> { Integer }, optional: false, nullable: true + + field :filter, -> { String }, optional: false, nullable: true + + field :sub_filters, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "subFilters" + + field :digest_methods, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "digestMethods" + + field :reasons, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :unsupported_required, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "unsupportedRequired" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_signer.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_signer.rb new file mode 100644 index 0000000..3c8c6d1 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_signer.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemSigner < Internal::Types::Model + field :name, -> { String }, optional: false, nullable: true + + field :reason, -> { String }, optional: false, nullable: true + + field :location, -> { String }, optional: false, nullable: true + + field :contact_info, -> { String }, optional: false, nullable: true, api_name: "contactInfo" + + field :claimed_time, -> { String }, optional: false, nullable: true, api_name: "claimedTime" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_widget.rb b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_widget.rb new file mode 100644 index 0000000..f19c488 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_widget.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures200ResponseSignaturesItemWidget < Internal::Types::Model + field :annot_object_number, -> { Integer }, optional: false, nullable: false, api_name: "annotObjectNumber" + + field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures404response.rb b/lib/CloudPDF/types/doc_versions_signatures404response.rb new file mode 100644 index 0000000..c6ba039 --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures404response.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + class DocVersionsSignatures404Response < Internal::Types::Model + field :name, -> { CloudPDF::Types::DocVersionsSignatures404ResponseName }, optional: false, nullable: false + + field :code, -> { CloudPDF::Types::DocVersionsSignatures404ResponseCode }, optional: false, nullable: false + + field :message, -> { String }, optional: false, nullable: false + + field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures404response_code.rb b/lib/CloudPDF/types/doc_versions_signatures404response_code.rb new file mode 100644 index 0000000..0d513eb --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures404response_code.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures404ResponseCode + extend CloudPDF::Internal::Types::Enum + + UNKNOWN = "Unknown" + INVALID_ARG = "InvalidArg" + DOC_NOT_OPEN = "DocNotOpen" + DOC_OPEN_FAILED = "DocOpenFailed" + DOC_PASSWORD_REQUIRED = "DocPasswordRequired" + DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect" + SHARE_PASSWORD_REQUIRED = "SharePasswordRequired" + ABORTED = "Aborted" + NETWORK = "Network" + UNAUTHENTICATED = "Unauthenticated" + FORBIDDEN = "Forbidden" + NOT_FOUND = "NotFound" + WIRE_FORMAT = "WireFormat" + RUNTIME_UNAVAILABLE = "RuntimeUnavailable" + INVALID_REFERENCE = "InvalidReference" + WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict" + LAYER_VERSION_CONFLICT = "LayerVersionConflict" + NOT_IMPLEMENTED = "NotImplemented" + MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" + end + end +end diff --git a/lib/CloudPDF/types/doc_versions_signatures404response_name.rb b/lib/CloudPDF/types/doc_versions_signatures404response_name.rb new file mode 100644 index 0000000..055cbaa --- /dev/null +++ b/lib/CloudPDF/types/doc_versions_signatures404response_name.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CloudPDF + module Types + module DocVersionsSignatures404ResponseName + extend CloudPDF::Internal::Types::Enum + + ENGINE_ERROR = "EngineError" + end + end +end diff --git a/lib/CloudPDF/types/engine_error_payload_code.rb b/lib/CloudPDF/types/engine_error_payload_code.rb index c2b7a48..2ad5f30 100644 --- a/lib/CloudPDF/types/engine_error_payload_code.rb +++ b/lib/CloudPDF/types/engine_error_payload_code.rb @@ -24,6 +24,12 @@ module EngineErrorPayloadCode LAYER_VERSION_CONFLICT = "LayerVersionConflict" NOT_IMPLEMENTED = "NotImplemented" MALFORMED_PDF = "MalformedPdf" + SIGNING_PENDING = "SigningPending" + SIGNING_EXPIRED = "SigningExpired" + SIGNING_VERSION_MISMATCH = "SigningVersionMismatch" + SIGNATURE_REFUSED = "SignatureRefused" + PROTECTED_DOCUMENT = "ProtectedDocument" + STALE_BASE = "StaleBase" end end end diff --git a/lib/CloudPDF/version.rb b/lib/CloudPDF/version.rb index a1f7477..8d41eb5 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.12" + VERSION = "3.0.0.alpha.13" end diff --git a/lib/cloudpdf.rb b/lib/cloudpdf.rb index 26993df..2a1f603 100644 --- a/lib/cloudpdf.rb +++ b/lib/cloudpdf.rb @@ -45,6 +45,10 @@ require_relative "CloudPDF/documents/types/documents_init_request_dedup_mode" require_relative "CloudPDF/documents/types/documents_init_request_upload_preference" require_relative "CloudPDF/doc/forms/types/export_data_forms_request_format" +require_relative "CloudPDF/doc/signatures/types/doc_signatures_complete_request_expected_version" +require_relative "CloudPDF/doc/signatures/types/analysis_signatures_request_level" +require_relative "CloudPDF/doc/versions/types/analysis_versions_request_level" +require_relative "CloudPDF/doc/versions/types/signature_digest_versions_request_algorithm" require_relative "CloudPDF/types/admin_error_payload_error" require_relative "CloudPDF/types/admin_error_payload" require_relative "CloudPDF/types/engine_error_payload_name" @@ -283,6 +287,184 @@ require_relative "CloudPDF/types/doc_metadata_get404response_name" require_relative "CloudPDF/types/doc_metadata_get404response_code" require_relative "CloudPDF/types/doc_metadata_get404response" +require_relative "CloudPDF/types/doc_signatures_list200response_revisions_item" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_field_object_number" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_field_fqn" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_field" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_widget" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_kind" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_coverage" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_signer" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp_action" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_lock_action" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_lock" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item_seed_value" +require_relative "CloudPDF/types/doc_signatures_list200response_signatures_item" +require_relative "CloudPDF/types/doc_signatures_list200response_protection_enforced" +require_relative "CloudPDF/types/doc_signatures_list200response_protection_judged" +require_relative "CloudPDF/types/doc_signatures_list200response_protection_certification" +require_relative "CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_source" +require_relative "CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec_action" +require_relative "CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec" +require_relative "CloudPDF/types/doc_signatures_list200response_protection_field_locks_item" +require_relative "CloudPDF/types/doc_signatures_list200response_protection" +require_relative "CloudPDF/types/doc_signatures_list200response" +require_relative "CloudPDF/types/doc_signatures_list404response_name" +require_relative "CloudPDF/types/doc_signatures_list404response_code" +require_relative "CloudPDF/types/doc_signatures_list404response" +require_relative "CloudPDF/types/doc_signatures_analysis200response_mode" +require_relative "CloudPDF/types/doc_signatures_analysis200response_basis_version" +require_relative "CloudPDF/types/doc_signatures_analysis200response_basis_source" +require_relative "CloudPDF/types/doc_signatures_analysis200response_basis" +require_relative "CloudPDF/types/doc_signatures_analysis200response_since" +require_relative "CloudPDF/types/doc_signatures_analysis200response_until" +require_relative "CloudPDF/types/doc_signatures_analysis200response_restrictions_item_source" +require_relative "CloudPDF/types/doc_signatures_analysis200response_restrictions_item" +require_relative "CloudPDF/types/doc_signatures_analysis200response_current_verdict" +require_relative "CloudPDF/types/doc_signatures_analysis200response_current_primary_verdict" +require_relative "CloudPDF/types/doc_signatures_analysis200response_current_primary" +require_relative "CloudPDF/types/doc_signatures_analysis200response_current_findings_item_verdict" +require_relative "CloudPDF/types/doc_signatures_analysis200response_current_findings_item" +require_relative "CloudPDF/types/doc_signatures_analysis200response_current_method" +require_relative "CloudPDF/types/doc_signatures_analysis200response_current" +require_relative "CloudPDF/types/doc_signatures_analysis200response_later" +require_relative "CloudPDF/types/doc_signatures_analysis200response_verdict" +require_relative "CloudPDF/types/doc_signatures_analysis200response" +require_relative "CloudPDF/types/doc_signatures_analysis400response_name" +require_relative "CloudPDF/types/doc_signatures_analysis400response_code" +require_relative "CloudPDF/types/doc_signatures_analysis400response" +require_relative "CloudPDF/types/doc_signatures_analysis404response_name" +require_relative "CloudPDF/types/doc_signatures_analysis404response_code" +require_relative "CloudPDF/types/doc_signatures_analysis404response" +require_relative "CloudPDF/types/doc_signatures_prepare200response_algorithm" +require_relative "CloudPDF/types/doc_signatures_prepare200response_expected_version" +require_relative "CloudPDF/types/doc_signatures_prepare200response" +require_relative "CloudPDF/types/doc_signatures_prepare400response_name" +require_relative "CloudPDF/types/doc_signatures_prepare400response_code" +require_relative "CloudPDF/types/doc_signatures_prepare400response" +require_relative "CloudPDF/types/doc_signatures_prepare404response_name" +require_relative "CloudPDF/types/doc_signatures_prepare404response_code" +require_relative "CloudPDF/types/doc_signatures_prepare404response" +require_relative "CloudPDF/types/doc_signatures_prepare409response_name" +require_relative "CloudPDF/types/doc_signatures_prepare409response_code" +require_relative "CloudPDF/types/doc_signatures_prepare409response" +require_relative "CloudPDF/types/doc_signatures_complete200response_status" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_field_object_number" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_field_fqn" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_field" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_widget" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_kind" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_coverage" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_signer" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_field_mdp_action" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_field_mdp" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_lock_action" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_lock" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature_seed_value" +require_relative "CloudPDF/types/doc_signatures_complete200response_signature" +require_relative "CloudPDF/types/doc_signatures_complete200response_version" +require_relative "CloudPDF/types/doc_signatures_complete200response_previous" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection_enforced" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection_judged" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection_certification" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_source" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec_action" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item" +require_relative "CloudPDF/types/doc_signatures_complete200response_protection" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_revision" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_unknown" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_known" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item_cache" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta_cache_delta" +require_relative "CloudPDF/types/doc_signatures_complete200response_meta" +require_relative "CloudPDF/types/doc_signatures_complete200response" +require_relative "CloudPDF/types/doc_signatures_complete400response_name" +require_relative "CloudPDF/types/doc_signatures_complete400response_code" +require_relative "CloudPDF/types/doc_signatures_complete400response" +require_relative "CloudPDF/types/doc_signatures_complete404response_name" +require_relative "CloudPDF/types/doc_signatures_complete404response_code" +require_relative "CloudPDF/types/doc_signatures_complete404response" +require_relative "CloudPDF/types/doc_signatures_complete409response_name" +require_relative "CloudPDF/types/doc_signatures_complete409response_code" +require_relative "CloudPDF/types/doc_signatures_complete409response" +require_relative "CloudPDF/types/doc_signatures_abort200response_status" +require_relative "CloudPDF/types/doc_signatures_abort200response" +require_relative "CloudPDF/types/doc_signatures_abort404response_name" +require_relative "CloudPDF/types/doc_signatures_abort404response_code" +require_relative "CloudPDF/types/doc_signatures_abort404response" +require_relative "CloudPDF/types/doc_versions_list200response_versions_item_producer" +require_relative "CloudPDF/types/doc_versions_list200response_versions_item" +require_relative "CloudPDF/types/doc_versions_list200response" +require_relative "CloudPDF/types/doc_versions_list404response_name" +require_relative "CloudPDF/types/doc_versions_list404response_code" +require_relative "CloudPDF/types/doc_versions_list404response" +require_relative "CloudPDF/types/doc_versions_signatures200response_revisions_item" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_field_object_number" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_field_fqn" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_field" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_widget" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_kind" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_coverage" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_signer" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp_action" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_lock_action" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_lock" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item_seed_value" +require_relative "CloudPDF/types/doc_versions_signatures200response_signatures_item" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection_enforced" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection_judged" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection_certification" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_source" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec_action" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item" +require_relative "CloudPDF/types/doc_versions_signatures200response_protection" +require_relative "CloudPDF/types/doc_versions_signatures200response" +require_relative "CloudPDF/types/doc_versions_signatures404response_name" +require_relative "CloudPDF/types/doc_versions_signatures404response_code" +require_relative "CloudPDF/types/doc_versions_signatures404response" +require_relative "CloudPDF/types/doc_versions_signature_contents_response_name" +require_relative "CloudPDF/types/doc_versions_signature_contents_response_code" +require_relative "CloudPDF/types/doc_versions_signature_contents_response" +require_relative "CloudPDF/types/doc_versions_signature_digest_response_name" +require_relative "CloudPDF/types/doc_versions_signature_digest_response_code" +require_relative "CloudPDF/types/doc_versions_signature_digest_response" +require_relative "CloudPDF/types/doc_versions_analysis200response_mode" +require_relative "CloudPDF/types/doc_versions_analysis200response_basis_version" +require_relative "CloudPDF/types/doc_versions_analysis200response_basis_source" +require_relative "CloudPDF/types/doc_versions_analysis200response_basis" +require_relative "CloudPDF/types/doc_versions_analysis200response_since" +require_relative "CloudPDF/types/doc_versions_analysis200response_until" +require_relative "CloudPDF/types/doc_versions_analysis200response_restrictions_item_source" +require_relative "CloudPDF/types/doc_versions_analysis200response_restrictions_item" +require_relative "CloudPDF/types/doc_versions_analysis200response_current_verdict" +require_relative "CloudPDF/types/doc_versions_analysis200response_current_primary_verdict" +require_relative "CloudPDF/types/doc_versions_analysis200response_current_primary" +require_relative "CloudPDF/types/doc_versions_analysis200response_current_findings_item_verdict" +require_relative "CloudPDF/types/doc_versions_analysis200response_current_findings_item" +require_relative "CloudPDF/types/doc_versions_analysis200response_current_method" +require_relative "CloudPDF/types/doc_versions_analysis200response_current" +require_relative "CloudPDF/types/doc_versions_analysis200response_later" +require_relative "CloudPDF/types/doc_versions_analysis200response_verdict" +require_relative "CloudPDF/types/doc_versions_analysis200response" +require_relative "CloudPDF/types/doc_versions_analysis400response_name" +require_relative "CloudPDF/types/doc_versions_analysis400response_code" +require_relative "CloudPDF/types/doc_versions_analysis400response" +require_relative "CloudPDF/types/doc_versions_analysis404response_name" +require_relative "CloudPDF/types/doc_versions_analysis404response_code" +require_relative "CloudPDF/types/doc_versions_analysis404response" +require_relative "CloudPDF/types/doc_versions_download_response_name" +require_relative "CloudPDF/types/doc_versions_download_response_code" +require_relative "CloudPDF/types/doc_versions_download_response" +require_relative "CloudPDF/types/doc_versions_revision_response_name" +require_relative "CloudPDF/types/doc_versions_revision_response_code" +require_relative "CloudPDF/types/doc_versions_revision_response" require_relative "CloudPDF/types/doc_render_response_name" require_relative "CloudPDF/types/doc_render_response_code" require_relative "CloudPDF/types/doc_render_response" @@ -554,8 +736,22 @@ require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_in_reply_to" require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_reply_type" require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_intent" -require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_font_family" require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_text_align" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_decoration_item" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_script" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_align" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_dir" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_margins" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_align" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_dir" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_margins" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_957038" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_0dedd5" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_fd1f6a" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_item" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item" +require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text" require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_color" require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_font_color" require_relative "CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_interior_color" @@ -972,8 +1168,22 @@ require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_in_reply_to" require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_reply_type" require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_intent" -require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_font_family" require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_text_align" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_d_27cc8f" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_script" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_align" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_dir" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_margins" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_d0e05b" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_2ecf2a" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_aa2697" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_182642" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_84e1e5" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_1e6df8" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_99744f" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_e928ea" +require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text" require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_color" require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_font_color" require_relative "CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_interior_color" @@ -1624,3 +1834,17 @@ require_relative "CloudPDF/doc/pages/types/rotate_pages_request" require_relative "CloudPDF/doc/redactions/client" require_relative "CloudPDF/doc/redactions/types/apply_redactions_request" +require_relative "CloudPDF/doc/signatures/client" +require_relative "CloudPDF/doc/signatures/types/list_signatures_request" +require_relative "CloudPDF/doc/signatures/types/abort_signatures_request" +require_relative "CloudPDF/doc/signatures/types/doc_signatures_complete_request" +require_relative "CloudPDF/doc/signatures/types/analysis_signatures_request" +require_relative "CloudPDF/doc/signatures/types/prepare_signatures_request" +require_relative "CloudPDF/doc/versions/client" +require_relative "CloudPDF/doc/versions/types/list_versions_request" +require_relative "CloudPDF/doc/versions/types/analysis_versions_request" +require_relative "CloudPDF/doc/versions/types/download_versions_request" +require_relative "CloudPDF/doc/versions/types/revision_versions_request" +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" diff --git a/reference.md b/reference.md index 8a8b1f3..ca8334a 100644 --- a/reference.md +++ b/reference.md @@ -4028,3 +4028,1049 @@ client.doc.redactions.apply( +## Doc Signatures +
client.doc.signatures.list(doc_id:, layer_name:) -> CloudPDF::Types::DocSignaturesList200Response +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Describes the bytes the layer is over: the base version's signatures plus the layer's own edits as the last revision. Signed bytes (contents, digests, revision prefixes) are served per base version under /versions. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.signatures.list( + doc_id: "docId", + layer_name: "layerName" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**layer_name:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Signatures::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.signatures.abort(doc_id:, layer_name:, signing_id:) -> CloudPDF::Types::DocSignaturesAbort200Response +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.signatures.abort( + doc_id: "docId", + layer_name: "layerName", + signing_id: "signingId" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**layer_name:** `String` + +
+
+ +
+
+ +**signing_id:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Signatures::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.signatures.complete(doc_id:, layer_name:, signing_id:, request) -> CloudPDF::Types::DocSignaturesComplete200Response +
+
+ +#### 📝 Description + +
+
+ +
+
+ +`cms` is the detached CMS over the prepared digest, base64. `expectedVersion` must be what prepare returned. Idempotent by signing id: the same CMS again answers `already-completed`. Every layer of the document then sits over the new version; refetch the manifest after a completion. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.signatures.complete( + doc_id: "docId", + layer_name: "layerName", + signing_id: "signingId", + cms: "cms", + expected_version: { + base_sha256: "baseSha256", + edits_version: 1 + } +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**layer_name:** `String` + +
+
+ +
+
+ +**signing_id:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**cms:** `String` + +
+
+ +
+
+ +**expected_version:** `CloudPDF::Doc::Signatures::Types::DocSignaturesCompleteRequestExpectedVersion` + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Signatures::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.signatures.analysis(doc_id:, layer_name:) -> CloudPDF::Types::DocSignaturesAnalysis200Response +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Exactly one of `since.signature=` or `since.revision=`; the layer's pending edits are the end. `level=fill|annotate|lta|none` evaluates exploratorily and never becomes a verdict. For history between two base revisions use the version analysis. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.signatures.analysis( + doc_id: "docId", + layer_name: "layerName" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**layer_name:** `String` + +
+
+ +
+
+ +**since_signature:** `Integer` + +
+
+ +
+
+ +**since_revision:** `Integer` + +
+
+ +
+
+ +**level:** `CloudPDF::Doc::Signatures::Types::AnalysisSignaturesRequestLevel` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Signatures::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.signatures.prepare(doc_id:, layer_name:, request) -> CloudPDF::Types::DocSignaturesPrepare200Response +
+
+ +#### 📝 Description + +
+
+ +
+
+ +The multipart envelope: a JSON `body` part (field, subFilter, digest, contentsSize, signer, certify, lock, appearance) and an optional `resource:` PDF part the body's `appearance.resource` names. A certification (`certify.permission`) additionally requires `doc.sign.certify`. The layer is read-only until the signing completes, is aborted, or expires (15 minutes). A layer behind the document head cannot sign (StaleBase). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.signatures.prepare( + doc_id: "docId", + layer_name: "layerName" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**layer_name:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Signatures::RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Doc Versions +
client.doc.versions.list(doc_id:) -> CloudPDF::Types::DocVersionsList200Response +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Every completed signature publishes a new version. Never cached: the list grows. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.versions.list(doc_id: "docId") +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Versions::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.versions.analysis(doc_id:, sha:) -> CloudPDF::Types::DocVersionsAnalysis200Response +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Exactly one of `since.signature` / `since.revision`; `until=` defaults to the last. The same answer for every layer and every caller. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.versions.analysis( + doc_id: "docId", + sha: "sha" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**sha:** `String` + +
+
+ +
+
+ +**since_signature:** `Integer` + +
+
+ +
+
+ +**since_revision:** `Integer` + +
+
+ +
+
+ +**level:** `CloudPDF::Doc::Versions::Types::AnalysisVersionsRequestLevel` + +
+
+ +
+
+ +**until_:** `Integer` + +
+
+ +
+
+ +**policy:** `Integer` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Versions::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.versions.download(doc_id:, sha:) -> String +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.versions.download( + doc_id: "docId", + sha: "sha" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**sha:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Versions::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.versions.revision(doc_id:, sha:, index:) -> String +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.versions.revision( + doc_id: "docId", + sha: "sha", + index: 1 +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**sha:** `String` + +
+
+ +
+
+ +**index:** `Integer` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Versions::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.versions.signatures(doc_id:, sha:) -> CloudPDF::Types::DocVersionsSignatures200Response +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.versions.signatures( + doc_id: "docId", + sha: "sha" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**sha:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Versions::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.versions.signature_contents(doc_id:, sha:, field_key:) -> String +
+
+ +#### 📝 Description + +
+
+ +
+
+ +`fieldKey` is the field's fully qualified name, token-text encoded (the same encoding attachment keys use). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.versions.signature_contents( + doc_id: "docId", + sha: "sha", + field_key: "fieldKey" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**sha:** `String` + +
+
+ +
+
+ +**field_key:** `String` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Versions::RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.doc.versions.signature_digest(doc_id:, sha:, field_key:, algorithm:) -> String +
+
+ +#### 📝 Description + +
+
+ +
+
+ +What a CMS verifier compares its message digest to. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.doc.versions.signature_digest( + doc_id: "docId", + sha: "sha", + field_key: "fieldKey", + algorithm: "sha1" +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**doc_id:** `String` + +
+
+ +
+
+ +**sha:** `String` + +
+
+ +
+
+ +**field_key:** `String` + +
+
+ +
+
+ +**algorithm:** `CloudPDF::Doc::Versions::Types::SignatureDigestVersionsRequestAlgorithm` + +
+
+ +
+
+ +**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**request_options:** `CloudPDF::Doc::Versions::RequestOptions` + +
+
+
+
+ + +
+
+
+