From 9f370ebb9ef7712c9da5833c55e33af9d21dd11d Mon Sep 17 00:00:00 2001 From: cloudpdf-sdk-bot Date: Wed, 16 Sep 2026 20:44:39 +0000 Subject: [PATCH] chore: generate CloudPDF Ruby SDK 3.0.0.alpha.13 --- .fern/metadata.json | 4 +- cloudpdf-generation.json | 8 +- lib/CloudPDF/doc/client.rb | 10 + lib/CloudPDF/doc/signatures/client.rb | 276 +++++ .../types/abort_signatures_request.rb | 19 + .../types/analysis_signatures_request.rb | 23 + .../analysis_signatures_request_level.rb | 18 + .../types/doc_signatures_complete_request.rb | 23 + ...tures_complete_request_expected_version.rb | 15 + .../types/list_signatures_request.rb | 17 + .../types/prepare_signatures_request.rb | 17 + lib/CloudPDF/doc/versions/client.rb | 342 ++++++ .../types/analysis_versions_request.rb | 27 + .../types/analysis_versions_request_level.rb | 18 + .../types/download_versions_request.rb | 17 + .../versions/types/list_versions_request.rb | 15 + .../types/revision_versions_request.rb | 19 + .../signature_contents_versions_request.rb | 19 + .../signature_digest_versions_request.rb | 21 + ...ature_digest_versions_request_algorithm.rb | 18 + .../types/signatures_versions_request.rb | 17 + ...ions_create200response_meta_cache_delta.rb | 4 + .../doc_annotations_create400response_code.rb | 6 + .../doc_annotations_create404response_code.rb | 6 + ...ions_delete200response_meta_cache_delta.rb | 4 + .../doc_annotations_delete404response_code.rb | 6 + ...tions_export_appearance400response_code.rb | 6 + ...tions_export_appearance404response_code.rb | 6 + ...ons_flatten200response_meta_cache_delta.rb | 4 + ...doc_annotations_flatten400response_code.rb | 6 + ...doc_annotations_flatten404response_code.rb | 6 + ...t200response_annotations_item_free_text.rb | 4 +- ..._annotations_item_free_text_font_family.rb | 24 - ...se_annotations_item_free_text_rich_text.rb | 11 + ...notations_item_free_text_rich_text_body.rb | 37 + ...ons_item_free_text_rich_text_body_align.rb | 14 + ...ree_text_rich_text_body_decoration_item.rb | 13 + ...tions_item_free_text_rich_text_body_dir.rb | 12 + ...s_item_free_text_rich_text_body_margins.rb | 15 + ...ns_item_free_text_rich_text_body_script.rb | 13 + ...tem_free_text_rich_text_paragraphs_item.rb | 21 + ...ee_text_rich_text_paragraphs_item_align.rb | 14 + ...free_text_rich_text_paragraphs_item_dir.rb | 12 + ..._text_rich_text_paragraphs_item_margins.rb | 15 + ...t_rich_text_paragraphs_item_runs_0dedd5.rb | 13 + ...t_rich_text_paragraphs_item_runs_957038.rb | 13 + ...t_rich_text_paragraphs_item_runs_fd1f6a.rb | 27 + ...ext_rich_text_paragraphs_item_runs_item.rb | 11 + .../doc_annotations_list404response_code.rb | 6 + ...e_pages_item_annotations_item_free_text.rb | 4 +- ..._annotations_item_free_text_font_family.rb | 24 - ...em_annotations_item_free_text_rich_text.rb | 11 + ...notations_item_free_text_rich_text_body.rb | 37 + ...ons_item_free_text_rich_text_body_align.rb | 14 + ..._item_free_text_rich_text_body_d_27cc8f.rb | 13 + ...tions_item_free_text_rich_text_body_dir.rb | 12 + ...s_item_free_text_rich_text_body_margins.rb | 15 + ...ns_item_free_text_rich_text_body_script.rb | 13 + ..._item_free_text_rich_text_paragr_182642.rb | 13 + ..._item_free_text_rich_text_paragr_1e6df8.rb | 27 + ..._item_free_text_rich_text_paragr_2ecf2a.rb | 12 + ..._item_free_text_rich_text_paragr_84e1e5.rb | 13 + ..._item_free_text_rich_text_paragr_99744f.rb | 11 + ..._item_free_text_rich_text_paragr_aa2697.rb | 15 + ..._item_free_text_rich_text_paragr_d0e05b.rb | 14 + ..._item_free_text_rich_text_paragr_e928ea.rb | 21 + ...oc_annotations_list_all404response_code.rb | 6 + ...oc_annotations_list_all409response_code.rb | 6 + ...ions_update200response_meta_cache_delta.rb | 4 + .../doc_annotations_update400response_code.rb | 6 + .../doc_annotations_update404response_code.rb | 6 + .../types/doc_download_response_code.rb | 6 + .../doc_forms_export_data_response_code.rb | 6 + .../types/doc_forms_get404response_code.rb | 6 + ...import_data200response_meta_cache_delta.rb | 4 + .../doc_forms_import_data400response_code.rb | 6 + .../doc_forms_import_data404response_code.rb | 6 + ...forms_reset200response_meta_cache_delta.rb | 4 + .../types/doc_forms_reset404response_code.rb | 6 + ...s_set_value200response_meta_cache_delta.rb | 4 + .../doc_forms_set_value400response_code.rb | 6 + .../doc_forms_set_value404response_code.rb | 6 + .../types/doc_head404response_code.rb | 6 + lib/CloudPDF/types/doc_manifest200response.rb | 6 + .../types/doc_manifest404response_code.rb | 6 + .../types/doc_metadata_get404response_code.rb | 6 + ...ages_delete200response_meta_cache_delta.rb | 4 + .../types/doc_pages_delete400response_code.rb | 6 + .../types/doc_pages_delete404response_code.rb | 6 + .../doc_pages_extract400response_code.rb | 6 + .../doc_pages_extract404response_code.rb | 6 + ...ges_flatten200response_meta_cache_delta.rb | 4 + .../doc_pages_flatten400response_code.rb | 6 + .../doc_pages_flatten404response_code.rb | 6 + ...ages_insert200response_meta_cache_delta.rb | 4 + .../types/doc_pages_insert400response_code.rb | 6 + .../types/doc_pages_insert404response_code.rb | 6 + ...nsert_blank200response_meta_cache_delta.rb | 4 + .../doc_pages_insert_blank400response_code.rb | 6 + .../doc_pages_insert_blank404response_code.rb | 6 + ..._pages_move200response_meta_cache_delta.rb | 4 + .../types/doc_pages_move400response_code.rb | 6 + .../types/doc_pages_move404response_code.rb | 6 + ...remove_name200response_meta_cache_delta.rb | 4 + .../doc_pages_remove_name400response_code.rb | 6 + .../doc_pages_remove_name404response_code.rb | 6 + ...ages_rotate200response_meta_cache_delta.rb | 4 + .../types/doc_pages_rotate400response_code.rb | 6 + .../types/doc_pages_rotate404response_code.rb | 6 + ...es_set_name200response_meta_cache_delta.rb | 4 + .../doc_pages_set_name400response_code.rb | 6 + .../doc_pages_set_name404response_code.rb | 6 + ...tions_apply200response_meta_cache_delta.rb | 4 + .../doc_redactions_apply400response_code.rb | 6 + .../doc_redactions_apply404response_code.rb | 6 + .../types/doc_render_response_code.rb | 6 + .../types/doc_signatures_abort200response.rb | 9 + .../doc_signatures_abort200response_status.rb | 13 + .../types/doc_signatures_abort404response.rb | 15 + .../doc_signatures_abort404response_code.rb | 35 + .../doc_signatures_abort404response_name.rb | 11 + .../doc_signatures_analysis200response.rb | 27 + ...oc_signatures_analysis200response_basis.rb | 13 + ...atures_analysis200response_basis_source.rb | 12 + ...tures_analysis200response_basis_version.rb | 11 + ..._signatures_analysis200response_current.rb | 17 + ...alysis200response_current_findings_item.rb | 17 + ...0response_current_findings_item_verdict.rb | 13 + ...ures_analysis200response_current_method.rb | 12 + ...res_analysis200response_current_primary.rb | 17 + ...ysis200response_current_primary_verdict.rb | 13 + ...res_analysis200response_current_verdict.rb | 14 + ...oc_signatures_analysis200response_later.rb | 11 + ...doc_signatures_analysis200response_mode.rb | 12 + ...s_analysis200response_restrictions_item.rb | 19 + ...sis200response_restrictions_item_source.rb | 13 + ...oc_signatures_analysis200response_since.rb | 11 + ...oc_signatures_analysis200response_until.rb | 9 + ..._signatures_analysis200response_verdict.rb | 14 + .../doc_signatures_analysis400response.rb | 15 + ...doc_signatures_analysis400response_code.rb | 35 + ...doc_signatures_analysis400response_name.rb | 11 + .../doc_signatures_analysis404response.rb | 15 + ...doc_signatures_analysis404response_code.rb | 35 + ...doc_signatures_analysis404response_name.rb | 11 + .../doc_signatures_complete200response.rb | 19 + ...doc_signatures_complete200response_meta.rb | 11 + ...ete200response_meta_affected_pages_item.rb | 13 + ...ponse_meta_affected_pages_item_revision.rb | 13 + ...fected_pages_item_weak_annotation_state.rb | 15 + ..._pages_item_weak_annotation_state_known.rb | 9 + ...ages_item_weak_annotation_state_unknown.rb | 7 + ...es_complete200response_meta_cache_delta.rb | 19 + ...200response_meta_cache_delta_pages_item.rb | 11 + ...ponse_meta_cache_delta_pages_item_cache.rb | 11 + ...signatures_complete200response_previous.rb | 11 + ...gnatures_complete200response_protection.rb | 17 + ...ete200response_protection_certification.rb | 11 + ...complete200response_protection_enforced.rb | 14 + ...200response_protection_field_locks_item.rb | 13 + ...onse_protection_field_locks_item_source.rb | 12 + ...sponse_protection_field_locks_item_spec.rb | 13 + ...protection_field_locks_item_spec_action.rb | 13 + ...s_complete200response_protection_judged.rb | 14 + ...ignatures_complete200response_signature.rb | 43 + ..._complete200response_signature_coverage.rb | 13 + ...res_complete200response_signature_field.rb | 15 + ...complete200response_signature_field_fqn.rb | 9 + ...complete200response_signature_field_mdp.rb | 13 + ...e200response_signature_field_mdp_action.rb | 13 + ...0response_signature_field_object_number.rb | 9 + ...ures_complete200response_signature_kind.rb | 12 + ...ures_complete200response_signature_lock.rb | 13 + ...mplete200response_signature_lock_action.rb | 13 + ...omplete200response_signature_seed_value.rb | 25 + ...es_complete200response_signature_signer.rb | 17 + ...es_complete200response_signature_widget.rb | 11 + ...c_signatures_complete200response_status.rb | 12 + ..._signatures_complete200response_version.rb | 11 + .../doc_signatures_complete400response.rb | 15 + ...doc_signatures_complete400response_code.rb | 35 + ...doc_signatures_complete400response_name.rb | 11 + .../doc_signatures_complete404response.rb | 15 + ...doc_signatures_complete404response_code.rb | 35 + ...doc_signatures_complete404response_name.rb | 11 + .../doc_signatures_complete409response.rb | 15 + ...doc_signatures_complete409response_code.rb | 35 + ...doc_signatures_complete409response_name.rb | 11 + .../types/doc_signatures_list200response.rb | 15 + ...c_signatures_list200response_protection.rb | 17 + ...ist200response_protection_certification.rb | 11 + ...res_list200response_protection_enforced.rb | 14 + ...200response_protection_field_locks_item.rb | 13 + ...onse_protection_field_locks_item_source.rb | 12 + ...sponse_protection_field_locks_item_spec.rb | 13 + ...protection_field_locks_item_spec_action.rb | 13 + ...tures_list200response_protection_judged.rb | 14 + ...gnatures_list200response_revisions_item.rb | 15 + ...natures_list200response_signatures_item.rb | 43 + ...ist200response_signatures_item_coverage.rb | 13 + ...s_list200response_signatures_item_field.rb | 15 + ...st200response_signatures_item_field_fqn.rb | 9 + ...st200response_signatures_item_field_mdp.rb | 13 + ...sponse_signatures_item_field_mdp_action.rb | 13 + ...nse_signatures_item_field_object_number.rb | 9 + ...es_list200response_signatures_item_kind.rb | 12 + ...es_list200response_signatures_item_lock.rb | 13 + ...200response_signatures_item_lock_action.rb | 13 + ...t200response_signatures_item_seed_value.rb | 25 + ..._list200response_signatures_item_signer.rb | 17 + ..._list200response_signatures_item_widget.rb | 11 + .../types/doc_signatures_list404response.rb | 15 + .../doc_signatures_list404response_code.rb | 35 + .../doc_signatures_list404response_name.rb | 11 + .../doc_signatures_prepare200response.rb | 23 + ...signatures_prepare200response_algorithm.rb | 13 + ...res_prepare200response_expected_version.rb | 11 + .../doc_signatures_prepare400response.rb | 15 + .../doc_signatures_prepare400response_code.rb | 35 + .../doc_signatures_prepare400response_name.rb | 11 + .../doc_signatures_prepare404response.rb | 15 + .../doc_signatures_prepare404response_code.rb | 35 + .../doc_signatures_prepare404response_name.rb | 11 + .../doc_signatures_prepare409response.rb | 15 + .../doc_signatures_prepare409response_code.rb | 35 + .../doc_signatures_prepare409response_name.rb | 11 + .../types/doc_text404response_code.rb | 6 + .../types/doc_versions_analysis200response.rb | 27 + .../doc_versions_analysis200response_basis.rb | 13 + ...rsions_analysis200response_basis_source.rb | 12 + ...sions_analysis200response_basis_version.rb | 11 + ...oc_versions_analysis200response_current.rb | 17 + ...alysis200response_current_findings_item.rb | 17 + ...0response_current_findings_item_verdict.rb | 13 + ...ions_analysis200response_current_method.rb | 12 + ...ons_analysis200response_current_primary.rb | 17 + ...ysis200response_current_primary_verdict.rb | 13 + ...ons_analysis200response_current_verdict.rb | 14 + .../doc_versions_analysis200response_later.rb | 11 + .../doc_versions_analysis200response_mode.rb | 12 + ...s_analysis200response_restrictions_item.rb | 19 + ...sis200response_restrictions_item_source.rb | 13 + .../doc_versions_analysis200response_since.rb | 11 + .../doc_versions_analysis200response_until.rb | 9 + ...oc_versions_analysis200response_verdict.rb | 14 + .../types/doc_versions_analysis400response.rb | 15 + .../doc_versions_analysis400response_code.rb | 35 + .../doc_versions_analysis400response_name.rb | 11 + .../types/doc_versions_analysis404response.rb | 15 + .../doc_versions_analysis404response_code.rb | 35 + .../doc_versions_analysis404response_name.rb | 11 + .../types/doc_versions_download_response.rb | 15 + .../doc_versions_download_response_code.rb | 35 + .../doc_versions_download_response_name.rb | 11 + .../types/doc_versions_list200response.rb | 11 + ..._versions_list200response_versions_item.rb | 21 + ..._list200response_versions_item_producer.rb | 12 + .../types/doc_versions_list404response.rb | 15 + .../doc_versions_list404response_code.rb | 35 + .../doc_versions_list404response_name.rb | 11 + .../types/doc_versions_revision_response.rb | 15 + .../doc_versions_revision_response_code.rb | 35 + .../doc_versions_revision_response_name.rb | 11 + ...oc_versions_signature_contents_response.rb | 15 + ...rsions_signature_contents_response_code.rb | 35 + ...rsions_signature_contents_response_name.rb | 11 + .../doc_versions_signature_digest_response.rb | 15 + ...versions_signature_digest_response_code.rb | 35 + ...versions_signature_digest_response_name.rb | 11 + .../doc_versions_signatures200response.rb | 15 + ...rsions_signatures200response_protection.rb | 17 + ...res200response_protection_certification.rb | 11 + ...gnatures200response_protection_enforced.rb | 14 + ...200response_protection_field_locks_item.rb | 13 + ...onse_protection_field_locks_item_source.rb | 12 + ...sponse_protection_field_locks_item_spec.rb | 13 + ...protection_field_locks_item_spec_action.rb | 13 + ...signatures200response_protection_judged.rb | 14 + ...ns_signatures200response_revisions_item.rb | 15 + ...s_signatures200response_signatures_item.rb | 43 + ...res200response_signatures_item_coverage.rb | 13 + ...atures200response_signatures_item_field.rb | 15 + ...es200response_signatures_item_field_fqn.rb | 9 + ...es200response_signatures_item_field_mdp.rb | 13 + ...sponse_signatures_item_field_mdp_action.rb | 13 + ...nse_signatures_item_field_object_number.rb | 9 + ...natures200response_signatures_item_kind.rb | 12 + ...natures200response_signatures_item_lock.rb | 13 + ...200response_signatures_item_lock_action.rb | 13 + ...s200response_signatures_item_seed_value.rb | 25 + ...tures200response_signatures_item_signer.rb | 17 + ...tures200response_signatures_item_widget.rb | 11 + .../doc_versions_signatures404response.rb | 15 + ...doc_versions_signatures404response_code.rb | 35 + ...doc_versions_signatures404response_name.rb | 11 + .../types/engine_error_payload_code.rb | 6 + lib/CloudPDF/version.rb | 2 +- lib/cloudpdf.rb | 228 +++- reference.md | 1046 +++++++++++++++++ 299 files changed, 5926 insertions(+), 59 deletions(-) create mode 100644 lib/CloudPDF/doc/signatures/client.rb create mode 100644 lib/CloudPDF/doc/signatures/types/abort_signatures_request.rb create mode 100644 lib/CloudPDF/doc/signatures/types/analysis_signatures_request.rb create mode 100644 lib/CloudPDF/doc/signatures/types/analysis_signatures_request_level.rb create mode 100644 lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request.rb create mode 100644 lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request_expected_version.rb create mode 100644 lib/CloudPDF/doc/signatures/types/list_signatures_request.rb create mode 100644 lib/CloudPDF/doc/signatures/types/prepare_signatures_request.rb create mode 100644 lib/CloudPDF/doc/versions/client.rb create mode 100644 lib/CloudPDF/doc/versions/types/analysis_versions_request.rb create mode 100644 lib/CloudPDF/doc/versions/types/analysis_versions_request_level.rb create mode 100644 lib/CloudPDF/doc/versions/types/download_versions_request.rb create mode 100644 lib/CloudPDF/doc/versions/types/list_versions_request.rb create mode 100644 lib/CloudPDF/doc/versions/types/revision_versions_request.rb create mode 100644 lib/CloudPDF/doc/versions/types/signature_contents_versions_request.rb create mode 100644 lib/CloudPDF/doc/versions/types/signature_digest_versions_request.rb create mode 100644 lib/CloudPDF/doc/versions/types/signature_digest_versions_request_algorithm.rb create mode 100644 lib/CloudPDF/doc/versions/types/signatures_versions_request.rb delete mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_font_family.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_align.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_decoration_item.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_dir.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_margins.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_body_script.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_align.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_dir.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_margins.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_0dedd5.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_957038.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_fd1f6a.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list200response_annotations_item_free_text_rich_text_paragraphs_item_runs_item.rb delete mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_font_family.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_align.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_d_27cc8f.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_dir.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_margins.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_body_script.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_182642.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_1e6df8.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_2ecf2a.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_84e1e5.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_99744f.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_aa2697.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_d0e05b.rb create mode 100644 lib/CloudPDF/types/doc_annotations_list_all200response_pages_item_annotations_item_free_text_rich_text_paragr_e928ea.rb create mode 100644 lib/CloudPDF/types/doc_signatures_abort200response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_abort200response_status.rb create mode 100644 lib/CloudPDF/types/doc_signatures_abort404response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_abort404response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_abort404response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_basis.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_basis_source.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_basis_version.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_current.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_current_findings_item_verdict.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_current_method.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_current_primary.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_current_primary_verdict.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_current_verdict.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_later.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_mode.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_restrictions_item_source.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_since.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_until.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis200response_verdict.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis400response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis400response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis400response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis404response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis404response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_analysis404response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_revision.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_known.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_affected_pages_item_weak_annotation_state_unknown.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_meta_cache_delta_pages_item_cache.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_previous.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection_certification.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection_enforced.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_source.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection_field_locks_item_spec_action.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_protection_judged.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_coverage.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_field.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_field_fqn.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_field_mdp_action.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_field_object_number.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_kind.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_lock.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_lock_action.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_seed_value.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_signer.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_signature_widget.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_status.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete200response_version.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete400response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete400response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete400response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete404response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete404response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete404response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete409response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete409response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_complete409response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection_certification.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection_enforced.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_source.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection_field_locks_item_spec_action.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_protection_judged.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_revisions_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_coverage.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_fqn.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_mdp_action.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_field_object_number.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_kind.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_lock_action.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_seed_value.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_signer.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list200response_signatures_item_widget.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list404response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list404response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_list404response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare200response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare200response_algorithm.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare200response_expected_version.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare400response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare400response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare400response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare404response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare404response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare404response_name.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare409response.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare409response_code.rb create mode 100644 lib/CloudPDF/types/doc_signatures_prepare409response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_basis.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_basis_source.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_basis_version.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_current.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_current_findings_item_verdict.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_current_method.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_current_primary.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_current_primary_verdict.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_current_verdict.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_later.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_mode.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_restrictions_item_source.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_since.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_until.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis200response_verdict.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis400response.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis400response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis400response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis404response.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis404response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_analysis404response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_download_response.rb create mode 100644 lib/CloudPDF/types/doc_versions_download_response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_download_response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_list200response.rb create mode 100644 lib/CloudPDF/types/doc_versions_list200response_versions_item.rb create mode 100644 lib/CloudPDF/types/doc_versions_list200response_versions_item_producer.rb create mode 100644 lib/CloudPDF/types/doc_versions_list404response.rb create mode 100644 lib/CloudPDF/types/doc_versions_list404response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_list404response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_revision_response.rb create mode 100644 lib/CloudPDF/types/doc_versions_revision_response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_revision_response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_signature_contents_response.rb create mode 100644 lib/CloudPDF/types/doc_versions_signature_contents_response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_signature_contents_response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_signature_digest_response.rb create mode 100644 lib/CloudPDF/types/doc_versions_signature_digest_response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_signature_digest_response_name.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection_certification.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection_enforced.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_source.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection_field_locks_item_spec_action.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_protection_judged.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_revisions_item.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_coverage.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_fqn.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_mdp_action.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_field_object_number.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_kind.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_lock_action.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_seed_value.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_signer.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures200response_signatures_item_widget.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures404response.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures404response_code.rb create mode 100644 lib/CloudPDF/types/doc_versions_signatures404response_name.rb diff --git a/.fern/metadata.json b/.fern/metadata.json index 9ba1211c..1924645b 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 14a424d9..4135808b 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 aba5c0cf..4b1c0caf 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 00000000..6c42585d --- /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 00000000..bc5c701d --- /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 00000000..957aa89b --- /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 00000000..68793231 --- /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 00000000..33d9ce72 --- /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 00000000..0db45313 --- /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 00000000..c3ec519f --- /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 00000000..275f7a75 --- /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 00000000..aa5fae77 --- /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 00000000..b4c8950c --- /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 00000000..02228d67 --- /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 00000000..9ee0ce33 --- /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 00000000..a63ec351 --- /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 00000000..fc274a53 --- /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 00000000..c954f8b4 --- /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 00000000..f604b302 --- /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 00000000..7acaa166 --- /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 00000000..fd9e32ee --- /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 75322e4f..eb2db03c 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 fefaa063..4468fc8f 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 254f2576..49ed495c 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 5a6bc15b..65b8c2ea 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 8271d137..9564a3a5 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 709a5a79..6936604e 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 0a382ab3..f5dbdb01 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 733f5d9b..ee79da49 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 12d2244e..c3f38215 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 8715473e..dfa10bf4 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 a61fac93..924dd418 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 e1eea1ab..00000000 --- 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 00000000..044c6ec6 --- /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 00000000..4d044520 --- /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 00000000..946e97ae --- /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 00000000..9307e881 --- /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 00000000..2e3d9f9c --- /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 00000000..6af23829 --- /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 00000000..19046206 --- /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 00000000..86502fcd --- /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 00000000..dbb0fadd --- /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 00000000..9db31984 --- /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 00000000..c467a6dc --- /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 00000000..d5b455b8 --- /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 00000000..98728497 --- /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 00000000..3ea16ede --- /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 00000000..9f8bfa1b --- /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 23c6c066..c80d63a2 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 483fb4ec..ddf6ddd0 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 6c909491..00000000 --- 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 00000000..094bc153 --- /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 00000000..7181f5da --- /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 00000000..3963d8bc --- /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 00000000..b53f94c0 --- /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 00000000..202ad86e --- /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 00000000..360c86ef --- /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 00000000..68fb5d54 --- /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 00000000..94a825c5 --- /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 00000000..04056ded --- /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 00000000..6ed2ca37 --- /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 00000000..b7687ef3 --- /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 00000000..82a4dc55 --- /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 00000000..887ec0ad --- /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 00000000..3d30f704 --- /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 00000000..24646db5 --- /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 259e7c0e..9772ec0b 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 376460ab..84d2e228 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 9f919508..333568d8 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 78a3fe17..8fbfabc9 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 78271d8d..8bc122c6 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 f4673060..faafda76 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 6698a850..fa7122ba 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 8dc0c325..f19ae8ec 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 46e4c649..c1194610 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 8d0d34b1..4059360d 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 ff517a61..9775f825 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 98629155..c633d412 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 e60460df..0bc46388 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 f8fa254e..0ae89f7f 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 7417f564..be825e6c 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 d3cd0928..5468254f 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 7b29cba7..095042fb 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 210b700c..3b18c3ce 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 3a509f4a..e5c70e65 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 9803381f..54bf668b 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 bc343c40..e110edcd 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 29a70de4..15bd5e87 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 dcc2b329..4e76908a 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 6adec5f9..bd4dd6b4 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 bd210875..5e2e07e9 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 b1e87c5e..ce2140c4 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 7a6a7f1d..9909ee10 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 3f14c3e1..38cbf55e 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 a3a41f24..948a3139 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 22e6ef59..948bca41 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 0d96f95b..bb4ce5da 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 3e2c84e1..2fe014df 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 d412a7d2..b849d305 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 0863b82b..0fe57962 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 63cf0e36..654942bd 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 bbc19b0a..15f3f7ee 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 c4d03dc0..e35bc860 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 c7bd821f..57e2f8f6 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 526c6097..7b38dc6f 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 cdd967fd..cdfb3296 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 54f6e5f9..90d56d9d 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 04e04c99..4b57dab8 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 cddae796..5f866e05 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 e88934e4..c8dbce25 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 ed62e058..8ba6b959 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 929bf057..d6a7f0a8 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 a6b75030..027a0cfc 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 1d25b274..12d02ee4 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 7235f1fb..f7464800 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 963e3bdd..bd4f9df2 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 00000000..c1a7d75c --- /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 00000000..ec77d121 --- /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 00000000..eabb635b --- /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 00000000..311f2f3e --- /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 00000000..cf88d1fa --- /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 00000000..91f50a3e --- /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 00000000..f6283107 --- /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 00000000..e9dae821 --- /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 00000000..9dea3db1 --- /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 00000000..aa99113a --- /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 00000000..27fcb24b --- /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 00000000..9789b661 --- /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 00000000..5df8c79f --- /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 00000000..f7071d3e --- /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 00000000..aded9451 --- /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 00000000..32e82c60 --- /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 00000000..15922cf9 --- /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 00000000..9a96eb37 --- /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 00000000..5ba9af25 --- /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 00000000..e18f9345 --- /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 00000000..35f9b2b8 --- /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 00000000..7e71dde3 --- /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 00000000..acdd8e2f --- /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 00000000..f891fc53 --- /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 00000000..e838a895 --- /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 00000000..8c5d87c0 --- /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 00000000..84bf2918 --- /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 00000000..20c2e656 --- /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 00000000..9bd193cf --- /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 00000000..1240678b --- /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 00000000..9aadaf9c --- /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 00000000..1fc273d3 --- /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 00000000..4d49afd1 --- /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 00000000..26b8fec9 --- /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 00000000..a958d1ba --- /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 00000000..bf933f97 --- /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 00000000..f31dd28d --- /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 00000000..a049707c --- /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 00000000..2cdbb5a5 --- /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 00000000..b8b4781f --- /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 00000000..711840d4 --- /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 00000000..28e7044d --- /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 00000000..51e76234 --- /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 00000000..2baffc0d --- /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 00000000..688ce2d8 --- /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 00000000..78f093c6 --- /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 00000000..95a9995c --- /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 00000000..c0bf69fe --- /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 00000000..e009c385 --- /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 00000000..21d75540 --- /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 00000000..faebf629 --- /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 00000000..ff73d51a --- /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 00000000..cdc8c934 --- /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 00000000..dc5c17d4 --- /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 00000000..590794bf --- /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 00000000..42279075 --- /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 00000000..9b9b82bb --- /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 00000000..2847f8af --- /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 00000000..b722d4bd --- /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 00000000..31338d5d --- /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 00000000..230e865b --- /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 00000000..d744d651 --- /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 00000000..183d1f06 --- /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 00000000..f09929b1 --- /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 00000000..dfe4e7b1 --- /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 00000000..c4802d69 --- /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 00000000..f8a5ab5b --- /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 00000000..f10cfcfc --- /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 00000000..372e714b --- /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 00000000..56101c12 --- /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 00000000..bdf68e6b --- /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 00000000..1197655e --- /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 00000000..5141f321 --- /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 00000000..12d9b890 --- /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 00000000..2b89541c --- /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 00000000..ea1f88c4 --- /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 00000000..d350a20f --- /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 00000000..e26ec726 --- /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 00000000..336e6d59 --- /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 00000000..91e10247 --- /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 00000000..c068e0f5 --- /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 00000000..b90a34be --- /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 00000000..7c6b13d5 --- /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 00000000..0e7195c6 --- /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 00000000..ba5fe3e2 --- /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 00000000..cb82e2ba --- /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 00000000..b254d66d --- /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 00000000..56723ab1 --- /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 00000000..45302c17 --- /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 00000000..b2fba942 --- /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 00000000..7a48bd85 --- /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 00000000..4657673d --- /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 00000000..1bb9d38c --- /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 00000000..70119dac --- /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 00000000..827e2828 --- /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 00000000..1eeb8643 --- /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 00000000..c60f3e0f --- /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 00000000..fdbe03c0 --- /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 00000000..e61e73dd --- /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 00000000..cb6ab56d --- /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 00000000..7fe4ab48 --- /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 00000000..83480a7f --- /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 00000000..10689d5d --- /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 00000000..c9ee5cd2 --- /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 00000000..49a99580 --- /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 00000000..e3b781a8 --- /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 00000000..e9535a4d --- /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 00000000..e2c411a7 --- /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 00000000..f7657027 --- /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 00000000..3ba06f57 --- /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 576e8470..d19223c6 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 00000000..97d56cf7 --- /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 00000000..9fd9ac86 --- /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 00000000..53eda11a --- /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 00000000..4abe7d47 --- /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 00000000..febbc8c4 --- /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 00000000..f4e96061 --- /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 00000000..47c4831c --- /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 00000000..0abf1ac3 --- /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 00000000..e1b34d35 --- /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 00000000..4c42dc4f --- /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 00000000..0c666dbf --- /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 00000000..58598a85 --- /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 00000000..1d0b7075 --- /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 00000000..994b3abf --- /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 00000000..2d3bf990 --- /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 00000000..86e17193 --- /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 00000000..9ffd7f77 --- /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 00000000..1e4771ef --- /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 00000000..b1a9270d --- /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 00000000..66aa91fe --- /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 00000000..0d8e102a --- /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 00000000..56210dee --- /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 00000000..2a35aaef --- /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 00000000..bdd2febe --- /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 00000000..62627fee --- /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 00000000..96f0802d --- /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 00000000..ff237c0a --- /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 00000000..4b7a1d19 --- /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 00000000..981af396 --- /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 00000000..398e774f --- /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 00000000..8ff4fc6c --- /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 00000000..d66698d3 --- /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 00000000..df94456f --- /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 00000000..6fae36ed --- /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 00000000..19bab54f --- /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 00000000..3a8d1005 --- /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 00000000..e5faf773 --- /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 00000000..09f1d654 --- /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 00000000..9356b7f6 --- /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 00000000..adb93483 --- /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 00000000..8160bae6 --- /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 00000000..d6ec07a9 --- /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 00000000..967941b6 --- /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 00000000..b026142b --- /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 00000000..d21cf81e --- /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 00000000..6d32297c --- /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 00000000..23eb6510 --- /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 00000000..84febc6e --- /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 00000000..7ea98503 --- /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 00000000..8d042e86 --- /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 00000000..08459279 --- /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 00000000..fbe78277 --- /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 00000000..b4c63f1c --- /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 00000000..0f51205a --- /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 00000000..1f316585 --- /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 00000000..0fd58add --- /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 00000000..3bd1b22e --- /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 00000000..67166d18 --- /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 00000000..556b2fcb --- /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 00000000..9577e178 --- /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 00000000..d5122859 --- /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 00000000..10849804 --- /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 00000000..02d08053 --- /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 00000000..3c8c6d17 --- /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 00000000..f19c4883 --- /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 00000000..c6ba039f --- /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 00000000..0d513eb1 --- /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 00000000..055cbaa8 --- /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 c2b7a487..2ad5f30b 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 a1f7477b..8d41eb5f 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 26993df7..2a1f6037 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 8a8b1f34..ca8334ab 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` + +
+
+
+
+ + +
+
+
+