restpki-ng-python-client 0.9.0.1__tar.gz → 0.9.2rc1__tar.gz
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.
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/PKG-INFO +10 -3
- restpki_ng_python_client-0.9.2rc1/README.md +93 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/restpki_ng_client.py +9 -3
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/restpki_ng_python_client.egg-info/PKG-INFO +10 -3
- restpki_ng_python_client-0.9.2rc1/restpki_ng_python_client.egg-info/SOURCES.txt +179 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/restpki_ng_python_client.egg-info/requires.txt +1 -1
- restpki_ng_python_client-0.9.2rc1/restpki_ng_python_client.egg-info/top_level.txt +1 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/setup.cfg +0 -3
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/setup.py +3 -3
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentication_api.py +1 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signature_api.py +1 -6
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_sessions_api.py +96 -3
- restpki_ng_python_client-0.9.0.1/README.md +0 -441
- restpki_ng_python_client-0.9.0.1/pyproject.toml +0 -30
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/__init__.py +0 -200
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/__init__.py +0 -17
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/authentication_api.py +0 -2041
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/cades_signature_api.py +0 -2376
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/document_keys_api.py +0 -1199
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/documents_api.py +0 -868
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/pades_signature_api.py +0 -1797
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/pades_visual_positioning_presets_api.py +0 -869
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/pdf_api.py +0 -334
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/signature_api.py +0 -624
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/signature_inspection_api.py +0 -337
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/signature_sessions_api.py +0 -891
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/timestamp_api.py +0 -654
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api/xml_signature_api.py +0 -1781
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api_client.py +0 -741
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/api_response.py +0 -21
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/configuration.py +0 -426
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/exceptions.py +0 -166
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/__init__.py +0 -165
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/allocate_document_key_batch_request.py +0 -96
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/allocate_document_key_request.py +0 -93
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/attribute_certificate_model.py +0 -141
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/audit_package_options.py +0 -90
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentication_failures.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentication_get_response.py +0 -92
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentication_post_request.py +0 -116
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentication_post_response.py +0 -98
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentications_post_request.py +0 -95
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentications_post_response.py +0 -114
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentications_post_signed_bytes_request.py +0 -99
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/authentications_post_signed_bytes_response.py +0 -98
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/auto_positioning_horizontal_directions.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/auto_positioning_vertical_directions.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/blockchains.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signature_model.py +0 -123
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signature_post_request_v1.py +0 -137
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signature_post_request_v2.py +0 -152
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signature_post_request_v3.py +0 -149
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signature_post_response.py +0 -120
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signature_post_signed_bytes_request.py +0 -92
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signature_post_signed_bytes_response.py +0 -106
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_signer_model.py +0 -159
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cades_timestamp_model.py +0 -140
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/certificate_model.py +0 -197
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/certificate_reference_model.py +0 -99
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/certificate_requirement.py +0 -95
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/certificate_requirement_types.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/certificate_summary.py +0 -142
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/certified_attribute_model.py +0 -94
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/certified_attribute_types.py +0 -44
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cms_content_types.py +0 -50
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/cms_signature_options.py +0 -109
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/color_model.py +0 -98
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/commitment_type_model.py +0 -99
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/complete_authentication_request.py +0 -93
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/complete_authentication_response.py +0 -103
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/complete_signature_request.py +0 -95
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/complete_signature_request_v2.py +0 -91
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/create_signature_session_request.py +0 -161
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/create_signature_session_response.py +0 -95
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/digest_algorithm_and_value_model.py +0 -103
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/digest_algorithms.py +0 -49
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_file_model.py +0 -137
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_key_model.py +0 -100
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_key_query_response.py +0 -110
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_key_summary.py +0 -100
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_model.py +0 -150
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_query_response.py +0 -93
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_status.py +0 -47
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/document_summary.py +0 -128
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/error_model_v2.py +0 -120
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/file_model.py +0 -114
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/file_reference_model.py +0 -137
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/full_xml_signature_post_request.py +0 -136
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/general_name_choices.py +0 -52
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/general_name_model.py +0 -108
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/holder_types.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/inspect_signature_failures.py +0 -44
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/inspect_signature_request.py +0 -127
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/inspect_signature_response.py +0 -131
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/multipart_upload_begin_response.py +0 -95
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/multipart_upload_end_request.py +0 -95
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/name_model.py +0 -205
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/namespace_model.py +0 -99
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/open_cades_signature_request_model.py +0 -147
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/open_signature_request_model.py +0 -145
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/open_xml_signature_request_model.py +0 -151
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/other_name_model.py +0 -107
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_certification_level.py +0 -47
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_horizontal_align.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_measurement_units.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_page_optimization_model.py +0 -98
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_signature_model.py +0 -113
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_signature_post_request_v1.py +0 -167
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_signature_post_request_v2.py +0 -171
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_signature_post_response.py +0 -120
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_signature_post_signed_bytes_request.py +0 -92
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_signature_post_signed_bytes_response.py +0 -106
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_signer_model.py +0 -168
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_size_model.py +0 -89
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_text_horizontal_align.py +0 -45
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_vertical_align.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_visual_auto_positioning_model.py +0 -106
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_visual_image_model.py +0 -105
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_visual_positioning_model.py +0 -109
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_visual_rectangle_model.py +0 -127
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_visual_representation_model.py +0 -103
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pades_visual_text_model.py +0 -111
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/page_orientations.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/paper_sizes.py +0 -56
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pdf_add_marks_request.py +0 -117
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pdf_add_marks_response.py +0 -91
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pdf_mark_element_type.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pdf_mark_image_model.py +0 -98
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pdf_mark_page_options.py +0 -47
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pdf_signature_options.py +0 -101
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pdf_text_style.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pki_brazil_certificate_model.py +0 -159
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pki_brazil_certificate_types.py +0 -54
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pki_italy_certificate_model.py +0 -103
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/pki_italy_certificate_types.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/prepare_authentication_request.py +0 -100
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/prepare_authentication_response.py +0 -99
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/prepare_signature_failures.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/prepare_signature_request.py +0 -133
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/prepare_signature_response.py +0 -116
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/resource_content_or_reference.py +0 -107
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/role_attribute_model.py +0 -114
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/session_completion_status.py +0 -89
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_algorithm_and_value_model.py +0 -106
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_algorithm_identifier.py +0 -88
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_algorithms.py +0 -48
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_b_stamp_model.py +0 -135
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_policy_identifier_model.py +0 -105
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_result_model.py +0 -105
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_session_document_data.py +0 -128
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_session_document_summary.py +0 -138
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_session_model.py +0 -126
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_session_status.py +0 -49
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signature_types.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signer_b_stamp_model.py +0 -132
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signer_model.py +0 -187
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/signer_summary.py +0 -94
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/timestamp_issue_response.py +0 -99
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/validation_item_model.py +0 -111
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/validation_item_types.py +0 -91
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/validation_results_model.py +0 -131
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/webhook_event_model.py +0 -94
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/webhook_event_types.py +0 -44
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_attribute_model.py +0 -107
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_element_location_model.py +0 -111
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_element_model.py +0 -115
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_element_signature_post_request.py +0 -145
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_id_attribute_model.py +0 -96
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_id_resolution_table_model.py +0 -123
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_insertion_options.py +0 -47
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_node_name_model.py +0 -96
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signature_model.py +0 -154
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signature_options.py +0 -102
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signature_post_response.py +0 -120
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signature_post_signed_bytes_request.py +0 -92
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signature_post_signed_bytes_response.py +0 -106
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signature_response_model.py +0 -113
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signature_types.py +0 -47
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/models/xml_signed_entity_types.py +0 -46
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/py.typed +0 -0
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client/rest.py +0 -231
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client.egg-info/SOURCES.txt +0 -348
- restpki_ng_python_client-0.9.0.1/restpki_ng_python_client.egg-info/top_level.txt +0 -1
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/api/upload_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/file_utils.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/models/pdf_container_definition.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/models/pdf_helper.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/models/pdf_mark_element_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/models/pdf_mark_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/models/pdf_text_section_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/standard_signature_policies.py +0 -0
- {restpki_ng_python_client-0.9.0.1/restpki_ng_python_client → restpki_ng_python_client-0.9.2rc1/manually_generated_files}/utils.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/restpki_ng_python_client.egg-info/dependency_links.txt +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_allocate_document_key_batch_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_allocate_document_key_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_attribute_certificate_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_audit_package_options.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentication_failures.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentication_get_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentication_post_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentication_post_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentications_post_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentications_post_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentications_post_signed_bytes_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_authentications_post_signed_bytes_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_auto_positioning_horizontal_directions.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_auto_positioning_vertical_directions.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_blockchains.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_post_request_v1.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_post_request_v2.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_post_request_v3.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_post_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_post_signed_bytes_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signature_post_signed_bytes_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_signer_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cades_timestamp_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_certificate_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_certificate_reference_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_certificate_requirement.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_certificate_requirement_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_certificate_summary.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_certified_attribute_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_certified_attribute_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cms_content_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_cms_signature_options.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_color_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_commitment_type_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_complete_authentication_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_complete_authentication_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_complete_signature_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_complete_signature_request_v2.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_create_signature_session_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_create_signature_session_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_digest_algorithm_and_value_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_digest_algorithms.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_file_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_key_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_key_query_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_key_summary.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_keys_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_query_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_status.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_document_summary.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_documents_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_error_model_v2.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_file_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_file_reference_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_full_xml_signature_post_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_general_name_choices.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_general_name_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_holder_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_inspect_signature_failures.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_inspect_signature_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_inspect_signature_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_multipart_upload_begin_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_multipart_upload_end_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_name_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_namespace_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_open_cades_signature_request_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_open_signature_request_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_open_xml_signature_request_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_other_name_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_certification_level.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_horizontal_align.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_measurement_units.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_page_optimization_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signature_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signature_post_request_v1.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signature_post_request_v2.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signature_post_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signature_post_signed_bytes_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signature_post_signed_bytes_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_signer_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_size_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_text_horizontal_align.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_vertical_align.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_visual_auto_positioning_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_visual_image_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_visual_positioning_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_visual_positioning_presets_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_visual_rectangle_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_visual_representation_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pades_visual_text_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_page_orientations.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_paper_sizes.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_add_marks_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_add_marks_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_mark_element_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_mark_element_type.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_mark_image_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_mark_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_mark_page_options.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_signature_options.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_text_section_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pdf_text_style.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pki_brazil_certificate_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pki_brazil_certificate_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pki_italy_certificate_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_pki_italy_certificate_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_prepare_authentication_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_prepare_authentication_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_prepare_signature_failures.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_prepare_signature_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_prepare_signature_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_resource_content_or_reference.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_role_attribute_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_session_completion_status.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_algorithm_and_value_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_algorithm_identifier.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_algorithms.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_b_stamp_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_inspection_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_policy_identifier_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_result_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_session_document_data.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_session_document_summary.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_session_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_session_status.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signature_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signer_b_stamp_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signer_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_signer_summary.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_timestamp_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_timestamp_issue_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_upload_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_validation_item_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_validation_item_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_validation_results_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_webhook_event_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_webhook_event_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_attribute_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_element_location_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_element_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_element_signature_post_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_id_attribute_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_id_resolution_table_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_insertion_options.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_node_name_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_api.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_options.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_post_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_post_signed_bytes_request.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_post_signed_bytes_response.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_response_model.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signature_types.py +0 -0
- {restpki_ng_python_client-0.9.0.1 → restpki_ng_python_client-0.9.2rc1}/test/test_xml_signed_entity_types.py +0 -0
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: restpki_ng_python_client
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2rc1
|
|
4
4
|
Summary: Rest PKI Core API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: OpenAPI Generator community
|
|
7
7
|
Author-email: team@openapitools.org
|
|
8
8
|
Keywords: OpenAPI,OpenAPI-Generator,Rest PKI Core API
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: urllib3<2.1.0,>=1.
|
|
10
|
+
Requires-Dist: urllib3<2.1.0,>=1.24.3
|
|
11
11
|
Requires-Dist: python-dateutil
|
|
12
12
|
Requires-Dist: pydantic>=2
|
|
13
13
|
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: keywords
|
|
19
|
+
Dynamic: requires-dist
|
|
20
|
+
Dynamic: summary
|
|
14
21
|
|
|
15
22
|
<b><i>Para Português, <a href=\"https://docs.lacunasoftware.com/pt-br/articles/rest-pki/core/integration/get-started\">clique aqui</a></i></b> <p> <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/\">Rest PKI Core</a> is an upcoming version of <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/\">Rest PKI</a> that will have extended compatibility with environments and databases. </p> <p> In addition to Windows Server (which is already supported by Rest PKI), Rest PKI Core will also run on <b>Linux</b> (Debian- and RedHat-based distributions) and on <b>Docker</b>. As for database servers, in addition to SQL Server, <b>PostgreSQL</b> will also be supported. </p> <p> <b>Before getting started, see the integration overview on the <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/integration/\">Integration Guide</a></b> </p> <p> For questions regarding the usage of this API, please reach us at <a href=\"https://lacuna.help/\">lacuna.help</a> </p> <h2>Parameters</h2> <p> You will need the following parameters: </p> <ul> <li><b>Endpoint</b>: address of the Rest PKI Core instance that will be used</li> <li><b>API Key</b>: authorization key for using the API</li> </ul> <p> The <span class=\"model\">endpoint</span> must be prefixed to all relative URLs mentioned here. As for the <span class=\"model\">API Key</span>, see how to use it below. </p> <h2>Authentication</h2> <p> The API key must be sent on the <span class=\"model\">X-Api-Key</span> header on each request: </p> <!-- unfortunately, class \"example microlight\" doesn't seem to work here --> <pre style=\"font-size: 12px; padding: 10px; border-radius: 4px; background: #41444e; font-weight: 600; color: #fff;\"> X-Api-Key: yourapp|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </pre> <h2>HTTP Codes</h2> <p> The APIs will return the following HTTP codes: </p> <table> <thead> <tr> <th>Code</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><strong class=\"model-title\">200 (OK)</strong></td> <td>Request processed successfully. The response is different for each API, please refer to the operation's documentation</td> </tr> <tr> <td><strong class=\"model-title\">400 (Bad Request)</strong></td> <td>Syntax error. For instance, when a required field was not provided</td> </tr> <tr> <td><strong class=\"model-title\">401 (Unauthorized)</strong></td> <td>API key not provided or invalid</td> </tr> <tr> <td><strong class=\"model-title\">403 (Forbidden)</strong></td> <td>API key is valid, but the application has insufficient permissions to complete the requested operation</td> </tr> <tr> <td><strong class=\"model-title\">422 (Unprocessable Entity)</strong></td> <td>API error. The response body is an <a href=\"#model-ErrorModelV2\" class=\"model\">ErrorModelV2</a> </tr> <tr> <td><strong class=\"model-title\">500 (Internal Server Error)</strong></td> <td>An unexpected error occurred. The <span class=\"model\">exceptionCode</span> contained on the response body may be of help for our support team during diagnostic.</td> </tr> </tbody> </table> <h3>Error Codes</h3> <p> Some of the error codes returned in the <span class=\"model\">code</span> field of an <a href=\"#model-ErrorModelV2\" class=\"model\">ErrorModelV2</a> (body of responses with HTTP status code 422) are provided below*: </p> <table> <thead> <tr> <th>Code</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td class=\"model\">DocumentNotFound</td> <td>A referenced document was not found (check the document ID)</td> </tr> <tr> <td class=\"model\">SecurityContextNotFound</td> <td>A referenced security context was not found (check the security context ID)</td> </tr> <tr> <td class=\"model\">SignatureSessionNotFound</td> <td>A referenced signature session was not found (check the signature session ID)</td> </tr> <tr> <td class=\"model\">BadSignatureSessionOperation</td> <td>The operation is invalid for the current signature session or document status. For instance, trying to await the session's completion if it is still <span class=\"model\">Pending</span> results in this error</td> </tr> <tr> <td class=\"model\">BackgroundProcessing</td> <td>The operation cannot be completed at this time because the resource is being processed in background</td> </tr> <tr> <td class=\"model\">SignatureSessionTokenRequired</td> <td>The signature session token was not passed on the <span class=\"model\">X-Signature-Session-Token</span> request header</td> </tr> <tr> <td class=\"model\">BadSignatureSessionToken</td> <td>An invalid signature session token was passed on the <span class=\"model\">X-Signature-Session-Token</span> request header. Check your application for possible corruption of the session token, which may contain characters <span class=\"code\">-</span> (hyphen) and <span class=\"code\">_</span> (underscore)</td> </tr> <tr> <td class=\"model\">ExpiredSignatureSessionToken</td> <td>An expired signature session token was passed on the <span class=\"model\">X-Signature-Session-Token</span> request header. Signature session tokens are normally valid for 4 hours.</td> </tr> </tbody> </table> <p style=\"font-size: 0.9em\"> *The codes shown above are the most common error codes. Nonetheless, this list is not comprehensive. New codes may be added anytime without previous warning. </p> <h2>Culture / Internationalization (i18n)</h2> <p>The <span class=\"model\">Accept-Language</span> request header is observed by this API. The following cultures are supported:</p> <ul> <li><span class=\"code\">en-US</span> (or simply <span class=\"code\">en</span>)</li> <li><span class=\"code\">pt-BR</span> (or simply <span class=\"code\">pt</span>)</li> </ul> <p><i>Notice: error messages are not affected by this header and therefore should not be displayed to users, being better suited for logging.</i></p>
|
|
16
23
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Python RestPkiCore Lib Auto Generation
|
|
2
|
+
This is a comprehensive tutorial to assist new developers when generating the lib again. This lib is generated with the help of [OpenAPI's Python Generator](https://openapi-generator.tech/docs/generators/python).
|
|
3
|
+
|
|
4
|
+
## Project Structure
|
|
5
|
+
As seen in the first command line in `cmd.ps1`, the output folder for all generated files is the `dist` folder. Therefore, all files in this folder will be automatically overwritten during generation. So it is important to have **static proprietary modules**. Static proprietary modules are modules which are not in the library generation but are necessary for it to work completely, such as the `RestPkiClient` class inside `restpki_ng_client.py`.
|
|
6
|
+
|
|
7
|
+
After generation, the project structure is as follows:
|
|
8
|
+
```
|
|
9
|
+
└── 📁restpkicore-python
|
|
10
|
+
└── 00.pdf
|
|
11
|
+
└── cmd.ps1
|
|
12
|
+
└── openapitools.json
|
|
13
|
+
└── python-openapi-config.json
|
|
14
|
+
└── README.md
|
|
15
|
+
└── restpki_ng_client.py
|
|
16
|
+
└── 📁test
|
|
17
|
+
└── ...
|
|
18
|
+
└── __init__.py
|
|
19
|
+
└── 📁dist
|
|
20
|
+
└── 📁.github
|
|
21
|
+
└── 📁workflows
|
|
22
|
+
└── python.yml
|
|
23
|
+
└── 📁.openapi-generator
|
|
24
|
+
└── FILES
|
|
25
|
+
└── VERSION
|
|
26
|
+
└── 📁docs
|
|
27
|
+
└── ...*.md
|
|
28
|
+
└── 📁restpki_ng_python_client
|
|
29
|
+
└── 📁api
|
|
30
|
+
└── ...*.py
|
|
31
|
+
└── __init__.py
|
|
32
|
+
└── 📁models
|
|
33
|
+
└── ...*.py
|
|
34
|
+
└── __init__.py
|
|
35
|
+
└── api_client.py
|
|
36
|
+
└── api_response.py
|
|
37
|
+
└── configuration.py
|
|
38
|
+
└── exceptions.py
|
|
39
|
+
└── py.typed
|
|
40
|
+
└── rest.py
|
|
41
|
+
└── restpki_ng_client.py
|
|
42
|
+
└── __init__.py
|
|
43
|
+
└── 📁test
|
|
44
|
+
└── ...*.py
|
|
45
|
+
└── __init__.py
|
|
46
|
+
└── setup.cfg
|
|
47
|
+
└── setup.py
|
|
48
|
+
└── test-requirements.txt
|
|
49
|
+
└── tox.ini
|
|
50
|
+
└── git_push.sh
|
|
51
|
+
└── pyproject.toml
|
|
52
|
+
└── README.md
|
|
53
|
+
└── requirements.txt
|
|
54
|
+
└── .openapi-generator-ignore
|
|
55
|
+
└── .travis.yml
|
|
56
|
+
└── .gitignore
|
|
57
|
+
└── .gitlab-ci.yml
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Local files
|
|
61
|
+
Local files are outside the dist folder, some of them are:
|
|
62
|
+
* `00.pdf`: Sample PDF to perform _ad-hoc_ signatures
|
|
63
|
+
* `cmd.ps1`: PowerShell script to run the `cmd.ps1`, which is the file which contains automated steps such as:
|
|
64
|
+
1. Generating the lib using OpenAPI CLI with the configurations defined `python-openapi-config.json` (you may define new configurations as you need them, **but be aware of the new effects it may cause in this generation**)
|
|
65
|
+
2. Copying static proprietary modules. You are also free to add new files and copy them into the restpki_ng_python_client new steps to the `cmd.ps1` script whenever necessary. Just remember to document all new files and define their use in the project.
|
|
66
|
+
* `restpki_ng_client.py`: This is an example of static proprietary module file. This class contains a facade class which directly calls the APIs in the `dist/api` folder and gives them a more user-friendly name.
|
|
67
|
+
|
|
68
|
+
### Generated folder (`dist`)
|
|
69
|
+
The `dist` folder contains the generated files and the static proprietary modules from `cmd.ps1`. It is recommended to only add necessary files for the library and its functions. The `dist` folder contains
|
|
70
|
+
* An API folder, which is comprised of all endpoints as individual modules.
|
|
71
|
+
* Models folder, which contains all models generated from the specification.
|
|
72
|
+
* `gitlab-ci.yml`: Gitlab's CI file to test in different versions of Python.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## Steps
|
|
76
|
+
### Generating and testing the library
|
|
77
|
+
1. Run `cmd.ps1`
|
|
78
|
+
2. Test your application, for that we have a copy of the `test` folder outside of the `dist` folder which must overwrite the `dist/test` folder with populated tests. The tests are also kept outside the dist folder so they are not overwritten during the generation process.
|
|
79
|
+
* Copy and overwrite the `test` folder into `dist/test`.
|
|
80
|
+
* Test all modules using `pytest`, you also may test one at a time by running `pytest [filename.py]`
|
|
81
|
+
3. Run `python setup.py install` in the `dist` folder. This will generate a local library in your python modules as if it is already installed on your machine. However, you still need to publish it
|
|
82
|
+
|
|
83
|
+
### Publishing
|
|
84
|
+
|
|
85
|
+
TODO
|
|
86
|
+
|
|
87
|
+
### Adding new files to the project
|
|
88
|
+
Adding new files is not a complex task, but it requires attention from the devs as not to break previous functionalities, so **it is vital to test them before publishing**. For this project, only integration tests were made available with only a test case for each endpoint. The tests do not cover
|
|
89
|
+
* Unit tests;
|
|
90
|
+
* Value range;
|
|
91
|
+
* Required values (those are inferred from the Swagger specification);
|
|
92
|
+
|
|
93
|
+
In case you need to test a new functionality, add a new test case in the class and run it again. In case of a breaking change (i.e. a change which needs to be applied to previous test cases for them to work again), you might want to refactor previous tests and others affected from this change. Once you get them all working again, release a new version
|
|
@@ -10,7 +10,7 @@ from io import BufferedReader, BytesIO
|
|
|
10
10
|
import io
|
|
11
11
|
import os
|
|
12
12
|
import ssl
|
|
13
|
-
from typing import Dict, List
|
|
13
|
+
from typing import Dict, List, Union
|
|
14
14
|
from restpki_ng_python_client.rest import RESTResponse
|
|
15
15
|
from restpki_ng_python_client.configuration import Configuration
|
|
16
16
|
from restpki_ng_python_client.api_client import ApiClient
|
|
@@ -284,11 +284,17 @@ class RestPkiClient:
|
|
|
284
284
|
# Upload
|
|
285
285
|
|
|
286
286
|
# public methods
|
|
287
|
-
def upload_file_multipart(self, file_desc: BufferedReader
|
|
287
|
+
def upload_file_multipart(self, file_desc: Union[BufferedReader,BytesIO,str]):
|
|
288
|
+
if not isinstance(file_desc, BufferedReader) or not isinstance(file_desc, BytesIO) or not isinstance(file_desc, str):
|
|
289
|
+
raise TypeError("File is not a valid type, it must be a instance of BufferedReader, BytesIO or string")
|
|
290
|
+
|
|
288
291
|
blob_token = self._upload_multipart(file_desc)
|
|
289
292
|
return blob_token
|
|
290
293
|
|
|
291
|
-
def upload_file_plain(self, file_path: str, file_desc: BufferedReader
|
|
294
|
+
def upload_file_plain(self, file_path: str, file_desc: Union[BufferedReader,BytesIO,str]):
|
|
295
|
+
if not isinstance(file_desc, BufferedReader) or not isinstance(file_desc, BytesIO) or not isinstance(file_desc, str):
|
|
296
|
+
raise TypeError("File is not a valid type, it must be a instance of BufferedReader, BytesIO or string")
|
|
297
|
+
|
|
292
298
|
blob_token = self._perform_plain_uploads(file_path, file_desc)
|
|
293
299
|
return blob_token
|
|
294
300
|
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: restpki_ng_python_client
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2rc1
|
|
4
4
|
Summary: Rest PKI Core API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: OpenAPI Generator community
|
|
7
7
|
Author-email: team@openapitools.org
|
|
8
8
|
Keywords: OpenAPI,OpenAPI-Generator,Rest PKI Core API
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: urllib3<2.1.0,>=1.
|
|
10
|
+
Requires-Dist: urllib3<2.1.0,>=1.24.3
|
|
11
11
|
Requires-Dist: python-dateutil
|
|
12
12
|
Requires-Dist: pydantic>=2
|
|
13
13
|
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: keywords
|
|
19
|
+
Dynamic: requires-dist
|
|
20
|
+
Dynamic: summary
|
|
14
21
|
|
|
15
22
|
<b><i>Para Português, <a href=\"https://docs.lacunasoftware.com/pt-br/articles/rest-pki/core/integration/get-started\">clique aqui</a></i></b> <p> <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/\">Rest PKI Core</a> is an upcoming version of <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/\">Rest PKI</a> that will have extended compatibility with environments and databases. </p> <p> In addition to Windows Server (which is already supported by Rest PKI), Rest PKI Core will also run on <b>Linux</b> (Debian- and RedHat-based distributions) and on <b>Docker</b>. As for database servers, in addition to SQL Server, <b>PostgreSQL</b> will also be supported. </p> <p> <b>Before getting started, see the integration overview on the <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/integration/\">Integration Guide</a></b> </p> <p> For questions regarding the usage of this API, please reach us at <a href=\"https://lacuna.help/\">lacuna.help</a> </p> <h2>Parameters</h2> <p> You will need the following parameters: </p> <ul> <li><b>Endpoint</b>: address of the Rest PKI Core instance that will be used</li> <li><b>API Key</b>: authorization key for using the API</li> </ul> <p> The <span class=\"model\">endpoint</span> must be prefixed to all relative URLs mentioned here. As for the <span class=\"model\">API Key</span>, see how to use it below. </p> <h2>Authentication</h2> <p> The API key must be sent on the <span class=\"model\">X-Api-Key</span> header on each request: </p> <!-- unfortunately, class \"example microlight\" doesn't seem to work here --> <pre style=\"font-size: 12px; padding: 10px; border-radius: 4px; background: #41444e; font-weight: 600; color: #fff;\"> X-Api-Key: yourapp|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </pre> <h2>HTTP Codes</h2> <p> The APIs will return the following HTTP codes: </p> <table> <thead> <tr> <th>Code</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><strong class=\"model-title\">200 (OK)</strong></td> <td>Request processed successfully. The response is different for each API, please refer to the operation's documentation</td> </tr> <tr> <td><strong class=\"model-title\">400 (Bad Request)</strong></td> <td>Syntax error. For instance, when a required field was not provided</td> </tr> <tr> <td><strong class=\"model-title\">401 (Unauthorized)</strong></td> <td>API key not provided or invalid</td> </tr> <tr> <td><strong class=\"model-title\">403 (Forbidden)</strong></td> <td>API key is valid, but the application has insufficient permissions to complete the requested operation</td> </tr> <tr> <td><strong class=\"model-title\">422 (Unprocessable Entity)</strong></td> <td>API error. The response body is an <a href=\"#model-ErrorModelV2\" class=\"model\">ErrorModelV2</a> </tr> <tr> <td><strong class=\"model-title\">500 (Internal Server Error)</strong></td> <td>An unexpected error occurred. The <span class=\"model\">exceptionCode</span> contained on the response body may be of help for our support team during diagnostic.</td> </tr> </tbody> </table> <h3>Error Codes</h3> <p> Some of the error codes returned in the <span class=\"model\">code</span> field of an <a href=\"#model-ErrorModelV2\" class=\"model\">ErrorModelV2</a> (body of responses with HTTP status code 422) are provided below*: </p> <table> <thead> <tr> <th>Code</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td class=\"model\">DocumentNotFound</td> <td>A referenced document was not found (check the document ID)</td> </tr> <tr> <td class=\"model\">SecurityContextNotFound</td> <td>A referenced security context was not found (check the security context ID)</td> </tr> <tr> <td class=\"model\">SignatureSessionNotFound</td> <td>A referenced signature session was not found (check the signature session ID)</td> </tr> <tr> <td class=\"model\">BadSignatureSessionOperation</td> <td>The operation is invalid for the current signature session or document status. For instance, trying to await the session's completion if it is still <span class=\"model\">Pending</span> results in this error</td> </tr> <tr> <td class=\"model\">BackgroundProcessing</td> <td>The operation cannot be completed at this time because the resource is being processed in background</td> </tr> <tr> <td class=\"model\">SignatureSessionTokenRequired</td> <td>The signature session token was not passed on the <span class=\"model\">X-Signature-Session-Token</span> request header</td> </tr> <tr> <td class=\"model\">BadSignatureSessionToken</td> <td>An invalid signature session token was passed on the <span class=\"model\">X-Signature-Session-Token</span> request header. Check your application for possible corruption of the session token, which may contain characters <span class=\"code\">-</span> (hyphen) and <span class=\"code\">_</span> (underscore)</td> </tr> <tr> <td class=\"model\">ExpiredSignatureSessionToken</td> <td>An expired signature session token was passed on the <span class=\"model\">X-Signature-Session-Token</span> request header. Signature session tokens are normally valid for 4 hours.</td> </tr> </tbody> </table> <p style=\"font-size: 0.9em\"> *The codes shown above are the most common error codes. Nonetheless, this list is not comprehensive. New codes may be added anytime without previous warning. </p> <h2>Culture / Internationalization (i18n)</h2> <p>The <span class=\"model\">Accept-Language</span> request header is observed by this API. The following cultures are supported:</p> <ul> <li><span class=\"code\">en-US</span> (or simply <span class=\"code\">en</span>)</li> <li><span class=\"code\">pt-BR</span> (or simply <span class=\"code\">pt</span>)</li> </ul> <p><i>Notice: error messages are not affected by this header and therefore should not be displayed to users, being better suited for logging.</i></p>
|
|
16
23
|
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.py
|
|
3
|
+
manually_generated_files/file_utils.py
|
|
4
|
+
manually_generated_files/restpki_ng_client.py
|
|
5
|
+
manually_generated_files/standard_signature_policies.py
|
|
6
|
+
manually_generated_files/utils.py
|
|
7
|
+
manually_generated_files/api/upload_api.py
|
|
8
|
+
manually_generated_files/models/pdf_container_definition.py
|
|
9
|
+
manually_generated_files/models/pdf_helper.py
|
|
10
|
+
manually_generated_files/models/pdf_mark_element_model.py
|
|
11
|
+
manually_generated_files/models/pdf_mark_model.py
|
|
12
|
+
manually_generated_files/models/pdf_text_section_model.py
|
|
13
|
+
restpki_ng_python_client.egg-info/PKG-INFO
|
|
14
|
+
restpki_ng_python_client.egg-info/SOURCES.txt
|
|
15
|
+
restpki_ng_python_client.egg-info/dependency_links.txt
|
|
16
|
+
restpki_ng_python_client.egg-info/requires.txt
|
|
17
|
+
restpki_ng_python_client.egg-info/top_level.txt
|
|
18
|
+
test/test_allocate_document_key_batch_request.py
|
|
19
|
+
test/test_allocate_document_key_request.py
|
|
20
|
+
test/test_attribute_certificate_model.py
|
|
21
|
+
test/test_audit_package_options.py
|
|
22
|
+
test/test_authentication_api.py
|
|
23
|
+
test/test_authentication_failures.py
|
|
24
|
+
test/test_authentication_get_response.py
|
|
25
|
+
test/test_authentication_post_request.py
|
|
26
|
+
test/test_authentication_post_response.py
|
|
27
|
+
test/test_authentications_post_request.py
|
|
28
|
+
test/test_authentications_post_response.py
|
|
29
|
+
test/test_authentications_post_signed_bytes_request.py
|
|
30
|
+
test/test_authentications_post_signed_bytes_response.py
|
|
31
|
+
test/test_auto_positioning_horizontal_directions.py
|
|
32
|
+
test/test_auto_positioning_vertical_directions.py
|
|
33
|
+
test/test_blockchains.py
|
|
34
|
+
test/test_cades_signature_api.py
|
|
35
|
+
test/test_cades_signature_model.py
|
|
36
|
+
test/test_cades_signature_post_request_v1.py
|
|
37
|
+
test/test_cades_signature_post_request_v2.py
|
|
38
|
+
test/test_cades_signature_post_request_v3.py
|
|
39
|
+
test/test_cades_signature_post_response.py
|
|
40
|
+
test/test_cades_signature_post_signed_bytes_request.py
|
|
41
|
+
test/test_cades_signature_post_signed_bytes_response.py
|
|
42
|
+
test/test_cades_signer_model.py
|
|
43
|
+
test/test_cades_timestamp_model.py
|
|
44
|
+
test/test_certificate_model.py
|
|
45
|
+
test/test_certificate_reference_model.py
|
|
46
|
+
test/test_certificate_requirement.py
|
|
47
|
+
test/test_certificate_requirement_types.py
|
|
48
|
+
test/test_certificate_summary.py
|
|
49
|
+
test/test_certified_attribute_model.py
|
|
50
|
+
test/test_certified_attribute_types.py
|
|
51
|
+
test/test_cms_content_types.py
|
|
52
|
+
test/test_cms_signature_options.py
|
|
53
|
+
test/test_color_model.py
|
|
54
|
+
test/test_commitment_type_model.py
|
|
55
|
+
test/test_complete_authentication_request.py
|
|
56
|
+
test/test_complete_authentication_response.py
|
|
57
|
+
test/test_complete_signature_request.py
|
|
58
|
+
test/test_complete_signature_request_v2.py
|
|
59
|
+
test/test_create_signature_session_request.py
|
|
60
|
+
test/test_create_signature_session_response.py
|
|
61
|
+
test/test_digest_algorithm_and_value_model.py
|
|
62
|
+
test/test_digest_algorithms.py
|
|
63
|
+
test/test_document_file_model.py
|
|
64
|
+
test/test_document_key_model.py
|
|
65
|
+
test/test_document_key_query_response.py
|
|
66
|
+
test/test_document_key_summary.py
|
|
67
|
+
test/test_document_keys_api.py
|
|
68
|
+
test/test_document_model.py
|
|
69
|
+
test/test_document_query_response.py
|
|
70
|
+
test/test_document_status.py
|
|
71
|
+
test/test_document_summary.py
|
|
72
|
+
test/test_documents_api.py
|
|
73
|
+
test/test_error_model_v2.py
|
|
74
|
+
test/test_file_model.py
|
|
75
|
+
test/test_file_reference_model.py
|
|
76
|
+
test/test_full_xml_signature_post_request.py
|
|
77
|
+
test/test_general_name_choices.py
|
|
78
|
+
test/test_general_name_model.py
|
|
79
|
+
test/test_holder_types.py
|
|
80
|
+
test/test_inspect_signature_failures.py
|
|
81
|
+
test/test_inspect_signature_request.py
|
|
82
|
+
test/test_inspect_signature_response.py
|
|
83
|
+
test/test_multipart_upload_begin_response.py
|
|
84
|
+
test/test_multipart_upload_end_request.py
|
|
85
|
+
test/test_name_model.py
|
|
86
|
+
test/test_namespace_model.py
|
|
87
|
+
test/test_open_cades_signature_request_model.py
|
|
88
|
+
test/test_open_signature_request_model.py
|
|
89
|
+
test/test_open_xml_signature_request_model.py
|
|
90
|
+
test/test_other_name_model.py
|
|
91
|
+
test/test_pades_certification_level.py
|
|
92
|
+
test/test_pades_horizontal_align.py
|
|
93
|
+
test/test_pades_measurement_units.py
|
|
94
|
+
test/test_pades_page_optimization_model.py
|
|
95
|
+
test/test_pades_signature_api.py
|
|
96
|
+
test/test_pades_signature_model.py
|
|
97
|
+
test/test_pades_signature_post_request_v1.py
|
|
98
|
+
test/test_pades_signature_post_request_v2.py
|
|
99
|
+
test/test_pades_signature_post_response.py
|
|
100
|
+
test/test_pades_signature_post_signed_bytes_request.py
|
|
101
|
+
test/test_pades_signature_post_signed_bytes_response.py
|
|
102
|
+
test/test_pades_signer_model.py
|
|
103
|
+
test/test_pades_size_model.py
|
|
104
|
+
test/test_pades_text_horizontal_align.py
|
|
105
|
+
test/test_pades_vertical_align.py
|
|
106
|
+
test/test_pades_visual_auto_positioning_model.py
|
|
107
|
+
test/test_pades_visual_image_model.py
|
|
108
|
+
test/test_pades_visual_positioning_model.py
|
|
109
|
+
test/test_pades_visual_positioning_presets_api.py
|
|
110
|
+
test/test_pades_visual_rectangle_model.py
|
|
111
|
+
test/test_pades_visual_representation_model.py
|
|
112
|
+
test/test_pades_visual_text_model.py
|
|
113
|
+
test/test_page_orientations.py
|
|
114
|
+
test/test_paper_sizes.py
|
|
115
|
+
test/test_pdf_add_marks_request.py
|
|
116
|
+
test/test_pdf_add_marks_response.py
|
|
117
|
+
test/test_pdf_api.py
|
|
118
|
+
test/test_pdf_mark_element_model.py
|
|
119
|
+
test/test_pdf_mark_element_type.py
|
|
120
|
+
test/test_pdf_mark_image_model.py
|
|
121
|
+
test/test_pdf_mark_model.py
|
|
122
|
+
test/test_pdf_mark_page_options.py
|
|
123
|
+
test/test_pdf_signature_options.py
|
|
124
|
+
test/test_pdf_text_section_model.py
|
|
125
|
+
test/test_pdf_text_style.py
|
|
126
|
+
test/test_pki_brazil_certificate_model.py
|
|
127
|
+
test/test_pki_brazil_certificate_types.py
|
|
128
|
+
test/test_pki_italy_certificate_model.py
|
|
129
|
+
test/test_pki_italy_certificate_types.py
|
|
130
|
+
test/test_prepare_authentication_request.py
|
|
131
|
+
test/test_prepare_authentication_response.py
|
|
132
|
+
test/test_prepare_signature_failures.py
|
|
133
|
+
test/test_prepare_signature_request.py
|
|
134
|
+
test/test_prepare_signature_response.py
|
|
135
|
+
test/test_resource_content_or_reference.py
|
|
136
|
+
test/test_role_attribute_model.py
|
|
137
|
+
test/test_session_completion_status.py
|
|
138
|
+
test/test_signature_algorithm_and_value_model.py
|
|
139
|
+
test/test_signature_algorithm_identifier.py
|
|
140
|
+
test/test_signature_algorithms.py
|
|
141
|
+
test/test_signature_api.py
|
|
142
|
+
test/test_signature_b_stamp_model.py
|
|
143
|
+
test/test_signature_inspection_api.py
|
|
144
|
+
test/test_signature_policy_identifier_model.py
|
|
145
|
+
test/test_signature_result_model.py
|
|
146
|
+
test/test_signature_session_document_data.py
|
|
147
|
+
test/test_signature_session_document_summary.py
|
|
148
|
+
test/test_signature_session_model.py
|
|
149
|
+
test/test_signature_session_status.py
|
|
150
|
+
test/test_signature_sessions_api.py
|
|
151
|
+
test/test_signature_types.py
|
|
152
|
+
test/test_signer_b_stamp_model.py
|
|
153
|
+
test/test_signer_model.py
|
|
154
|
+
test/test_signer_summary.py
|
|
155
|
+
test/test_timestamp_api.py
|
|
156
|
+
test/test_timestamp_issue_response.py
|
|
157
|
+
test/test_upload_api.py
|
|
158
|
+
test/test_validation_item_model.py
|
|
159
|
+
test/test_validation_item_types.py
|
|
160
|
+
test/test_validation_results_model.py
|
|
161
|
+
test/test_webhook_event_model.py
|
|
162
|
+
test/test_webhook_event_types.py
|
|
163
|
+
test/test_xml_attribute_model.py
|
|
164
|
+
test/test_xml_element_location_model.py
|
|
165
|
+
test/test_xml_element_model.py
|
|
166
|
+
test/test_xml_element_signature_post_request.py
|
|
167
|
+
test/test_xml_id_attribute_model.py
|
|
168
|
+
test/test_xml_id_resolution_table_model.py
|
|
169
|
+
test/test_xml_insertion_options.py
|
|
170
|
+
test/test_xml_node_name_model.py
|
|
171
|
+
test/test_xml_signature_api.py
|
|
172
|
+
test/test_xml_signature_model.py
|
|
173
|
+
test/test_xml_signature_options.py
|
|
174
|
+
test/test_xml_signature_post_response.py
|
|
175
|
+
test/test_xml_signature_post_signed_bytes_request.py
|
|
176
|
+
test/test_xml_signature_post_signed_bytes_response.py
|
|
177
|
+
test/test_xml_signature_response_model.py
|
|
178
|
+
test/test_xml_signature_types.py
|
|
179
|
+
test/test_xml_signed_entity_types.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
manually_generated_files
|
|
@@ -21,10 +21,10 @@ from setuptools import setup, find_packages # noqa: H301
|
|
|
21
21
|
# prerequisite: setuptools
|
|
22
22
|
# http://pypi.python.org/pypi/setuptools
|
|
23
23
|
NAME = "restpki_ng_python_client"
|
|
24
|
-
VERSION = "0.9.
|
|
24
|
+
VERSION = "0.9.2-rc1"
|
|
25
25
|
PYTHON_REQUIRES = ">=3.7"
|
|
26
26
|
REQUIRES = [
|
|
27
|
-
"urllib3
|
|
27
|
+
"urllib3<2.1.0,>=1.24.3",
|
|
28
28
|
"python-dateutil",
|
|
29
29
|
"pydantic >= 2",
|
|
30
30
|
"typing-extensions >= 4.7.1",
|
|
@@ -39,7 +39,7 @@ setup(
|
|
|
39
39
|
url="",
|
|
40
40
|
keywords=["OpenAPI", "OpenAPI-Generator", "Rest PKI Core API"],
|
|
41
41
|
install_requires=REQUIRES,
|
|
42
|
-
packages=find_packages(exclude=["test", "tests"]),
|
|
42
|
+
# packages=find_packages(exclude=["test", "tests"]),
|
|
43
43
|
include_package_data=True,
|
|
44
44
|
long_description_content_type='text/markdown',
|
|
45
45
|
long_description="""\
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
import base64
|
|
16
16
|
import unittest
|
|
17
|
-
from restpki_ng_python_client.exceptions import ApiException
|
|
18
17
|
|
|
19
18
|
from restpki_ng_python_client.models.pades_signature_post_response import PadesSignaturePostResponse
|
|
20
19
|
|
|
@@ -58,13 +57,9 @@ class TestPadesSignatureApi(unittest.TestCase):
|
|
|
58
57
|
visual_representation=None
|
|
59
58
|
)
|
|
60
59
|
res = self.api.start_pades_signature_v2(pades_sig_v2)
|
|
61
|
-
|
|
62
|
-
assert res.certificate.thumbprint == certThumb
|
|
63
|
-
|
|
60
|
+
return res
|
|
64
61
|
except ApiException as e:
|
|
65
62
|
print(e)
|
|
66
|
-
# check if response is an instance of PadesSignaturePostResponse
|
|
67
|
-
|
|
68
63
|
|
|
69
64
|
|
|
70
65
|
def test_api_pades_signatures_post(self) -> None:
|
|
@@ -13,15 +13,75 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
import unittest
|
|
16
|
+
import datetime
|
|
17
|
+
import base64
|
|
18
|
+
import threading
|
|
19
|
+
import http.server
|
|
20
|
+
import socketserver
|
|
21
|
+
import urllib.parse
|
|
22
|
+
import time
|
|
23
|
+
import os
|
|
16
24
|
|
|
17
25
|
from restpki_ng_python_client.api.signature_sessions_api import SignatureSessionsApi
|
|
18
|
-
|
|
26
|
+
from restpki_ng_python_client.models.create_signature_session_request import CreateSignatureSessionRequest
|
|
27
|
+
from restpki_ng_python_client.models.signature_session_document_data import SignatureSessionDocumentData
|
|
28
|
+
from restpki_ng_python_client.models.file_reference_model import FileReferenceModel
|
|
29
|
+
from restpki_ng_python_client.models.pdf_signature_options import PdfSignatureOptions
|
|
30
|
+
from restpki_ng_python_client.models.pades_visual_representation_model import PadesVisualRepresentationModel
|
|
31
|
+
from restpki_ng_python_client.models.pades_visual_text_model import PadesVisualTextModel
|
|
32
|
+
from restpki_ng_python_client.models.pades_visual_rectangle_model import PadesVisualRectangleModel
|
|
33
|
+
from restpki_ng_python_client.models.pades_visual_positioning_model import PadesVisualPositioningModel
|
|
34
|
+
from restpki_ng_python_client.models.pades_visual_auto_positioning_model import PadesVisualAutoPositioningModel
|
|
35
|
+
from restpki_ng_python_client.models.pades_size_model import PadesSizeModel
|
|
36
|
+
from restpki_ng_python_client.models.pades_page_optimization_model import PadesPageOptimizationModel
|
|
37
|
+
from restpki_ng_python_client.models.pades_measurement_units import PadesMeasurementUnits
|
|
38
|
+
from restpki_ng_python_client.models.pades_horizontal_align import PadesHorizontalAlign
|
|
39
|
+
from restpki_ng_python_client.models.pades_vertical_align import PadesVerticalAlign
|
|
40
|
+
from restpki_ng_python_client.models.auto_positioning_horizontal_directions import AutoPositioningHorizontalDirections
|
|
41
|
+
from restpki_ng_python_client.models.auto_positioning_vertical_directions import AutoPositioningVerticalDirections
|
|
42
|
+
from restpki_ng_python_client.models.signature_types import SignatureTypes
|
|
43
|
+
from test import rest_pki_client
|
|
44
|
+
|
|
45
|
+
class CallbackHandler(http.server.SimpleHTTPRequestHandler):
|
|
46
|
+
"""Handler for the callback URL"""
|
|
47
|
+
callback_received = False
|
|
48
|
+
callback_data = None
|
|
49
|
+
|
|
50
|
+
def do_GET(self):
|
|
51
|
+
"""Handle GET request to the callback URL"""
|
|
52
|
+
# Parse the query parameters
|
|
53
|
+
query_components = urllib.parse.parse_qs(urllib.parse.urlparse(self.path).query)
|
|
54
|
+
|
|
55
|
+
# Store the callback data
|
|
56
|
+
CallbackHandler.callback_received = True
|
|
57
|
+
CallbackHandler.callback_data = query_components
|
|
58
|
+
|
|
59
|
+
# Send response
|
|
60
|
+
self.send_response(200)
|
|
61
|
+
self.send_header('Content-type', 'text/html')
|
|
62
|
+
self.end_headers()
|
|
63
|
+
self.wfile.write(b"Callback received successfully!")
|
|
64
|
+
|
|
65
|
+
def start_callback_server(port=8000):
|
|
66
|
+
"""Start a local HTTP server to handle the callback"""
|
|
67
|
+
handler = CallbackHandler
|
|
68
|
+
with socketserver.TCPServer(("", port), handler) as httpd:
|
|
69
|
+
print(f"Serving at port {port}")
|
|
70
|
+
httpd.serve_forever()
|
|
19
71
|
|
|
20
72
|
class TestSignatureSessionsApi(unittest.TestCase):
|
|
21
73
|
"""SignatureSessionsApi unit test stubs"""
|
|
22
74
|
|
|
75
|
+
@classmethod
|
|
76
|
+
def setUpClass(cls):
|
|
77
|
+
# Start the callback server in a separate thread
|
|
78
|
+
cls.server_thread = threading.Thread(target=start_callback_server, daemon=True)
|
|
79
|
+
cls.server_thread.start()
|
|
80
|
+
# Give the server a moment to start
|
|
81
|
+
time.sleep(1)
|
|
82
|
+
|
|
23
83
|
def setUp(self) -> None:
|
|
24
|
-
|
|
84
|
+
pass
|
|
25
85
|
|
|
26
86
|
def tearDown(self) -> None:
|
|
27
87
|
pass
|
|
@@ -45,7 +105,40 @@ class TestSignatureSessionsApi(unittest.TestCase):
|
|
|
45
105
|
|
|
46
106
|
Creates a signature session
|
|
47
107
|
"""
|
|
48
|
-
|
|
108
|
+
# Create a sample PDF file content (minimal valid PDF)
|
|
109
|
+
pdf_content = base64.b64encode(b'%PDF-1.4\n1 0 obj\n<<>>\nendobj\ntrailer\n<<>>\n%%EOF').decode('utf-8')
|
|
110
|
+
|
|
111
|
+
# Create the request
|
|
112
|
+
request = CreateSignatureSessionRequest(
|
|
113
|
+
return_url='http://localhost:8000/callback'
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
# Call the API
|
|
117
|
+
response = rest_pki_client.create_signature_session(create_signature_session_request=request)
|
|
118
|
+
|
|
119
|
+
# Assert the response
|
|
120
|
+
self.assertIsNotNone(response)
|
|
121
|
+
self.assertIsNotNone(response.session_id)
|
|
122
|
+
self.assertIsNotNone(response.redirect_url)
|
|
123
|
+
self.assertTrue(response.redirect_url.startswith('http'))
|
|
124
|
+
|
|
125
|
+
# Print the redirect URL for manual testing
|
|
126
|
+
print(f"\nPlease visit this URL to complete the signature: {response.redirect_url}")
|
|
127
|
+
print("The callback server is running at http://localhost:8000/callback")
|
|
128
|
+
print("Press Ctrl+C to stop the test when done\n")
|
|
129
|
+
|
|
130
|
+
# Wait for callback (with timeout)
|
|
131
|
+
timeout = 300 # 5 minutes timeout
|
|
132
|
+
start_time = time.time()
|
|
133
|
+
while not CallbackHandler.callback_received:
|
|
134
|
+
if time.time() - start_time > timeout:
|
|
135
|
+
self.fail("Timeout waiting for callback")
|
|
136
|
+
time.sleep(1)
|
|
137
|
+
|
|
138
|
+
# Verify callback data
|
|
139
|
+
self.assertTrue(CallbackHandler.callback_received)
|
|
140
|
+
self.assertIsNotNone(CallbackHandler.callback_data)
|
|
141
|
+
print(f"Callback received with data: {CallbackHandler.callback_data}")
|
|
49
142
|
|
|
50
143
|
|
|
51
144
|
if __name__ == '__main__':
|