restpki-ng-python-client 0.9.2rc1__tar.gz → 0.10.1__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.
Files changed (247) hide show
  1. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/PKG-INFO +1 -1
  2. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/README.md +7 -1
  3. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/api/upload_api.py +40 -10
  4. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/file_utils.py +10 -11
  5. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/models/pdf_mark_element_model.py +230 -230
  6. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/models/pdf_mark_model.py +168 -168
  7. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/models/pdf_text_section_model.py +125 -125
  8. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/restpki_ng_client.py +217 -95
  9. restpki_ng_python_client-0.10.1/manually_generated_files/utils.py +121 -0
  10. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/restpki_ng_python_client.egg-info/PKG-INFO +1 -1
  11. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/restpki_ng_python_client.egg-info/SOURCES.txt +66 -1
  12. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/setup.py +1 -1
  13. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_allocate_document_key_batch_request.py +57 -57
  14. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_allocate_document_key_request.py +56 -56
  15. restpki_ng_python_client-0.10.1/test/test_archive_timestamp_info.py +249 -0
  16. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_attribute_certificate_model.py +146 -146
  17. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_audit_package_options.py +53 -53
  18. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentication_api.py +76 -76
  19. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentication_failures.py +34 -34
  20. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentication_get_response.py +52 -52
  21. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentication_post_request.py +56 -56
  22. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentication_post_response.py +169 -169
  23. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentications_post_request.py +53 -53
  24. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentications_post_response.py +55 -55
  25. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentications_post_signed_bytes_request.py +53 -53
  26. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_authentications_post_signed_bytes_response.py +169 -169
  27. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_auto_positioning_horizontal_directions.py +34 -34
  28. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_auto_positioning_vertical_directions.py +34 -34
  29. restpki_ng_python_client-0.10.1/test/test_bio_authentication_failures.py +34 -0
  30. restpki_ng_python_client-0.10.1/test/test_bio_authentication_session_status_model.py +57 -0
  31. restpki_ng_python_client-0.10.1/test/test_bio_enrollment_failures.py +34 -0
  32. restpki_ng_python_client-0.10.1/test/test_bio_enrollment_session_status_model.py +66 -0
  33. restpki_ng_python_client-0.10.1/test/test_bio_identification_failures.py +34 -0
  34. restpki_ng_python_client-0.10.1/test/test_bio_identification_session_status_model.py +57 -0
  35. restpki_ng_python_client-0.10.1/test/test_bio_session_abort_reasons.py +34 -0
  36. restpki_ng_python_client-0.10.1/test/test_bio_session_connection_model.py +61 -0
  37. restpki_ng_python_client-0.10.1/test/test_bio_session_connection_types.py +34 -0
  38. restpki_ng_python_client-0.10.1/test/test_bio_session_data_blob_model.py +60 -0
  39. restpki_ng_python_client-0.10.1/test/test_bio_session_data_blob_types.py +34 -0
  40. restpki_ng_python_client-0.10.1/test/test_bio_session_geolocation_capture_policies.py +34 -0
  41. restpki_ng_python_client-0.10.1/test/test_bio_session_geolocation_capture_types.py +34 -0
  42. restpki_ng_python_client-0.10.1/test/test_bio_session_interaction_methods.py +34 -0
  43. restpki_ng_python_client-0.10.1/test/test_bio_session_model.py +153 -0
  44. restpki_ng_python_client-0.10.1/test/test_bio_session_platform_preferences.py +34 -0
  45. restpki_ng_python_client-0.10.1/test/test_bio_session_platforms.py +34 -0
  46. restpki_ng_python_client-0.10.1/test/test_bio_session_result_data_model.py +76 -0
  47. restpki_ng_python_client-0.10.1/test/test_bio_session_result_face_data.py +54 -0
  48. restpki_ng_python_client-0.10.1/test/test_bio_session_status.py +34 -0
  49. restpki_ng_python_client-0.10.1/test/test_bio_session_types.py +34 -0
  50. restpki_ng_python_client-0.10.1/test/test_bio_sessions_api.py +107 -0
  51. restpki_ng_python_client-0.10.1/test/test_bio_subject_face_model.py +55 -0
  52. restpki_ng_python_client-0.10.1/test/test_bio_subject_model.py +62 -0
  53. restpki_ng_python_client-0.10.1/test/test_bio_subject_reference.py +53 -0
  54. restpki_ng_python_client-0.10.1/test/test_bio_subjects_api.py +43 -0
  55. restpki_ng_python_client-0.10.1/test/test_blob_model.py +55 -0
  56. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_blockchains.py +34 -34
  57. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_api.py +79 -79
  58. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_model.py +276 -276
  59. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_post_request_v1.py +59 -59
  60. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_post_request_v2.py +65 -65
  61. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_post_request_v3.py +73 -73
  62. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_post_response.py +151 -151
  63. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_post_signed_bytes_request.py +52 -52
  64. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signature_post_signed_bytes_response.py +149 -149
  65. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_signer_model.py +386 -386
  66. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cades_timestamp_model.py +270 -270
  67. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_certificate_model.py +192 -192
  68. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_certificate_reference_model.py +53 -53
  69. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_certificate_requirement.py +53 -53
  70. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_certificate_requirement_types.py +34 -34
  71. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_certificate_summary.py +59 -59
  72. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_certified_attribute_model.py +86 -86
  73. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_certified_attribute_types.py +34 -34
  74. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cms_content_types.py +34 -34
  75. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_cms_signature_options.py +67 -67
  76. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_color_model.py +55 -55
  77. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_commitment_type_model.py +53 -53
  78. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_complete_authentication_request.py +57 -57
  79. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_complete_authentication_response.py +171 -171
  80. restpki_ng_python_client-0.10.1/test/test_complete_bio_session_request.py +53 -0
  81. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_complete_signature_request.py +53 -53
  82. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_complete_signature_request_v2.py +55 -55
  83. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_create_signature_session_request.py +212 -212
  84. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_create_signature_session_response.py +53 -53
  85. restpki_ng_python_client-0.10.1/test/test_datavalid_session_model.py +61 -0
  86. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_digest_algorithm_and_value_model.py +54 -54
  87. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_digest_algorithms.py +34 -34
  88. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_file_model.py +59 -59
  89. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_key_model.py +53 -53
  90. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_key_query_response.py +102 -102
  91. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_key_summary.py +53 -53
  92. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_keys_api.py +59 -59
  93. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_model.py +101 -101
  94. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_query_response.py +95 -95
  95. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_status.py +34 -34
  96. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_document_summary.py +83 -83
  97. restpki_ng_python_client-0.10.1/test/test_document_summary_paginated_search_response.py +82 -0
  98. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_documents_api.py +59 -52
  99. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_error_model_v2.py +79 -79
  100. restpki_ng_python_client-0.10.1/test/test_extend_archival_signature_request.py +72 -0
  101. restpki_ng_python_client-0.10.1/test/test_extend_archival_signature_response.py +461 -0
  102. restpki_ng_python_client-0.10.1/test/test_face_capture_providers.py +34 -0
  103. restpki_ng_python_client-0.10.1/test/test_face_liveness_providers.py +34 -0
  104. restpki_ng_python_client-0.10.1/test/test_face_liveness_session_status_info.py +54 -0
  105. restpki_ng_python_client-0.10.1/test/test_face_tec_attempt_model.py +59 -0
  106. restpki_ng_python_client-0.10.1/test/test_face_tec_session_model.py +79 -0
  107. restpki_ng_python_client-0.10.1/test/test_face_tec_session_types.py +34 -0
  108. restpki_ng_python_client-0.10.1/test/test_file_download.py +237 -0
  109. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_file_model.py +55 -55
  110. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_file_reference_model.py +59 -59
  111. restpki_ng_python_client-0.10.1/test/test_fort_face_actions.py +34 -0
  112. restpki_ng_python_client-0.10.1/test/test_fort_face_contexts.py +34 -0
  113. restpki_ng_python_client-0.10.1/test/test_fort_face_session_model.py +64 -0
  114. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_full_xml_signature_post_request.py +66 -66
  115. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_general_name_choices.py +34 -34
  116. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_general_name_model.py +79 -79
  117. restpki_ng_python_client-0.10.1/test/test_geolocation_capture_model.py +54 -0
  118. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_holder_types.py +34 -34
  119. restpki_ng_python_client-0.10.1/test/test_identification_document_capture_session_info.py +55 -0
  120. restpki_ng_python_client-0.10.1/test/test_identification_document_capture_session_status_model.py +60 -0
  121. restpki_ng_python_client-0.10.1/test/test_identification_document_data.py +75 -0
  122. restpki_ng_python_client-0.10.1/test/test_identification_document_fields.py +62 -0
  123. restpki_ng_python_client-0.10.1/test/test_identification_document_providers.py +34 -0
  124. restpki_ng_python_client-0.10.1/test/test_identification_document_types.py +34 -0
  125. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_inspect_signature_failures.py +34 -34
  126. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_inspect_signature_request.py +89 -89
  127. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_inspect_signature_response.py +308 -308
  128. restpki_ng_python_client-0.10.1/test/test_liveness_session_status_model.py +63 -0
  129. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_multipart_upload_begin_response.py +53 -53
  130. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_multipart_upload_end_request.py +58 -58
  131. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_name_model.py +72 -72
  132. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_namespace_model.py +53 -53
  133. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_open_cades_signature_request_model.py +79 -79
  134. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_open_signature_request_model.py +78 -78
  135. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_open_xml_signature_request_model.py +92 -92
  136. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_other_name_model.py +54 -54
  137. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_certification_level.py +34 -34
  138. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_horizontal_align.py +34 -34
  139. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_measurement_units.py +34 -34
  140. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_page_optimization_model.py +56 -56
  141. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signature_api.py +102 -97
  142. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signature_model.py +272 -272
  143. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signature_post_request_v1.py +165 -165
  144. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signature_post_request_v2.py +173 -173
  145. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signature_post_response.py +151 -151
  146. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signature_post_signed_bytes_request.py +52 -52
  147. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signature_post_signed_bytes_response.py +149 -149
  148. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_signer_model.py +389 -389
  149. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_size_model.py +53 -53
  150. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_text_horizontal_align.py +34 -34
  151. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_vertical_align.py +34 -34
  152. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_visual_auto_positioning_model.py +74 -74
  153. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_visual_image_model.py +58 -58
  154. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_visual_positioning_model.py +80 -80
  155. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_visual_positioning_presets_api.py +49 -49
  156. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_visual_rectangle_model.py +57 -57
  157. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_visual_representation_model.py +130 -130
  158. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pades_visual_text_model.py +62 -62
  159. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_page_orientations.py +34 -34
  160. restpki_ng_python_client-0.10.1/test/test_pagination_orders.py +34 -0
  161. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_paper_sizes.py +34 -34
  162. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_add_marks_request.py +177 -177
  163. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_add_marks_response.py +56 -56
  164. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_api.py +37 -37
  165. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_mark_element_model.py +82 -82
  166. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_mark_element_type.py +34 -34
  167. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_mark_image_model.py +56 -56
  168. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_mark_model.py +146 -146
  169. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_mark_page_options.py +34 -34
  170. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_signature_options.py +101 -101
  171. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_text_section_model.py +60 -60
  172. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pdf_text_style.py +34 -34
  173. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pki_brazil_certificate_model.py +62 -62
  174. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pki_brazil_certificate_types.py +34 -34
  175. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pki_italy_certificate_model.py +54 -54
  176. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_pki_italy_certificate_types.py +34 -34
  177. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_prepare_authentication_request.py +53 -53
  178. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_prepare_authentication_response.py +56 -56
  179. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_prepare_signature_failures.py +34 -34
  180. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_prepare_signature_request.py +152 -152
  181. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_prepare_signature_response.py +176 -176
  182. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_resource_content_or_reference.py +54 -54
  183. restpki_ng_python_client-0.10.1/test/test_restpki_ng_client.py +645 -0
  184. restpki_ng_python_client-0.10.1/test/test_restpki_ng_client_tls.py +53 -0
  185. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_role_attribute_model.py +84 -84
  186. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_session_completion_status.py +53 -53
  187. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_algorithm_and_value_model.py +55 -55
  188. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_algorithm_identifier.py +52 -52
  189. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_algorithms.py +34 -34
  190. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_api.py +49 -43
  191. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_b_stamp_model.py +72 -72
  192. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_inspection_api.py +38 -38
  193. restpki_ng_python_client-0.10.1/test/test_signature_parameters_model.py +59 -0
  194. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_policy_identifier_model.py +57 -57
  195. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_result_model.py +153 -153
  196. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_session_document_data.py +131 -131
  197. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_session_document_summary.py +85 -85
  198. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_session_model.py +180 -180
  199. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_session_status.py +34 -34
  200. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_sessions_api.py +149 -145
  201. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signature_types.py +34 -34
  202. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signer_b_stamp_model.py +70 -70
  203. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signer_model.py +447 -447
  204. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_signer_summary.py +61 -61
  205. restpki_ng_python_client-0.10.1/test/test_stamp_pdf_request.py +116 -0
  206. restpki_ng_python_client-0.10.1/test/test_stamp_pdf_response.py +60 -0
  207. restpki_ng_python_client-0.10.1/test/test_standard_trust_anchors.py +34 -0
  208. restpki_ng_python_client-0.10.1/test/test_start_bio_authentication_session_request.py +63 -0
  209. restpki_ng_python_client-0.10.1/test/test_start_bio_enrollment_session_request.py +63 -0
  210. restpki_ng_python_client-0.10.1/test/test_start_bio_identification_session_request.py +57 -0
  211. restpki_ng_python_client-0.10.1/test/test_start_bio_session_response.py +54 -0
  212. restpki_ng_python_client-0.10.1/test/test_start_identification_document_capture_session_request.py +58 -0
  213. restpki_ng_python_client-0.10.1/test/test_start_liveness_session_request.py +61 -0
  214. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_timestamp_api.py +43 -43
  215. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_timestamp_issue_response.py +242 -242
  216. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_upload_api.py +55 -55
  217. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_validation_item_model.py +69 -69
  218. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_validation_item_types.py +34 -34
  219. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_validation_results_model.py +96 -96
  220. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_webhook_event_model.py +95 -95
  221. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_webhook_event_types.py +34 -34
  222. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_attribute_model.py +54 -54
  223. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_element_location_model.py +58 -58
  224. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_element_model.py +59 -59
  225. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_element_signature_post_request.py +82 -82
  226. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_id_attribute_model.py +63 -63
  227. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_id_resolution_table_model.py +66 -66
  228. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_insertion_options.py +34 -34
  229. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_node_name_model.py +54 -54
  230. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_api.py +67 -67
  231. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_model.py +401 -401
  232. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_options.py +61 -61
  233. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_post_response.py +151 -151
  234. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_post_signed_bytes_request.py +52 -52
  235. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_post_signed_bytes_response.py +149 -149
  236. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_response_model.py +275 -275
  237. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signature_types.py +34 -34
  238. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/test/test_xml_signed_entity_types.py +34 -34
  239. restpki_ng_python_client-0.10.1/test/test_xml_x_path_model.py +57 -0
  240. restpki_ng_python_client-0.9.2rc1/manually_generated_files/utils.py +0 -80
  241. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/models/pdf_container_definition.py +0 -0
  242. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/models/pdf_helper.py +0 -0
  243. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/manually_generated_files/standard_signature_policies.py +0 -0
  244. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/restpki_ng_python_client.egg-info/dependency_links.txt +0 -0
  245. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/restpki_ng_python_client.egg-info/requires.txt +0 -0
  246. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/restpki_ng_python_client.egg-info/top_level.txt +0 -0
  247. {restpki_ng_python_client-0.9.2rc1 → restpki_ng_python_client-0.10.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: restpki_ng_python_client
3
- Version: 0.9.2rc1
3
+ Version: 0.10.1
4
4
  Summary: Rest PKI Core API
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -75,6 +75,11 @@ The `dist` folder contains the generated files and the static proprietary module
75
75
  ## Steps
76
76
  ### Generating and testing the library
77
77
  1. Run `cmd.ps1`
78
+ * `cmd.ps1` needs `openapi-generator-cli` (and therefore Java). Without them, you can run the same generator version (see `openapitools.json`) through Docker in place of the `openapi-generator-cli generate` line, then run the rest of the script's steps:
79
+ ```
80
+ docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.1.0 generate -g python -i https://homolog.core.pki.rest/swagger/api/swagger.json -c /local/python-openapi-config.json -o /local/dist
81
+ ```
82
+ * After generating, check the new and changed API operations against `manually_generated_files/restpki_ng_client.py` and add facade methods for them. `test/test_restpki_ng_client.py` tests the facade methods offline, without a Rest PKI Core instance.
78
83
  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
84
  * Copy and overwrite the `test` folder into `dist/test`.
80
85
  * Test all modules using `pytest`, you also may test one at a time by running `pytest [filename.py]`
@@ -82,7 +87,8 @@ The `dist` folder contains the generated files and the static proprietary module
82
87
 
83
88
  ### Publishing
84
89
 
85
- TODO
90
+ After running `cmd.ps1`, run the `publish.ps1`. Make sure you have the PyPI API Token to be able to publish the package.
91
+ The `publish.ps1` script also contain commands to run the tests present in the `test` folder.
86
92
 
87
93
  ### Adding new files to the project
88
94
  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
@@ -15,7 +15,7 @@
15
15
  import io
16
16
  import warnings
17
17
 
18
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
18
+ from pydantic import validate_call, Field, StrictBytes, StrictFloat, StrictStr, StrictInt
19
19
  from typing import Dict, List, Optional, Tuple, Union, Any
20
20
 
21
21
  from urllib3 import encode_multipart_formdata
@@ -289,6 +289,7 @@ class UploadApi:
289
289
 
290
290
  # authentication setting
291
291
  _auth_settings: List[str] = [
292
+ 'ApiKey'
292
293
  ]
293
294
 
294
295
  return self.api_client.param_serialize(
@@ -314,7 +315,8 @@ class UploadApi:
314
315
  self,
315
316
  token: StrictStr,
316
317
  part_number: StrictInt,
317
- part_digest: Any,
318
+ part_content: StrictBytes,
319
+ part_digest: Optional[StrictStr] = None,
318
320
  _request_timeout: Union[
319
321
  None,
320
322
  Annotated[StrictFloat, Field(gt=0)],
@@ -335,6 +337,10 @@ class UploadApi:
335
337
  :type token: str
336
338
  :param part_number: (required)
337
339
  :type part_number: int
340
+ :param part_content: bytes of this part, sent as the request body (required)
341
+ :type part_content: bytes
342
+ :param part_digest: standard (not URL-safe) Base64 of the MD5 of part_content, sent on the Content-MD5 header
343
+ :type part_digest: str, optional
338
344
  :param _request_timeout: timeout setting for this request. If one
339
345
  number provided, it will be total request
340
346
  timeout. It can also be a pair (tuple) of
@@ -357,15 +363,11 @@ class UploadApi:
357
363
  :return: Returns the result object.
358
364
  """ # noqa: E501
359
365
 
360
- # Add or update the Content-MD5 header in the _headers dictionary
361
- # if _headers is None:
362
- # _headers = {}
363
- # _headers['Content-MD5'] = part_digest
364
- # _content_type = 'application/octet-stream'
365
-
366
366
  _param = self._api_multipart_uploads_token_part_number_post_serialize(
367
367
  token=token,
368
368
  part_number=part_number,
369
+ part_content=part_content,
370
+ part_digest=part_digest,
369
371
  _request_auth=_request_auth,
370
372
  _content_type=_content_type,
371
373
  _headers=_headers,
@@ -391,6 +393,8 @@ class UploadApi:
391
393
  self,
392
394
  token: StrictStr,
393
395
  part_number: StrictInt,
396
+ part_content: StrictBytes,
397
+ part_digest: Optional[StrictStr] = None,
394
398
  _request_timeout: Union[
395
399
  None,
396
400
  Annotated[StrictFloat, Field(gt=0)],
@@ -411,6 +415,10 @@ class UploadApi:
411
415
  :type token: str
412
416
  :param part_number: (required)
413
417
  :type part_number: int
418
+ :param part_content: bytes of this part, sent as the request body (required)
419
+ :type part_content: bytes
420
+ :param part_digest: standard (not URL-safe) Base64 of the MD5 of part_content, sent on the Content-MD5 header
421
+ :type part_digest: str, optional
414
422
  :param _request_timeout: timeout setting for this request. If one
415
423
  number provided, it will be total request
416
424
  timeout. It can also be a pair (tuple) of
@@ -436,6 +444,8 @@ class UploadApi:
436
444
  _param = self._api_multipart_uploads_token_part_number_post_serialize(
437
445
  token=token,
438
446
  part_number=part_number,
447
+ part_content=part_content,
448
+ part_digest=part_digest,
439
449
  _request_auth=_request_auth,
440
450
  _content_type=_content_type,
441
451
  _headers=_headers,
@@ -461,6 +471,8 @@ class UploadApi:
461
471
  self,
462
472
  token: StrictStr,
463
473
  part_number: StrictInt,
474
+ part_content: StrictBytes,
475
+ part_digest: Optional[StrictStr] = None,
464
476
  _request_timeout: Union[
465
477
  None,
466
478
  Annotated[StrictFloat, Field(gt=0)],
@@ -481,6 +493,10 @@ class UploadApi:
481
493
  :type token: str
482
494
  :param part_number: (required)
483
495
  :type part_number: int
496
+ :param part_content: bytes of this part, sent as the request body (required)
497
+ :type part_content: bytes
498
+ :param part_digest: standard (not URL-safe) Base64 of the MD5 of part_content, sent on the Content-MD5 header
499
+ :type part_digest: str, optional
484
500
  :param _request_timeout: timeout setting for this request. If one
485
501
  number provided, it will be total request
486
502
  timeout. It can also be a pair (tuple) of
@@ -506,6 +522,8 @@ class UploadApi:
506
522
  _param = self._api_multipart_uploads_token_part_number_post_serialize(
507
523
  token=token,
508
524
  part_number=part_number,
525
+ part_content=part_content,
526
+ part_digest=part_digest,
509
527
  _request_auth=_request_auth,
510
528
  _content_type=_content_type,
511
529
  _headers=_headers,
@@ -526,6 +544,8 @@ class UploadApi:
526
544
  self,
527
545
  token,
528
546
  part_number,
547
+ part_content,
548
+ part_digest,
529
549
  _request_auth,
530
550
  _content_type,
531
551
  _headers,
@@ -552,14 +572,22 @@ class UploadApi:
552
572
  _path_params['partNumber'] = part_number
553
573
  # process the query parameters
554
574
  # process the header parameters
575
+ if part_digest is not None:
576
+ _header_params['Content-MD5'] = part_digest
555
577
  # process the form parameters
556
578
  # process the body parameter
579
+ if part_content is not None:
580
+ _body_params = part_content
557
581
 
558
-
559
-
582
+ # set the HTTP header `Content-Type`
583
+ if _content_type:
584
+ _header_params['Content-Type'] = _content_type
585
+ else:
586
+ _header_params['Content-Type'] = 'application/octet-stream'
560
587
 
561
588
  # authentication setting
562
589
  _auth_settings: List[str] = [
590
+ 'ApiKey'
563
591
  ]
564
592
 
565
593
  return self.api_client.param_serialize(
@@ -838,6 +866,7 @@ class UploadApi:
838
866
 
839
867
  # authentication setting
840
868
  _auth_settings: List[str] = [
869
+ 'ApiKey'
841
870
  ]
842
871
 
843
872
  return self.api_client.param_serialize(
@@ -1106,6 +1135,7 @@ class UploadApi:
1106
1135
 
1107
1136
  # authentication setting
1108
1137
  _auth_settings: List[str] = [
1138
+ 'ApiKey'
1109
1139
  ]
1110
1140
 
1111
1141
  return self.api_client.param_serialize(
@@ -25,11 +25,10 @@ class FileUtils():
25
25
  if content_raw is not None:
26
26
  stream = Utils._get_raw_stream(content_raw)
27
27
  else:
28
+ url = Utils._get_file_url(self.__file, self.__client)
28
29
  stream = BytesIO()
29
- with self.__client.get_file_from_url(self.__file.url) as response:
30
- for chunk in response.stream(buff_size):
31
- stream.write(chunk)
32
- stream.seek(0, 0)
30
+ Utils._download(self.__client, url, stream, buff_size)
31
+ stream.seek(0, 0)
33
32
  return stream
34
33
 
35
34
  def write_to(self, f_out, offset=0, from_where=0, buff_size=4096):
@@ -41,25 +40,25 @@ class FileUtils():
41
40
  Utils._copy_stream(f_in, f_out, offset, from_where, buff_size)
42
41
  f_in.close()
43
42
  else:
43
+ url = Utils._get_file_url(self.__file, self.__client)
44
44
  f_out.seek(offset, from_where)
45
- with self.__client.get_file_from_url(self.__file.url) as response:
46
- for chunk in response.stream(buff_size):
47
- f_out.write(chunk)
48
-
45
+ Utils._download(self.__client, url, f_out, buff_size)
46
+
49
47
 
50
48
  def write_to_file(self, path, offset=0, from_where=0, buff_size=4096):
51
49
  content_base64 = self.__file.content
52
50
  content_raw = Utils._base64_decode(content_base64)\
53
51
  if content_base64 is not None else None
52
+ # Checked before opening the file, so that it is not created or truncated when there is nothing to write
53
+ url = Utils._get_file_url(self.__file, self.__client) if content_raw is None else None
54
54
  with open(path, 'wb') as f_out:
55
55
  if content_raw is not None:
56
56
  f_in = self.open()
57
57
  Utils._copy_stream(f_in, f_out, offset, from_where, buff_size)
58
58
  f_in.close()
59
59
  else:
60
- with self.__client.get_file_from_url(self.__file.url) as response:
61
- for chunk in response.stream(buff_size):
62
- f_out.write(chunk)
60
+ f_out.seek(offset, from_where)
61
+ Utils._download(self.__client, url, f_out, buff_size)
63
62
 
64
63
  # region "content" accessors
65
64