cloudpdf 3.0.0.alpha.18 → 3.0.0.alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +2 -2
- data/README.md +9 -1
- data/lib/CloudPDF/client.rb +4 -4
- data/lib/CloudPDF/doc/client.rb +5 -0
- data/lib/CloudPDF/doc/fonts/client.rb +116 -0
- data/lib/CloudPDF/doc/fonts/programs/client.rb +111 -0
- data/lib/CloudPDF/doc/fonts/programs/types/download_programs_request.rb +21 -0
- data/lib/CloudPDF/doc/fonts/programs/types/get_programs_request.rb +21 -0
- data/lib/CloudPDF/doc/fonts/types/list_fonts_request.rb +17 -0
- data/lib/CloudPDF/doc/fonts/types/resolve_fonts_request.rb +19 -0
- data/lib/CloudPDF/documents/client.rb +9 -1
- data/lib/CloudPDF/documents/layers/client.rb +2 -2
- data/lib/CloudPDF/documents/layers/types/list_layers_request.rb +1 -1
- data/lib/CloudPDF/environment.rb +7 -0
- data/lib/CloudPDF/folders/client.rb +1 -1
- data/lib/CloudPDF/{shares → grants}/client.rb +57 -56
- data/lib/CloudPDF/{shares/types/archive_shares_request.rb → grants/types/archive_grants_request.rb} +3 -3
- data/lib/CloudPDF/{shares/types/delete_shares_request.rb → grants/types/delete_grants_request.rb} +3 -3
- data/lib/CloudPDF/{shares/types/get_shares_request.rb → grants/types/get_grants_request.rb} +3 -3
- data/lib/CloudPDF/{shares/types/shares_create_request.rb → grants/types/grants_create_request.rb} +7 -5
- data/lib/CloudPDF/{shares/types/shares_create_request_layer_mode.rb → grants/types/grants_create_request_layer_mode.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity.rb → grants/types/grants_create_request_visitor_identity.rb} +4 -4
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_ask.rb → grants/types/grants_create_request_visitor_identity_ask.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields.rb → grants/types/grants_create_request_visitor_identity_fields.rb} +7 -7
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_display_name.rb → grants/types/grants_create_request_visitor_identity_fields_display_name.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_title.rb → grants/types/grants_create_request_visitor_identity_fields_email.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_organization.rb → grants/types/grants_create_request_visitor_identity_fields_organization.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_organizational_unit.rb → grants/types/grants_create_request_visitor_identity_fields_organizational_unit.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_email.rb → grants/types/grants_create_request_visitor_identity_fields_title.rb} +2 -2
- data/lib/CloudPDF/grants/types/grants_exchange_request.rb +19 -0
- data/lib/CloudPDF/{shares/types/shares_exchange_request_visitor_identity.rb → grants/types/grants_exchange_request_visitor_identity.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request.rb → grants/types/grants_update_request.rb} +8 -6
- data/lib/CloudPDF/{shares/types/shares_update_request_layer_mode.rb → grants/types/grants_update_request_layer_mode.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity.rb → grants/types/grants_update_request_visitor_identity.rb} +4 -4
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_ask.rb → grants/types/grants_update_request_visitor_identity_ask.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields.rb → grants/types/grants_update_request_visitor_identity_fields.rb} +7 -7
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_display_name.rb → grants/types/grants_update_request_visitor_identity_fields_display_name.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_title.rb → grants/types/grants_update_request_visitor_identity_fields_email.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_organization.rb → grants/types/grants_update_request_visitor_identity_fields_organization.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_organizational_unit.rb → grants/types/grants_update_request_visitor_identity_fields_organizational_unit.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_email.rb → grants/types/grants_update_request_visitor_identity_fields_title.rb} +2 -2
- data/lib/CloudPDF/{shares/types/list_shares_request.rb → grants/types/list_grants_request.rb} +2 -2
- data/lib/CloudPDF/{shares → grants}/visitors/client.rb +12 -12
- data/lib/CloudPDF/{shares → grants}/visitors/types/delete_visitors_request.rb +2 -2
- data/lib/CloudPDF/{shares → grants}/visitors/types/list_visitors_request.rb +2 -2
- data/lib/CloudPDF/tenants/client.rb +1 -1
- data/lib/CloudPDF/tokens/client.rb +4 -2
- data/lib/CloudPDF/types/annotation_caret.rb +2 -0
- data/lib/CloudPDF/types/annotation_circle.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_caret.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_circle.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_file_attachment.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_free_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_highlight.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_ink.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_line.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_link.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_polygon.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_polyline.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_popup.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_redact.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_square.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_squiggly.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_stamp.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_strikeout.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_underline.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_widget.rb +2 -0
- data/lib/CloudPDF/types/annotation_file_attachment.rb +2 -0
- data/lib/CloudPDF/types/annotation_free_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_highlight.rb +2 -0
- data/lib/CloudPDF/types/annotation_ink.rb +2 -0
- data/lib/CloudPDF/types/annotation_line.rb +2 -0
- data/lib/CloudPDF/types/annotation_link.rb +2 -0
- data/lib/CloudPDF/types/annotation_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_caret.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_circle.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_file_attachment.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_free_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_highlight.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_ink.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_line.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_link.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_polygon.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_polyline.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_popup.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_redact.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_square.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_squiggly.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_stamp.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_strikeout.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_underline.rb +2 -0
- data/lib/CloudPDF/types/annotation_polygon.rb +2 -0
- data/lib/CloudPDF/types/annotation_polyline.rb +2 -0
- data/lib/CloudPDF/types/annotation_popup.rb +2 -0
- data/lib/CloudPDF/types/annotation_redact.rb +2 -0
- data/lib/CloudPDF/types/annotation_square.rb +2 -0
- data/lib/CloudPDF/types/annotation_squiggly.rb +2 -0
- data/lib/CloudPDF/types/annotation_stamp.rb +2 -0
- data/lib/CloudPDF/types/annotation_strikeout.rb +2 -0
- data/lib/CloudPDF/types/annotation_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_underline.rb +2 -0
- data/lib/CloudPDF/types/annotation_unsupported.rb +2 -0
- data/lib/CloudPDF/types/attachment_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/cache_delta.rb +2 -0
- data/lib/CloudPDF/types/change_item.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_copy.rb +13 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item.rb +11 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target.rb +17 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_dangling.rb +7 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_page.rb +9 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_template.rb +9 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item.rb +27 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes.rb +17 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_art.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_bleed.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_crop.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_media.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_trim.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_pdf_crop_box.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_size.rb +11 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_tab_order.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_delete_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_blank_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_reorder_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_restore_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_rotate_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_skipped_op.rb +1 -0
- data/lib/CloudPDF/types/change_op.rb +2 -0
- data/lib/CloudPDF/types/change_op_pages_copy.rb +13 -0
- data/lib/CloudPDF/types/change_op_pages_insert.rb +2 -0
- data/lib/CloudPDF/types/{shares_get404response.rb → doc_fonts_list200response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_archive404response.rb → doc_fonts_list404response.rb} +2 -2
- data/lib/CloudPDF/types/doc_fonts_programs_download403response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_programs_download404response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_programs_get200response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_programs_get404response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve200response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve400response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve404response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve_request.rb +23 -0
- data/lib/CloudPDF/types/doc_manifest200response.rb +4 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_layout.rb +2 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_layout.rb +2 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/documents_init403response.rb +23 -0
- data/lib/CloudPDF/types/documents_layers_list200response_layers_item.rb +1 -1
- data/lib/CloudPDF/types/documents_upload_proxy404response.rb +23 -0
- data/lib/CloudPDF/types/engine_error_payload_code.rb +1 -1
- data/lib/CloudPDF/types/font.rb +25 -0
- data/lib/CloudPDF/types/font_list.rb +13 -0
- data/lib/CloudPDF/types/font_program.rb +19 -0
- data/lib/CloudPDF/types/font_program_embedded.rb +13 -0
- data/lib/CloudPDF/types/font_program_embedding_permission.rb +13 -0
- data/lib/CloudPDF/types/font_program_format.rb +15 -0
- data/lib/CloudPDF/types/font_program_info.rb +25 -0
- data/lib/CloudPDF/types/font_program_info_covers_item.rb +11 -0
- data/lib/CloudPDF/types/font_program_info_embedded.rb +13 -0
- data/lib/CloudPDF/types/font_program_info_embedding_permission.rb +13 -0
- data/lib/CloudPDF/types/font_program_info_format.rb +15 -0
- data/lib/CloudPDF/types/font_resolution.rb +11 -0
- data/lib/CloudPDF/types/font_resolve_request.rb +11 -0
- data/lib/CloudPDF/types/font_resolve_run.rb +17 -0
- data/lib/CloudPDF/types/font_restrictions_item.rb +16 -0
- data/lib/CloudPDF/types/font_source.rb +13 -0
- data/lib/CloudPDF/types/form_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/grants_archive200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_archive200response_share.rb → grants_archive200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_archive200response_share_layer_mode.rb → grants_archive200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_archive200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_ask.rb → grants_archive200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_archive200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_display_name.rb → grants_archive200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_email.rb → grants_archive200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_organization.rb → grants_archive200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_organizational_unit.rb → grants_archive200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_title.rb → grants_archive200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/grants_archive404response.rb +23 -0
- data/lib/CloudPDF/types/grants_create200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_update200response_share.rb → grants_create200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_create200response_share_layer_mode.rb → grants_create200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_create200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_ask.rb → grants_create200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_create200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_display_name.rb → grants_create200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_email.rb → grants_create200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_organization.rb → grants_create200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_organizational_unit.rb → grants_create200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_title.rb → grants_create200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_delete404response.rb → grants_create400response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_create400response.rb → grants_create403response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_create403response.rb → grants_create404response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_create404response.rb → grants_delete404response.rb} +2 -2
- data/lib/CloudPDF/types/grants_delete409response.rb +23 -0
- data/lib/CloudPDF/types/{shares_exchange200response.rb → grants_exchange200response.rb} +3 -3
- data/lib/CloudPDF/types/{shares_exchange200response_layer_mode.rb → grants_exchange200response_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor.rb → grants_exchange200response_visitor.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request.rb → grants_exchange200response_visitor_identity_request.rb} +4 -4
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields.rb → grants_exchange200response_visitor_identity_request_fields.rb} +6 -6
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_display_name.rb → grants_exchange200response_visitor_identity_request_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_email.rb → grants_exchange200response_visitor_identity_request_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_organization.rb → grants_exchange200response_visitor_identity_request_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_organizational_unit.rb → grants_exchange200response_visitor_identity_request_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_title.rb → grants_exchange200response_visitor_identity_request_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_invalid_item.rb → grants_exchange200response_visitor_identity_request_invalid_item.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_missing_item.rb → grants_exchange200response_visitor_identity_request_missing_item.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange400response.rb → grants_exchange400response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange403response.rb → grants_exchange403response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange404response.rb → grants_exchange404response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange410response.rb → grants_exchange410response.rb} +2 -2
- data/lib/CloudPDF/types/grants_exchange422response.rb +23 -0
- data/lib/CloudPDF/types/grants_get200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_get200response_share.rb → grants_get200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_get200response_share_layer_mode.rb → grants_get200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_get200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_ask.rb → grants_get200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_get200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_display_name.rb → grants_get200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_email.rb → grants_get200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_organization.rb → grants_get200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_organizational_unit.rb → grants_get200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_title.rb → grants_get200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list400response.rb → grants_get404response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_list200response.rb → grants_list200response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_list200response_shares_item.rb → grants_list200response_grants_item.rb} +6 -4
- data/lib/CloudPDF/types/grants_list200response_grants_item_layer_mode.rb +12 -0
- data/lib/CloudPDF/types/grants_list200response_grants_item_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_ask.rb → grants_list200response_grants_item_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_list200response_grants_item_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_display_name.rb → grants_list200response_grants_item_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_email.rb → grants_list200response_grants_item_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_organization.rb → grants_list200response_grants_item_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_organizational_unit.rb → grants_list200response_grants_item_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_title.rb → grants_list200response_grants_item_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/grants_list400response.rb +23 -0
- data/lib/CloudPDF/types/grants_update200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_create200response_share.rb → grants_update200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_update200response_share_layer_mode.rb → grants_update200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_update200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_ask.rb → grants_update200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_update200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_display_name.rb → grants_update200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_email.rb → grants_update200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_organization.rb → grants_update200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_organizational_unit.rb → grants_update200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_title.rb → grants_update200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/grants_update400response.rb +23 -0
- data/lib/CloudPDF/types/grants_update403response.rb +23 -0
- data/lib/CloudPDF/types/grants_update404response.rb +23 -0
- data/lib/CloudPDF/types/grants_update409response.rb +23 -0
- data/lib/CloudPDF/types/{shares_visitors_delete_response.rb → grants_visitors_delete_response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_visitors_list200response.rb → grants_visitors_list200response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_visitors_list200response_visitors_item.rb → grants_visitors_list200response_visitors_item.rb} +3 -3
- data/lib/CloudPDF/types/{shares_visitors_list200response_visitors_item_answers.rb → grants_visitors_list200response_visitors_item_answers.rb} +1 -1
- data/lib/CloudPDF/types/{shares_visitors_list200response_visitors_item_layer.rb → grants_visitors_list200response_visitors_item_layer.rb} +1 -1
- data/lib/CloudPDF/types/{shares_visitors_list400response.rb → grants_visitors_list400response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_visitors_list404response.rb → grants_visitors_list404response.rb} +2 -2
- data/lib/CloudPDF/types/mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/outline_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/resolved_font_run.rb +19 -0
- data/lib/CloudPDF/types/tokens_issue_request.rb +2 -0
- data/lib/CloudPDF/types/tokens_issue_request_upload.rb +21 -0
- data/lib/CloudPDF/types/widget_annotation.rb +2 -0
- data/lib/CloudPDF/types/widget_patch.rb +2 -0
- data/lib/CloudPDF/version.rb +1 -1
- data/lib/cloudpdf.rb +194 -120
- data/reference.md +416 -59
- metadata +196 -122
- data/lib/CloudPDF/shares/types/shares_exchange_request.rb +0 -19
- data/lib/CloudPDF/types/shares_archive200response.rb +0 -9
- data/lib/CloudPDF/types/shares_archive200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_archive200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_create200response.rb +0 -9
- data/lib/CloudPDF/types/shares_create200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_create200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_delete409response.rb +0 -23
- data/lib/CloudPDF/types/shares_exchange422response.rb +0 -23
- data/lib/CloudPDF/types/shares_get200response.rb +0 -9
- data/lib/CloudPDF/types/shares_get200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_get200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_list200response_shares_item_layer_mode.rb +0 -12
- data/lib/CloudPDF/types/shares_list200response_shares_item_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_list200response_shares_item_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_update200response.rb +0 -9
- data/lib/CloudPDF/types/shares_update200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_update200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_update400response.rb +0 -23
- data/lib/CloudPDF/types/shares_update404response.rb +0 -23
- data/lib/CloudPDF/types/shares_update409response.rb +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a62e737365a4ab440bf04753fbabbf635d6d7028dc8804c66e5bb98dcc241374
|
|
4
|
+
data.tar.gz: b196ceb5e909449fdd6082a2827391dad356b9f611298eb1a7034705798b6000
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70a698ea37dd5fe9f4567c231fc3c4dfd43ee1deea87dff05de0c7c26d0510bfd86c00c9b3240399aac7d2b25d597c740a9f3b20e4b9469d28e60e9fb003c6e6
|
|
7
|
+
data.tar.gz: bdf1ff5df5da9758f85310ddf339e50dd8cc71150d830c894e6e8686a8603986fc2084b9c5ce3f1846b8d8f47d059edc2fd85cf01d2ebeba449c6648de9b245f
|
data/.fern/metadata.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"moduleName": "CloudPDF"
|
|
7
7
|
},
|
|
8
|
-
"originGitCommit": "
|
|
8
|
+
"originGitCommit": "622018abaf6e4578d1f4d8377982c48b92c9ced3",
|
|
9
9
|
"originGitCommitIsDirty": false,
|
|
10
10
|
"invokedBy": "ci",
|
|
11
|
-
"requestedVersion": "3.0.0.alpha.
|
|
11
|
+
"requestedVersion": "3.0.0.alpha.20",
|
|
12
12
|
"ciProvider": "github"
|
|
13
13
|
}
|
data/README.md
CHANGED
|
@@ -41,7 +41,15 @@ client.doc.changes(
|
|
|
41
41
|
|
|
42
42
|
## Environments
|
|
43
43
|
|
|
44
|
-
This SDK allows you to configure different custom URLs for API requests. You can specify your own custom URL.
|
|
44
|
+
This SDK allows you to configure different environments or custom URLs for API requests. You can either use the predefined environments or specify your own custom URL.
|
|
45
|
+
### Environments
|
|
46
|
+
```ruby
|
|
47
|
+
require "cloudpdf"
|
|
48
|
+
|
|
49
|
+
CloudPDF = CloudPDF::Client.new(
|
|
50
|
+
base_url: CloudPDF::Environment::SAAS
|
|
51
|
+
)
|
|
52
|
+
```
|
|
45
53
|
|
|
46
54
|
### Custom URL
|
|
47
55
|
```ruby
|
data/lib/CloudPDF/client.rb
CHANGED
|
@@ -9,7 +9,7 @@ module CloudPDF
|
|
|
9
9
|
# @return [void]
|
|
10
10
|
def initialize(token:, base_url: nil, max_retries: 2)
|
|
11
11
|
@raw_client = CloudPDF::Internal::Http::RawClient.new(
|
|
12
|
-
base_url: base_url,
|
|
12
|
+
base_url: base_url || CloudPDF::Environment::SAAS,
|
|
13
13
|
headers: {
|
|
14
14
|
"X-Fern-Language" => "Ruby",
|
|
15
15
|
Authorization: "Bearer #{token}"
|
|
@@ -28,9 +28,9 @@ module CloudPDF
|
|
|
28
28
|
@doc ||= CloudPDF::Doc::Client.new(client: @raw_client)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
# @return [CloudPDF::
|
|
32
|
-
def
|
|
33
|
-
@
|
|
31
|
+
# @return [CloudPDF::Grants::Client]
|
|
32
|
+
def grants
|
|
33
|
+
@grants ||= CloudPDF::Grants::Client.new(client: @raw_client)
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# @return [CloudPDF::Tenants::Client]
|
data/lib/CloudPDF/doc/client.rb
CHANGED
|
@@ -359,6 +359,11 @@ module CloudPDF
|
|
|
359
359
|
@attachments ||= CloudPDF::Doc::Attachments::Client.new(client: @client)
|
|
360
360
|
end
|
|
361
361
|
|
|
362
|
+
# @return [CloudPDF::Fonts::Client]
|
|
363
|
+
def fonts
|
|
364
|
+
@fonts ||= CloudPDF::Doc::Fonts::Client.new(client: @client)
|
|
365
|
+
end
|
|
366
|
+
|
|
362
367
|
# @return [CloudPDF::Forms::Client]
|
|
363
368
|
def forms
|
|
364
369
|
@forms ||= CloudPDF::Doc::Forms::Client.new(client: @client)
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
class Client
|
|
7
|
+
# @param client [CloudPDF::Internal::Http::RawClient]
|
|
8
|
+
#
|
|
9
|
+
# @return [void]
|
|
10
|
+
def initialize(client:)
|
|
11
|
+
@client = client
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# @param request_options [Hash]
|
|
15
|
+
# @param params [Hash]
|
|
16
|
+
# @option request_options [String] :base_url
|
|
17
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
18
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
19
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
20
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
21
|
+
# @option params [String] :doc_id
|
|
22
|
+
# @option params [String] :layer_name
|
|
23
|
+
# @option params [String, nil] :document_password
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# client.doc.fonts.list(
|
|
27
|
+
# doc_id: "docId",
|
|
28
|
+
# layer_name: "layerName"
|
|
29
|
+
# )
|
|
30
|
+
#
|
|
31
|
+
# @return [CloudPDF::Types::FontList]
|
|
32
|
+
def list(request_options: {}, **params)
|
|
33
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
34
|
+
headers = {}
|
|
35
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
36
|
+
|
|
37
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
38
|
+
base_url: request_options[:base_url],
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/fonts",
|
|
41
|
+
headers: headers,
|
|
42
|
+
request_options: request_options
|
|
43
|
+
)
|
|
44
|
+
begin
|
|
45
|
+
response = @client.send(request)
|
|
46
|
+
rescue Net::HTTPRequestTimeout
|
|
47
|
+
raise CloudPDF::Errors::TimeoutError
|
|
48
|
+
end
|
|
49
|
+
code = response.code.to_i
|
|
50
|
+
if code.between?(200, 299)
|
|
51
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsList200Response.load(response.body))
|
|
52
|
+
else
|
|
53
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
54
|
+
raise error_class.new(response.body, code: code)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# @param request_options [Hash]
|
|
59
|
+
# @param params [CloudPDF::Types::DocFontsResolveRequest]
|
|
60
|
+
# @option request_options [String] :base_url
|
|
61
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
62
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
63
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
64
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
65
|
+
# @option params [String] :doc_id
|
|
66
|
+
# @option params [String] :layer_name
|
|
67
|
+
# @option params [String, nil] :document_password
|
|
68
|
+
#
|
|
69
|
+
# @example
|
|
70
|
+
# client.doc.fonts.resolve(
|
|
71
|
+
# doc_id: "docId",
|
|
72
|
+
# layer_name: "layerName",
|
|
73
|
+
# runs: [{
|
|
74
|
+
# text: "text"
|
|
75
|
+
# }]
|
|
76
|
+
# )
|
|
77
|
+
#
|
|
78
|
+
# @return [CloudPDF::Types::FontResolution]
|
|
79
|
+
def resolve(request_options: {}, **params)
|
|
80
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
81
|
+
path_param_names = %i[doc_id layer_name]
|
|
82
|
+
body_params = params.except(*path_param_names)
|
|
83
|
+
|
|
84
|
+
headers = {}
|
|
85
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
86
|
+
|
|
87
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
88
|
+
base_url: request_options[:base_url],
|
|
89
|
+
method: "POST",
|
|
90
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/fonts/resolve",
|
|
91
|
+
headers: headers,
|
|
92
|
+
body: CloudPDF::Types::FontResolveRequest.new(body_params).to_h,
|
|
93
|
+
request_options: request_options
|
|
94
|
+
)
|
|
95
|
+
begin
|
|
96
|
+
response = @client.send(request)
|
|
97
|
+
rescue Net::HTTPRequestTimeout
|
|
98
|
+
raise CloudPDF::Errors::TimeoutError
|
|
99
|
+
end
|
|
100
|
+
code = response.code.to_i
|
|
101
|
+
if code.between?(200, 299)
|
|
102
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsResolve200Response.load(response.body))
|
|
103
|
+
else
|
|
104
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
105
|
+
raise error_class.new(response.body, code: code)
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @return [CloudPDF::Programs::Client]
|
|
110
|
+
def programs
|
|
111
|
+
@programs ||= CloudPDF::Doc::Fonts::Programs::Client.new(client: @client)
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Programs
|
|
7
|
+
class Client
|
|
8
|
+
# @param client [CloudPDF::Internal::Http::RawClient]
|
|
9
|
+
#
|
|
10
|
+
# @return [void]
|
|
11
|
+
def initialize(client:)
|
|
12
|
+
@client = client
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# A document token needs any one of the listed capabilities: one that may write text in the document. A file
|
|
16
|
+
# the list says can't be downloaded (`canDownload: false`) is not found.
|
|
17
|
+
#
|
|
18
|
+
# @param request_options [Hash]
|
|
19
|
+
# @param params [Hash]
|
|
20
|
+
# @option request_options [String] :base_url
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
23
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
24
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
25
|
+
# @option params [String] :doc_id
|
|
26
|
+
# @option params [String] :layer_name
|
|
27
|
+
# @option params [String] :display_hash
|
|
28
|
+
# @option params [String, nil] :document_password
|
|
29
|
+
#
|
|
30
|
+
# @example
|
|
31
|
+
# client.doc.fonts.programs.download(
|
|
32
|
+
# doc_id: "docId",
|
|
33
|
+
# layer_name: "layerName",
|
|
34
|
+
# display_hash: "displayHash"
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
37
|
+
# @return [untyped]
|
|
38
|
+
def download(request_options: {}, **params)
|
|
39
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
40
|
+
headers = {}
|
|
41
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
42
|
+
|
|
43
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
44
|
+
base_url: request_options[:base_url],
|
|
45
|
+
method: "GET",
|
|
46
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/font-program-files/#{URI.encode_uri_component(params[:display_hash].to_s)}",
|
|
47
|
+
headers: headers,
|
|
48
|
+
request_options: request_options
|
|
49
|
+
)
|
|
50
|
+
begin
|
|
51
|
+
response = @client.send(request)
|
|
52
|
+
rescue Net::HTTPRequestTimeout
|
|
53
|
+
raise CloudPDF::Errors::TimeoutError
|
|
54
|
+
end
|
|
55
|
+
code = response.code.to_i
|
|
56
|
+
return if code.between?(200, 299)
|
|
57
|
+
|
|
58
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
59
|
+
raise error_class.new(response.body, code: code)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# @param request_options [Hash]
|
|
63
|
+
# @param params [Hash]
|
|
64
|
+
# @option request_options [String] :base_url
|
|
65
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
66
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
67
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
68
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
69
|
+
# @option params [String] :doc_id
|
|
70
|
+
# @option params [String] :layer_name
|
|
71
|
+
# @option params [String] :display_hash
|
|
72
|
+
# @option params [String, nil] :document_password
|
|
73
|
+
#
|
|
74
|
+
# @example
|
|
75
|
+
# client.doc.fonts.programs.get(
|
|
76
|
+
# doc_id: "docId",
|
|
77
|
+
# layer_name: "layerName",
|
|
78
|
+
# display_hash: "displayHash"
|
|
79
|
+
# )
|
|
80
|
+
#
|
|
81
|
+
# @return [CloudPDF::Types::FontProgramInfo]
|
|
82
|
+
def get(request_options: {}, **params)
|
|
83
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
84
|
+
headers = {}
|
|
85
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
86
|
+
|
|
87
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
88
|
+
base_url: request_options[:base_url],
|
|
89
|
+
method: "GET",
|
|
90
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/font-programs/#{URI.encode_uri_component(params[:display_hash].to_s)}",
|
|
91
|
+
headers: headers,
|
|
92
|
+
request_options: request_options
|
|
93
|
+
)
|
|
94
|
+
begin
|
|
95
|
+
response = @client.send(request)
|
|
96
|
+
rescue Net::HTTPRequestTimeout
|
|
97
|
+
raise CloudPDF::Errors::TimeoutError
|
|
98
|
+
end
|
|
99
|
+
code = response.code.to_i
|
|
100
|
+
if code.between?(200, 299)
|
|
101
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsProgramsGet200Response.load(response.body))
|
|
102
|
+
else
|
|
103
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
104
|
+
raise error_class.new(response.body, code: code)
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Programs
|
|
7
|
+
module Types
|
|
8
|
+
class DownloadProgramsRequest < Internal::Types::Model
|
|
9
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
10
|
+
|
|
11
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
12
|
+
|
|
13
|
+
field :display_hash, -> { String }, optional: false, nullable: false, api_name: "displayHash"
|
|
14
|
+
|
|
15
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Programs
|
|
7
|
+
module Types
|
|
8
|
+
class GetProgramsRequest < Internal::Types::Model
|
|
9
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
10
|
+
|
|
11
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
12
|
+
|
|
13
|
+
field :display_hash, -> { String }, optional: false, nullable: false, api_name: "displayHash"
|
|
14
|
+
|
|
15
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Types
|
|
7
|
+
class ListFontsRequest < Internal::Types::Model
|
|
8
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
9
|
+
|
|
10
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
11
|
+
|
|
12
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Types
|
|
7
|
+
class ResolveFontsRequest < Internal::Types::Model
|
|
8
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
9
|
+
|
|
10
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
11
|
+
|
|
12
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
13
|
+
|
|
14
|
+
field :body, -> { CloudPDF::Types::FontResolveRequest }, optional: false, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -185,6 +185,8 @@ module CloudPDF
|
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
187
|
|
|
188
|
+
# An upload token commits only the documents it started; any other document answers 404.
|
|
189
|
+
#
|
|
188
190
|
# @param request_options [Hash]
|
|
189
191
|
# @param params [CloudPDF::Documents::Types::DocumentsCommitRequest]
|
|
190
192
|
# @option request_options [String] :base_url
|
|
@@ -305,7 +307,8 @@ module CloudPDF
|
|
|
305
307
|
end
|
|
306
308
|
|
|
307
309
|
# This bounded origin-mediated fallback must only be used after documents.init returns upload.kind=proxy. Auto
|
|
308
|
-
# mode prefers a presigned object-store PUT whenever available.
|
|
310
|
+
# mode prefers a presigned object-store PUT whenever available. An upload token sends files only to the documents
|
|
311
|
+
# it started.
|
|
309
312
|
#
|
|
310
313
|
# @param request_options [Hash]
|
|
311
314
|
# @param params [void]
|
|
@@ -404,6 +407,11 @@ module CloudPDF
|
|
|
404
407
|
end
|
|
405
408
|
end
|
|
406
409
|
|
|
410
|
+
# With an upload token, the document goes into the token's folder with the token's metadata, whatever the request
|
|
411
|
+
# says; contentLength must be within the token's maxBytes, and the token makes at most maxFiles documents (403
|
|
412
|
+
# after). docId, idempotencyKey and dedupMode reuse-existing are refused (400): each could reach a document the
|
|
413
|
+
# token didn't make.
|
|
414
|
+
#
|
|
407
415
|
# @param request_options [Hash]
|
|
408
416
|
# @param params [CloudPDF::Documents::Types::DocumentsInitRequest]
|
|
409
417
|
# @option request_options [String] :base_url
|
|
@@ -22,7 +22,7 @@ module CloudPDF
|
|
|
22
22
|
# @option params [String] :id
|
|
23
23
|
# @option params [Integer, nil] :limit
|
|
24
24
|
# @option params [String, nil] :cursor
|
|
25
|
-
# @option params [String, nil] :
|
|
25
|
+
# @option params [String, nil] :grant_id
|
|
26
26
|
#
|
|
27
27
|
# @example
|
|
28
28
|
# client.documents.layers.list(
|
|
@@ -36,7 +36,7 @@ module CloudPDF
|
|
|
36
36
|
query_params = {}
|
|
37
37
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
38
38
|
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
39
|
-
query_params["
|
|
39
|
+
query_params["grantId"] = params[:grant_id] if params.key?(:grant_id)
|
|
40
40
|
|
|
41
41
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
42
42
|
base_url: request_options[:base_url],
|
|
@@ -13,7 +13,7 @@ module CloudPDF
|
|
|
13
13
|
|
|
14
14
|
field :cursor, -> { String }, optional: true, nullable: false
|
|
15
15
|
|
|
16
|
-
field :
|
|
16
|
+
field :grant_id, -> { String }, optional: true, nullable: false, api_name: "grantId"
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -142,7 +142,7 @@ module CloudPDF
|
|
|
142
142
|
# Without recursive, a folder with anything inside is refused: 409 Conflict with `details.reason` `not-empty` and
|
|
143
143
|
# what it holds, counted over every level below, in `details.folders` and `details.documents`. With
|
|
144
144
|
# recursive=true, the folder and every folder under it go at once, and every document in them stops opening,
|
|
145
|
-
# leaves every list and stops answering its
|
|
145
|
+
# leaves every list and stops answering its grants at once; their stored files and grants are removed in the
|
|
146
146
|
# background. Uploads into those folders that have not committed cannot commit.
|
|
147
147
|
#
|
|
148
148
|
# @param request_options [Hash]
|