regula-documentreader-webclient 8.1.349rc0__py3-none-any.whl → 8.1.351.dev0__py3-none-any.whl
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.
Potentially problematic release.
This version of regula-documentreader-webclient might be problematic. Click here for more details.
- regula/documentreader/webclient/ext/__init__.py +0 -1
- regula/documentreader/webclient/ext/api/document_reader_api.py +2 -2
- regula/documentreader/webclient/ext/models/__init__.py +0 -2
- regula/documentreader/webclient/ext/models/authenticity/authenticity_check_list.py +64 -19
- regula/documentreader/webclient/ext/models/authenticity/fiber.py +7 -7
- regula/documentreader/webclient/ext/models/authenticity/ident.py +10 -9
- regula/documentreader/webclient/ext/models/authenticity/image_ident.py +8 -7
- regula/documentreader/webclient/ext/models/authenticity/ocr_security_text.py +7 -7
- regula/documentreader/webclient/ext/models/authenticity/security_feature.py +10 -8
- regula/documentreader/webclient/ext/models/images.py +4 -4
- regula/documentreader/webclient/ext/models/recognition_request.py +23 -24
- regula/documentreader/webclient/ext/models/recognition_response.py +6 -8
- regula/documentreader/webclient/ext/models/text.py +7 -12
- regula/documentreader/webclient/gen/__init__.py +100 -26
- regula/documentreader/webclient/gen/api/__init__.py +1 -2
- regula/documentreader/webclient/gen/api/healthcheck_api.py +687 -298
- regula/documentreader/webclient/gen/api/process_api.py +270 -125
- regula/documentreader/webclient/gen/api/transaction_api.py +1472 -673
- regula/documentreader/webclient/gen/api_client.py +583 -462
- regula/documentreader/webclient/gen/api_response.py +21 -0
- regula/documentreader/webclient/gen/configuration.py +222 -99
- regula/documentreader/webclient/gen/exceptions.py +81 -30
- regula/documentreader/webclient/gen/models/__init__.py +98 -25
- regula/documentreader/webclient/gen/models/area_array.py +85 -131
- regula/documentreader/webclient/gen/models/area_container.py +85 -157
- regula/documentreader/webclient/gen/models/auth_params.py +100 -526
- regula/documentreader/webclient/gen/models/authenticity_check_list.py +75 -136
- regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +83 -0
- regula/documentreader/webclient/gen/models/authenticity_check_result.py +81 -160
- regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +154 -217
- regula/documentreader/webclient/gen/models/authenticity_check_result_list_inner.py +174 -0
- regula/documentreader/webclient/gen/models/authenticity_result.py +68 -231
- regula/documentreader/webclient/gen/models/authenticity_result_type.py +35 -123
- regula/documentreader/webclient/gen/models/bar_code_module_type.py +32 -0
- regula/documentreader/webclient/gen/models/barcode_type.py +47 -0
- regula/documentreader/webclient/gen/models/bc_pdf417_info.py +75 -235
- regula/documentreader/webclient/gen/models/bc_roidetect.py +71 -183
- regula/documentreader/webclient/gen/models/binary_data.py +218 -0
- regula/documentreader/webclient/gen/models/byte_array_item.py +79 -0
- regula/documentreader/webclient/gen/models/byte_array_result.py +64 -233
- regula/documentreader/webclient/gen/models/candidates_list_item.py +83 -0
- regula/documentreader/webclient/gen/models/certificate_data.py +81 -0
- regula/documentreader/webclient/gen/models/check_diagnose.py +138 -329
- regula/documentreader/webclient/gen/models/check_result.py +15 -84
- regula/documentreader/webclient/gen/models/chosen_document_type.py +94 -334
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +80 -264
- regula/documentreader/webclient/gen/models/container_list.py +75 -134
- regula/documentreader/webclient/gen/models/container_list_list_inner.py +426 -0
- regula/documentreader/webclient/gen/models/critical.py +14 -82
- regula/documentreader/webclient/gen/models/cross_source_value_comparison.py +67 -156
- regula/documentreader/webclient/gen/models/data_module.py +74 -209
- regula/documentreader/webclient/gen/models/details_optical.py +83 -298
- regula/documentreader/webclient/gen/models/details_rfid.py +78 -268
- regula/documentreader/webclient/gen/models/device_info.py +76 -235
- regula/documentreader/webclient/gen/models/doc_bar_code_info.py +68 -230
- regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +75 -135
- regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +83 -0
- regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +83 -0
- regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +105 -301
- regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +83 -0
- regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +75 -106
- regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +83 -0
- regula/documentreader/webclient/gen/models/document_binary_info_result.py +90 -0
- regula/documentreader/webclient/gen/models/document_format.py +27 -105
- regula/documentreader/webclient/gen/models/document_image.py +63 -132
- regula/documentreader/webclient/gen/models/document_image_result.py +68 -231
- regula/documentreader/webclient/gen/models/document_position.py +111 -340
- regula/documentreader/webclient/gen/models/document_position_item.py +83 -0
- regula/documentreader/webclient/gen/models/document_position_result.py +68 -230
- regula/documentreader/webclient/gen/models/document_type.py +243 -539
- regula/documentreader/webclient/gen/models/document_type_recognition_result.py +15 -84
- regula/documentreader/webclient/gen/models/document_types_candidates.py +76 -131
- regula/documentreader/webclient/gen/models/document_types_candidates_list.py +76 -131
- regula/documentreader/webclient/gen/models/document_types_candidates_result.py +68 -230
- regula/documentreader/webclient/gen/models/documents_database.py +71 -191
- regula/documentreader/webclient/gen/models/encrypted_rcl_item.py +79 -0
- regula/documentreader/webclient/gen/models/encrypted_rcl_result.py +64 -233
- regula/documentreader/webclient/gen/models/error_coordinates.py +85 -0
- regula/documentreader/webclient/gen/models/face_api.py +88 -358
- regula/documentreader/webclient/gen/models/face_api_search.py +65 -159
- regula/documentreader/webclient/gen/models/face_detection.py +95 -0
- regula/documentreader/webclient/gen/models/face_detection_item.py +83 -0
- regula/documentreader/webclient/gen/models/face_detection_result.py +90 -0
- regula/documentreader/webclient/gen/models/face_item.py +109 -0
- regula/documentreader/webclient/gen/models/fdsid_list.py +91 -390
- regula/documentreader/webclient/gen/models/fiber_item.py +106 -0
- regula/documentreader/webclient/gen/models/fiber_result.py +103 -439
- regula/documentreader/webclient/gen/models/field_item.py +89 -0
- regula/documentreader/webclient/gen/models/file_image.py +81 -0
- regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py +66 -159
- regula/documentreader/webclient/gen/models/graph_data.py +95 -0
- regula/documentreader/webclient/gen/models/graphic_field.py +80 -271
- regula/documentreader/webclient/gen/models/graphic_field_type.py +40 -131
- regula/documentreader/webclient/gen/models/graphic_fields_list.py +75 -106
- regula/documentreader/webclient/gen/models/graphics_result.py +68 -231
- regula/documentreader/webclient/gen/models/healthcheck.py +117 -297
- regula/documentreader/webclient/gen/models/healthcheck_documents_database.py +91 -187
- regula/documentreader/webclient/gen/models/ident_item.py +110 -0
- regula/documentreader/webclient/gen/models/ident_result.py +107 -345
- regula/documentreader/webclient/gen/models/image_data.py +63 -132
- regula/documentreader/webclient/gen/models/image_qa.py +83 -304
- regula/documentreader/webclient/gen/models/image_quality_check.py +86 -263
- regula/documentreader/webclient/gen/models/image_quality_check_list.py +78 -133
- regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +83 -0
- regula/documentreader/webclient/gen/models/image_quality_check_type.py +22 -97
- regula/documentreader/webclient/gen/models/image_quality_result.py +68 -231
- regula/documentreader/webclient/gen/models/image_transaction_data.py +61 -97
- regula/documentreader/webclient/gen/models/images.py +87 -133
- regula/documentreader/webclient/gen/models/images_available_source.py +64 -130
- regula/documentreader/webclient/gen/models/images_field.py +80 -162
- regula/documentreader/webclient/gen/models/images_field_value.py +94 -331
- regula/documentreader/webclient/gen/models/images_item.py +83 -0
- regula/documentreader/webclient/gen/models/images_result.py +68 -231
- regula/documentreader/webclient/gen/models/in_data.py +79 -131
- regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py +72 -187
- regula/documentreader/webclient/gen/models/in_data_video.py +63 -131
- regula/documentreader/webclient/gen/models/input_barcode_type.py +33 -119
- regula/documentreader/webclient/gen/models/input_image_quality_checks.py +22 -97
- regula/documentreader/webclient/gen/models/lcid.py +179 -402
- regula/documentreader/webclient/gen/models/lexical_analysis_result.py +68 -234
- regula/documentreader/webclient/gen/models/license_item.py +79 -0
- regula/documentreader/webclient/gen/models/license_result.py +64 -233
- regula/documentreader/webclient/gen/models/light.py +61 -87
- regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +75 -131
- regula/documentreader/webclient/gen/models/list_verified_fields.py +77 -105
- regula/documentreader/webclient/gen/models/list_verified_fields_item.py +83 -0
- regula/documentreader/webclient/gen/models/liveness_params.py +77 -247
- regula/documentreader/webclient/gen/models/log_level.py +17 -88
- regula/documentreader/webclient/gen/models/measure_system.py +14 -82
- regula/documentreader/webclient/gen/models/mrz_detect_mode_enum.py +15 -84
- regula/documentreader/webclient/gen/models/mrz_detector_result.py +90 -0
- regula/documentreader/webclient/gen/models/mrz_format.py +18 -90
- regula/documentreader/webclient/gen/models/mrz_position.py +124 -0
- regula/documentreader/webclient/gen/models/mrz_position_item.py +83 -0
- regula/documentreader/webclient/gen/models/mrz_position_result.py +90 -0
- regula/documentreader/webclient/gen/models/mrz_rows_item.py +91 -0
- regula/documentreader/webclient/gen/models/mrz_test_quality.py +105 -0
- regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +83 -0
- regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +90 -0
- regula/documentreader/webclient/gen/models/ocr_security_text_item.py +110 -0
- regula/documentreader/webclient/gen/models/ocr_security_text_result.py +107 -449
- regula/documentreader/webclient/gen/models/one_candidate.py +94 -334
- regula/documentreader/webclient/gen/models/one_candidate_item.py +87 -0
- regula/documentreader/webclient/gen/models/original_symbol.py +74 -167
- regula/documentreader/webclient/gen/models/out_data.py +75 -133
- regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py +75 -213
- regula/documentreader/webclient/gen/models/p_array_field.py +103 -342
- regula/documentreader/webclient/gen/models/parsed_data.py +79 -0
- regula/documentreader/webclient/gen/models/parsing_error_codes.py +153 -0
- regula/documentreader/webclient/gen/models/parsing_notification_codes.py +235 -523
- regula/documentreader/webclient/gen/models/per_document_config.py +63 -131
- regula/documentreader/webclient/gen/models/photo_ident_item.py +110 -0
- regula/documentreader/webclient/gen/models/photo_ident_result.py +107 -423
- regula/documentreader/webclient/gen/models/point.py +63 -127
- regula/documentreader/webclient/gen/models/point_array.py +65 -97
- regula/documentreader/webclient/gen/models/points_container.py +75 -131
- regula/documentreader/webclient/gen/models/process_params.py +229 -1743
- regula/documentreader/webclient/gen/models/process_params_rfid.py +56 -97
- regula/documentreader/webclient/gen/models/process_request.py +113 -411
- regula/documentreader/webclient/gen/models/process_request_image.py +74 -159
- regula/documentreader/webclient/gen/models/process_response.py +96 -299
- regula/documentreader/webclient/gen/models/process_system_info.py +63 -131
- regula/documentreader/webclient/gen/models/processing_status.py +15 -84
- regula/documentreader/webclient/gen/models/raw_image_container_item.py +83 -0
- regula/documentreader/webclient/gen/models/raw_image_container_list.py +75 -131
- regula/documentreader/webclient/gen/models/rectangle_coordinates.py +71 -187
- regula/documentreader/webclient/gen/models/result.py +49 -133
- regula/documentreader/webclient/gen/models/result_item.py +195 -245
- regula/documentreader/webclient/gen/models/result_mrz_detector.py +93 -0
- regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +83 -0
- regula/documentreader/webclient/gen/models/rfid_a_chip.py +33 -0
- regula/documentreader/webclient/gen/models/rfid_access_control_info.py +90 -0
- regula/documentreader/webclient/gen/models/rfid_access_control_procedure_type.py +35 -0
- regula/documentreader/webclient/gen/models/rfid_access_key.py +87 -0
- regula/documentreader/webclient/gen/models/rfid_application.py +101 -0
- regula/documentreader/webclient/gen/models/rfid_application_type.py +37 -0
- regula/documentreader/webclient/gen/models/rfid_attribute_data.py +81 -0
- regula/documentreader/webclient/gen/models/rfid_attribute_name.py +85 -0
- regula/documentreader/webclient/gen/models/rfid_authentication_procedure_type.py +31 -0
- regula/documentreader/webclient/gen/models/rfid_baud_rate.py +32 -0
- regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py +123 -0
- regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +130 -0
- regula/documentreader/webclient/gen/models/rfid_certificate_origin.py +36 -0
- regula/documentreader/webclient/gen/models/rfid_certificate_type.py +35 -0
- regula/documentreader/webclient/gen/models/rfid_data_file.py +118 -0
- regula/documentreader/webclient/gen/models/rfid_data_file_type.py +119 -0
- regula/documentreader/webclient/gen/models/rfid_data_group_type_tag.py +82 -0
- regula/documentreader/webclient/gen/models/rfid_dg1.py +111 -0
- regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +95 -0
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +120 -0
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field_item.py +85 -0
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +89 -0
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +83 -0
- regula/documentreader/webclient/gen/models/rfid_error_codes.py +141 -0
- regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +90 -0
- regula/documentreader/webclient/gen/models/rfid_location.py +15 -84
- regula/documentreader/webclient/gen/models/rfid_origin.py +71 -192
- regula/documentreader/webclient/gen/models/rfid_password_type.py +34 -0
- regula/documentreader/webclient/gen/models/rfid_pki_extension.py +81 -0
- regula/documentreader/webclient/gen/models/rfid_raw_data.py +81 -0
- regula/documentreader/webclient/gen/models/rfid_security_object.py +96 -0
- regula/documentreader/webclient/gen/models/rfid_session_data.py +150 -0
- regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +133 -0
- regula/documentreader/webclient/gen/models/rfid_terminal.py +84 -0
- regula/documentreader/webclient/gen/models/rfid_terminal_type.py +32 -0
- regula/documentreader/webclient/gen/models/rfid_text_data_result.py +90 -0
- regula/documentreader/webclient/gen/models/rfid_type.py +30 -0
- regula/documentreader/webclient/gen/models/rfid_validity.py +88 -0
- regula/documentreader/webclient/gen/models/rfidpkd_resource_type.py +35 -0
- regula/documentreader/webclient/gen/models/scenario.py +33 -117
- regula/documentreader/webclient/gen/models/security_feature_item.py +102 -0
- regula/documentreader/webclient/gen/models/security_feature_result.py +99 -345
- regula/documentreader/webclient/gen/models/security_feature_type.py +68 -185
- regula/documentreader/webclient/gen/models/security_object_certificates.py +83 -0
- regula/documentreader/webclient/gen/models/source.py +18 -88
- regula/documentreader/webclient/gen/models/source_validity.py +65 -129
- regula/documentreader/webclient/gen/models/status.py +86 -264
- regula/documentreader/webclient/gen/models/status_item.py +83 -0
- regula/documentreader/webclient/gen/models/status_result.py +68 -231
- regula/documentreader/webclient/gen/models/string_item.py +135 -0
- regula/documentreader/webclient/gen/models/string_recognition_result.py +81 -108
- regula/documentreader/webclient/gen/models/symbol.py +79 -0
- regula/documentreader/webclient/gen/models/symbol_candidate.py +72 -143
- regula/documentreader/webclient/gen/models/symbol_estimation_item.py +115 -0
- regula/documentreader/webclient/gen/models/symbol_recognition_result.py +87 -135
- regula/documentreader/webclient/gen/models/t_doc_binary_info.py +93 -0
- regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +83 -0
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +87 -0
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +83 -0
- regula/documentreader/webclient/gen/models/text.py +92 -214
- regula/documentreader/webclient/gen/models/text_available_source.py +67 -157
- regula/documentreader/webclient/gen/models/text_data_result.py +68 -230
- regula/documentreader/webclient/gen/models/text_field.py +115 -357
- regula/documentreader/webclient/gen/models/text_field_type.py +661 -1368
- regula/documentreader/webclient/gen/models/text_field_value.py +105 -307
- regula/documentreader/webclient/gen/models/text_item.py +83 -0
- regula/documentreader/webclient/gen/models/text_post_processing.py +16 -86
- regula/documentreader/webclient/gen/models/text_result.py +68 -231
- regula/documentreader/webclient/gen/models/transaction_image.py +61 -97
- regula/documentreader/webclient/gen/models/transaction_info.py +84 -302
- regula/documentreader/webclient/gen/models/transaction_process_get_response.py +79 -183
- regula/documentreader/webclient/gen/models/transaction_process_request.py +108 -299
- regula/documentreader/webclient/gen/models/transaction_process_response.py +107 -0
- regula/documentreader/webclient/gen/models/transaction_process_response_item.py +79 -0
- regula/documentreader/webclient/gen/models/transaction_process_result.py +93 -0
- regula/documentreader/webclient/gen/models/trf_ft_bytes.py +90 -0
- regula/documentreader/webclient/gen/models/trf_ft_string.py +85 -0
- regula/documentreader/webclient/gen/models/verification_result.py +17 -88
- regula/documentreader/webclient/gen/models/verified_field_map.py +85 -273
- regula/documentreader/webclient/gen/models/visibility.py +17 -88
- regula/documentreader/webclient/gen/models/visual_extended_field_item.py +112 -0
- regula/documentreader/webclient/gen/py.typed +0 -0
- regula/documentreader/webclient/gen/rest.py +132 -174
- {regula_documentreader_webclient-8.1.349rc0.dist-info → regula_documentreader_webclient-8.1.351.dev0.dist-info}/METADATA +6 -4
- regula_documentreader_webclient-8.1.351.dev0.dist-info/RECORD +263 -0
- regula/documentreader/webclient/ext/models/raw_authenticity_result_item.py +0 -27
- regula/documentreader/webclient/ext/models/raw_result_item.py +0 -26
- regula/documentreader/webclient/gen/api/default_api.py +0 -160
- regula/documentreader/webclient/gen/models/authenticity_result_all_of.py +0 -120
- regula/documentreader/webclient/gen/models/byte_array_result_all_of.py +0 -122
- regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py +0 -145
- regula/documentreader/webclient/gen/models/device_info2.py +0 -275
- regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py +0 -119
- regula/documentreader/webclient/gen/models/document_image_result_all_of.py +0 -120
- regula/documentreader/webclient/gen/models/document_position_result_all_of.py +0 -119
- regula/documentreader/webclient/gen/models/document_types_candidates_result_all_of.py +0 -119
- regula/documentreader/webclient/gen/models/encrypted_rcl_result_all_of.py +0 -122
- regula/documentreader/webclient/gen/models/fiber_result_all_of.py +0 -343
- regula/documentreader/webclient/gen/models/graphics_result_all_of.py +0 -119
- regula/documentreader/webclient/gen/models/ident_result_all_of.py +0 -249
- regula/documentreader/webclient/gen/models/image_quality_result_all_of.py +0 -120
- regula/documentreader/webclient/gen/models/images_result_all_of.py +0 -120
- regula/documentreader/webclient/gen/models/in_data_rfid_session.py +0 -121
- regula/documentreader/webclient/gen/models/inline_response200.py +0 -197
- regula/documentreader/webclient/gen/models/inline_response2001.py +0 -333
- regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py +0 -119
- regula/documentreader/webclient/gen/models/license_result_all_of.py +0 -122
- regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py +0 -353
- regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py +0 -327
- regula/documentreader/webclient/gen/models/security_feature_result_all_of.py +0 -249
- regula/documentreader/webclient/gen/models/status_result_all_of.py +0 -120
- regula/documentreader/webclient/gen/models/text_data_result_all_of.py +0 -119
- regula/documentreader/webclient/gen/models/text_result_all_of.py +0 -120
- regula/documentreader/webclient/gen/models/tfdsid_list.py +0 -372
- regula/documentreader/webclient/gen/models/transaction_images_field_value.py +0 -227
- regula/documentreader/webclient/gen/models/transaction_scenario_request.py +0 -119
- regula_documentreader_webclient-8.1.349rc0.dist-info/RECORD +0 -192
- {regula_documentreader_webclient-8.1.349rc0.dist-info → regula_documentreader_webclient-8.1.351.dev0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.1.349rc0.dist-info → regula_documentreader_webclient-8.1.351.dev0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from typing import Optional, Set
|
|
15
|
+
from typing_extensions import Self
|
|
16
|
+
|
|
17
|
+
class RfidPkiExtension(BaseModel):
|
|
18
|
+
"""
|
|
19
|
+
Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string)
|
|
20
|
+
""" # noqa: E501
|
|
21
|
+
type: StrictStr = Field(description="Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string)", alias="Type")
|
|
22
|
+
data: StrictStr = Field(description="Extension binary data. Base64 encoded.", alias="Data")
|
|
23
|
+
__properties: ClassVar[List[str]] = ["Type", "Data"]
|
|
24
|
+
|
|
25
|
+
model_config = ConfigDict(
|
|
26
|
+
populate_by_name=True,
|
|
27
|
+
validate_assignment=True,
|
|
28
|
+
protected_namespaces=(),
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def to_str(self) -> str:
|
|
33
|
+
"""Returns the string representation of the model using alias"""
|
|
34
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
35
|
+
|
|
36
|
+
def to_json(self) -> str:
|
|
37
|
+
"""Returns the JSON representation of the model using alias"""
|
|
38
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
39
|
+
return json.dumps(self.to_dict())
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
43
|
+
"""Create an instance of RfidPkiExtension from a JSON string"""
|
|
44
|
+
return cls.from_dict(json.loads(json_str))
|
|
45
|
+
|
|
46
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
+
"""Return the dictionary representation of the model using alias.
|
|
48
|
+
|
|
49
|
+
This has the following differences from calling pydantic's
|
|
50
|
+
`self.model_dump(by_alias=True)`:
|
|
51
|
+
|
|
52
|
+
* `None` is only added to the output dict for nullable fields that
|
|
53
|
+
were set at model initialization. Other fields with value `None`
|
|
54
|
+
are ignored.
|
|
55
|
+
"""
|
|
56
|
+
excluded_fields: Set[str] = set([
|
|
57
|
+
])
|
|
58
|
+
|
|
59
|
+
_dict = self.model_dump(
|
|
60
|
+
by_alias=True,
|
|
61
|
+
exclude=excluded_fields,
|
|
62
|
+
exclude_none=True,
|
|
63
|
+
)
|
|
64
|
+
return _dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
68
|
+
"""Create an instance of RfidPkiExtension from a dict"""
|
|
69
|
+
if obj is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
if not isinstance(obj, dict):
|
|
73
|
+
return cls.model_validate(obj)
|
|
74
|
+
|
|
75
|
+
_obj = cls.model_validate({
|
|
76
|
+
"Type": obj.get("Type"),
|
|
77
|
+
"Data": obj.get("Data")
|
|
78
|
+
})
|
|
79
|
+
return _obj
|
|
80
|
+
|
|
81
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from typing import Optional, Set
|
|
15
|
+
from typing_extensions import Self
|
|
16
|
+
|
|
17
|
+
class RfidRawData(BaseModel):
|
|
18
|
+
"""
|
|
19
|
+
RfidRawData
|
|
20
|
+
""" # noqa: E501
|
|
21
|
+
data: StrictStr = Field(alias="Data")
|
|
22
|
+
field_type: StrictInt = Field(alias="FieldType")
|
|
23
|
+
__properties: ClassVar[List[str]] = ["Data", "FieldType"]
|
|
24
|
+
|
|
25
|
+
model_config = ConfigDict(
|
|
26
|
+
populate_by_name=True,
|
|
27
|
+
validate_assignment=True,
|
|
28
|
+
protected_namespaces=(),
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def to_str(self) -> str:
|
|
33
|
+
"""Returns the string representation of the model using alias"""
|
|
34
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
35
|
+
|
|
36
|
+
def to_json(self) -> str:
|
|
37
|
+
"""Returns the JSON representation of the model using alias"""
|
|
38
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
39
|
+
return json.dumps(self.to_dict())
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
43
|
+
"""Create an instance of RfidRawData from a JSON string"""
|
|
44
|
+
return cls.from_dict(json.loads(json_str))
|
|
45
|
+
|
|
46
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
+
"""Return the dictionary representation of the model using alias.
|
|
48
|
+
|
|
49
|
+
This has the following differences from calling pydantic's
|
|
50
|
+
`self.model_dump(by_alias=True)`:
|
|
51
|
+
|
|
52
|
+
* `None` is only added to the output dict for nullable fields that
|
|
53
|
+
were set at model initialization. Other fields with value `None`
|
|
54
|
+
are ignored.
|
|
55
|
+
"""
|
|
56
|
+
excluded_fields: Set[str] = set([
|
|
57
|
+
])
|
|
58
|
+
|
|
59
|
+
_dict = self.model_dump(
|
|
60
|
+
by_alias=True,
|
|
61
|
+
exclude=excluded_fields,
|
|
62
|
+
exclude_none=True,
|
|
63
|
+
)
|
|
64
|
+
return _dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
68
|
+
"""Create an instance of RfidRawData from a dict"""
|
|
69
|
+
if obj is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
if not isinstance(obj, dict):
|
|
73
|
+
return cls.model_validate(obj)
|
|
74
|
+
|
|
75
|
+
_obj = cls.model_validate({
|
|
76
|
+
"Data": obj.get("Data"),
|
|
77
|
+
"FieldType": obj.get("FieldType")
|
|
78
|
+
})
|
|
79
|
+
return _obj
|
|
80
|
+
|
|
81
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
14
|
+
from regula.documentreader.webclient.gen.models.parsing_notification_codes import ParsingNotificationCodes
|
|
15
|
+
from regula.documentreader.webclient.gen.models.rfid_signer_info_ex import RfidSignerInfoEx
|
|
16
|
+
from typing import Optional, Set
|
|
17
|
+
from typing_extensions import Self
|
|
18
|
+
|
|
19
|
+
class RfidSecurityObject(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
Structure is used to describe the contents of a single document security object (SO) and the results of its check within the context of the communication session with electronic document
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
version: Union[StrictFloat, StrictInt] = Field(description="Security object version", alias="Version")
|
|
24
|
+
object_type: StrictStr = Field(description="Identifier of the security object", alias="ObjectType")
|
|
25
|
+
file_reference: Union[StrictFloat, StrictInt] = Field(description="Reference to the source file of the security object data", alias="FileReference")
|
|
26
|
+
notifications: List[ParsingNotificationCodes] = Field(description="List of remarks arisen during the analysis of SO data structure.", alias="Notifications")
|
|
27
|
+
signer_infos: List[RfidSignerInfoEx] = Field(description="List of containers to store information about digital signature objects contained in the SO", alias="SignerInfos")
|
|
28
|
+
__properties: ClassVar[List[str]] = ["Version", "ObjectType", "FileReference", "Notifications", "SignerInfos"]
|
|
29
|
+
|
|
30
|
+
model_config = ConfigDict(
|
|
31
|
+
populate_by_name=True,
|
|
32
|
+
validate_assignment=True,
|
|
33
|
+
protected_namespaces=(),
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def to_str(self) -> str:
|
|
38
|
+
"""Returns the string representation of the model using alias"""
|
|
39
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
40
|
+
|
|
41
|
+
def to_json(self) -> str:
|
|
42
|
+
"""Returns the JSON representation of the model using alias"""
|
|
43
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
44
|
+
return json.dumps(self.to_dict())
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
48
|
+
"""Create an instance of RfidSecurityObject from a JSON string"""
|
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
|
50
|
+
|
|
51
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
52
|
+
"""Return the dictionary representation of the model using alias.
|
|
53
|
+
|
|
54
|
+
This has the following differences from calling pydantic's
|
|
55
|
+
`self.model_dump(by_alias=True)`:
|
|
56
|
+
|
|
57
|
+
* `None` is only added to the output dict for nullable fields that
|
|
58
|
+
were set at model initialization. Other fields with value `None`
|
|
59
|
+
are ignored.
|
|
60
|
+
"""
|
|
61
|
+
excluded_fields: Set[str] = set([
|
|
62
|
+
])
|
|
63
|
+
|
|
64
|
+
_dict = self.model_dump(
|
|
65
|
+
by_alias=True,
|
|
66
|
+
exclude=excluded_fields,
|
|
67
|
+
exclude_none=True,
|
|
68
|
+
)
|
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of each item in signer_infos (list)
|
|
70
|
+
_items = []
|
|
71
|
+
if self.signer_infos:
|
|
72
|
+
for _item_signer_infos in self.signer_infos:
|
|
73
|
+
if _item_signer_infos:
|
|
74
|
+
_items.append(_item_signer_infos.to_dict())
|
|
75
|
+
_dict['SignerInfos'] = _items
|
|
76
|
+
return _dict
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
+
"""Create an instance of RfidSecurityObject from a dict"""
|
|
81
|
+
if obj is None:
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
if not isinstance(obj, dict):
|
|
85
|
+
return cls.model_validate(obj)
|
|
86
|
+
|
|
87
|
+
_obj = cls.model_validate({
|
|
88
|
+
"Version": obj.get("Version"),
|
|
89
|
+
"ObjectType": obj.get("ObjectType"),
|
|
90
|
+
"FileReference": obj.get("FileReference"),
|
|
91
|
+
"Notifications": obj.get("Notifications"),
|
|
92
|
+
"SignerInfos": [RfidSignerInfoEx.from_dict(_item) for _item in obj["SignerInfos"]] if obj.get("SignerInfos") is not None else None
|
|
93
|
+
})
|
|
94
|
+
return _obj
|
|
95
|
+
|
|
96
|
+
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
14
|
+
from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
15
|
+
from regula.documentreader.webclient.gen.models.rfid_access_control_info import RfidAccessControlInfo
|
|
16
|
+
from regula.documentreader.webclient.gen.models.rfid_access_key import RfidAccessKey
|
|
17
|
+
from regula.documentreader.webclient.gen.models.rfid_application import RfidApplication
|
|
18
|
+
from regula.documentreader.webclient.gen.models.rfid_authentication_procedure_type import RfidAuthenticationProcedureType
|
|
19
|
+
from regula.documentreader.webclient.gen.models.rfid_card_properties_ext import RfidCardPropertiesExt
|
|
20
|
+
from regula.documentreader.webclient.gen.models.rfid_error_codes import RFIDErrorCodes
|
|
21
|
+
from regula.documentreader.webclient.gen.models.rfid_security_object import RfidSecurityObject
|
|
22
|
+
from regula.documentreader.webclient.gen.models.rfid_terminal import RfidTerminal
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class RfidSessionData(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Structure is used to describe the results of work with the SDK within the context of the current communication session with electronic document
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
virtual_mode: Optional[StrictStr] = Field(default=None, description="Sign of virtual session when working with loaded data from a previous communication session with the electronic document", alias="VirtualMode")
|
|
31
|
+
sdk_version: Optional[StrictStr] = Field(default=None, description="Text SDKVersion value in format A.B (e.g. 3.1)", alias="SDKVersion")
|
|
32
|
+
driver_version: Optional[StrictStr] = Field(default=None, description="Text DriverVersion value in format A.B.C.D (e.g. 6.2.5.4)", alias="DriverVersion")
|
|
33
|
+
firmware_version: Optional[StrictStr] = Field(default=None, description="Text FirmwareVersion value in format A.B (e.g. 5.19)", alias="FirmwareVersion")
|
|
34
|
+
applications: List[RfidApplication] = Field(description="List of containers to store information about the involved applications of electronic document", alias="Applications")
|
|
35
|
+
access_controls: List[RfidAccessControlInfo] = Field(description="List of containers to store information about the supported procedures of authentication and secure data access within the context of the session", alias="AccessControls")
|
|
36
|
+
card_properties: RfidCardPropertiesExt = Field(alias="CardProperties")
|
|
37
|
+
ext_le_support: RFIDErrorCodes = Field(alias="ExtLeSupport")
|
|
38
|
+
process_time: Union[StrictFloat, StrictInt] = Field(description="Time of processing, milliseconds", alias="ProcessTime")
|
|
39
|
+
root_files: List[Any] = Field(description="List of containers to store information about the read files of the root Master File", alias="RootFiles")
|
|
40
|
+
total_bytes_sent: Union[StrictFloat, StrictInt] = Field(description="Total number of bytes transmitted to the RFID-chip during the whole session", alias="TotalBytesSent")
|
|
41
|
+
total_bytes_received: Union[StrictFloat, StrictInt] = Field(description="Total number of bytes received from the RFID-chip during the whole session", alias="TotalBytesReceived")
|
|
42
|
+
session_key: RfidAccessKey = Field(alias="Session_key")
|
|
43
|
+
session_terminal: RfidTerminal = Field(alias="Session_terminal")
|
|
44
|
+
session_procedure: RfidAuthenticationProcedureType = Field(alias="Session_procedure")
|
|
45
|
+
security_objects: List[RfidSecurityObject] = Field(description="List of containers to store information about the detected document security objects", alias="SecurityObjects")
|
|
46
|
+
status: Optional[CheckResult] = Field(default=None, alias="Status")
|
|
47
|
+
__properties: ClassVar[List[str]] = ["VirtualMode", "SDKVersion", "DriverVersion", "FirmwareVersion", "Applications", "AccessControls", "CardProperties", "ExtLeSupport", "ProcessTime", "RootFiles", "TotalBytesSent", "TotalBytesReceived", "Session_key", "Session_terminal", "Session_procedure", "SecurityObjects", "Status"]
|
|
48
|
+
|
|
49
|
+
model_config = ConfigDict(
|
|
50
|
+
populate_by_name=True,
|
|
51
|
+
validate_assignment=True,
|
|
52
|
+
protected_namespaces=(),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def to_str(self) -> str:
|
|
57
|
+
"""Returns the string representation of the model using alias"""
|
|
58
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
59
|
+
|
|
60
|
+
def to_json(self) -> str:
|
|
61
|
+
"""Returns the JSON representation of the model using alias"""
|
|
62
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
63
|
+
return json.dumps(self.to_dict())
|
|
64
|
+
|
|
65
|
+
@classmethod
|
|
66
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
67
|
+
"""Create an instance of RfidSessionData from a JSON string"""
|
|
68
|
+
return cls.from_dict(json.loads(json_str))
|
|
69
|
+
|
|
70
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
71
|
+
"""Return the dictionary representation of the model using alias.
|
|
72
|
+
|
|
73
|
+
This has the following differences from calling pydantic's
|
|
74
|
+
`self.model_dump(by_alias=True)`:
|
|
75
|
+
|
|
76
|
+
* `None` is only added to the output dict for nullable fields that
|
|
77
|
+
were set at model initialization. Other fields with value `None`
|
|
78
|
+
are ignored.
|
|
79
|
+
"""
|
|
80
|
+
excluded_fields: Set[str] = set([
|
|
81
|
+
])
|
|
82
|
+
|
|
83
|
+
_dict = self.model_dump(
|
|
84
|
+
by_alias=True,
|
|
85
|
+
exclude=excluded_fields,
|
|
86
|
+
exclude_none=True,
|
|
87
|
+
)
|
|
88
|
+
# override the default output from pydantic by calling `to_dict()` of each item in applications (list)
|
|
89
|
+
_items = []
|
|
90
|
+
if self.applications:
|
|
91
|
+
for _item_applications in self.applications:
|
|
92
|
+
if _item_applications:
|
|
93
|
+
_items.append(_item_applications.to_dict())
|
|
94
|
+
_dict['Applications'] = _items
|
|
95
|
+
# override the default output from pydantic by calling `to_dict()` of each item in access_controls (list)
|
|
96
|
+
_items = []
|
|
97
|
+
if self.access_controls:
|
|
98
|
+
for _item_access_controls in self.access_controls:
|
|
99
|
+
if _item_access_controls:
|
|
100
|
+
_items.append(_item_access_controls.to_dict())
|
|
101
|
+
_dict['AccessControls'] = _items
|
|
102
|
+
# override the default output from pydantic by calling `to_dict()` of card_properties
|
|
103
|
+
if self.card_properties:
|
|
104
|
+
_dict['CardProperties'] = self.card_properties.to_dict()
|
|
105
|
+
# override the default output from pydantic by calling `to_dict()` of session_key
|
|
106
|
+
if self.session_key:
|
|
107
|
+
_dict['Session_key'] = self.session_key.to_dict()
|
|
108
|
+
# override the default output from pydantic by calling `to_dict()` of session_terminal
|
|
109
|
+
if self.session_terminal:
|
|
110
|
+
_dict['Session_terminal'] = self.session_terminal.to_dict()
|
|
111
|
+
# override the default output from pydantic by calling `to_dict()` of each item in security_objects (list)
|
|
112
|
+
_items = []
|
|
113
|
+
if self.security_objects:
|
|
114
|
+
for _item_security_objects in self.security_objects:
|
|
115
|
+
if _item_security_objects:
|
|
116
|
+
_items.append(_item_security_objects.to_dict())
|
|
117
|
+
_dict['SecurityObjects'] = _items
|
|
118
|
+
return _dict
|
|
119
|
+
|
|
120
|
+
@classmethod
|
|
121
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
122
|
+
"""Create an instance of RfidSessionData from a dict"""
|
|
123
|
+
if obj is None:
|
|
124
|
+
return None
|
|
125
|
+
|
|
126
|
+
if not isinstance(obj, dict):
|
|
127
|
+
return cls.model_validate(obj)
|
|
128
|
+
|
|
129
|
+
_obj = cls.model_validate({
|
|
130
|
+
"VirtualMode": obj.get("VirtualMode"),
|
|
131
|
+
"SDKVersion": obj.get("SDKVersion"),
|
|
132
|
+
"DriverVersion": obj.get("DriverVersion"),
|
|
133
|
+
"FirmwareVersion": obj.get("FirmwareVersion"),
|
|
134
|
+
"Applications": [RfidApplication.from_dict(_item) for _item in obj["Applications"]] if obj.get("Applications") is not None else None,
|
|
135
|
+
"AccessControls": [RfidAccessControlInfo.from_dict(_item) for _item in obj["AccessControls"]] if obj.get("AccessControls") is not None else None,
|
|
136
|
+
"CardProperties": RfidCardPropertiesExt.from_dict(obj["CardProperties"]) if obj.get("CardProperties") is not None else None,
|
|
137
|
+
"ExtLeSupport": obj.get("ExtLeSupport"),
|
|
138
|
+
"ProcessTime": obj.get("ProcessTime"),
|
|
139
|
+
"RootFiles": obj.get("RootFiles"),
|
|
140
|
+
"TotalBytesSent": obj.get("TotalBytesSent"),
|
|
141
|
+
"TotalBytesReceived": obj.get("TotalBytesReceived"),
|
|
142
|
+
"Session_key": RfidAccessKey.from_dict(obj["Session_key"]) if obj.get("Session_key") is not None else None,
|
|
143
|
+
"Session_terminal": RfidTerminal.from_dict(obj["Session_terminal"]) if obj.get("Session_terminal") is not None else None,
|
|
144
|
+
"Session_procedure": obj.get("Session_procedure"),
|
|
145
|
+
"SecurityObjects": [RfidSecurityObject.from_dict(_item) for _item in obj["SecurityObjects"]] if obj.get("SecurityObjects") is not None else None,
|
|
146
|
+
"Status": obj.get("Status")
|
|
147
|
+
})
|
|
148
|
+
return _obj
|
|
149
|
+
|
|
150
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
14
|
+
from regula.documentreader.webclient.gen.models.parsing_notification_codes import ParsingNotificationCodes
|
|
15
|
+
from regula.documentreader.webclient.gen.models.rfid_attribute_data import RfidAttributeData
|
|
16
|
+
from regula.documentreader.webclient.gen.models.rfid_certificate_ex import RfidCertificateEx
|
|
17
|
+
from regula.documentreader.webclient.gen.models.rfid_distinguished_name import RfidDistinguishedName
|
|
18
|
+
from regula.documentreader.webclient.gen.models.rfid_error_codes import RFIDErrorCodes
|
|
19
|
+
from regula.documentreader.webclient.gen.models.trf_ft_bytes import TrfFtBytes
|
|
20
|
+
from typing import Optional, Set
|
|
21
|
+
from typing_extensions import Self
|
|
22
|
+
|
|
23
|
+
class RfidSignerInfoEx(BaseModel):
|
|
24
|
+
"""
|
|
25
|
+
Structure is used to describe the contents of a single copy of digital signature of the document security object and the results of its check within the context of the communication session with electronic document
|
|
26
|
+
""" # noqa: E501
|
|
27
|
+
version: Union[StrictFloat, StrictInt] = Field(description="Version of SignerInfo ASN.1 structure", alias="Version")
|
|
28
|
+
issuer: RfidDistinguishedName = Field(alias="Issuer")
|
|
29
|
+
serial_number: TrfFtBytes = Field(alias="SerialNumber")
|
|
30
|
+
subject_key_identifier: TrfFtBytes = Field(alias="SubjectKeyIdentifier")
|
|
31
|
+
digest_algorithm: StrictStr = Field(description="Hash algorithm identifier (OID) for digital signature generation", alias="DigestAlgorithm")
|
|
32
|
+
signed_attributes: List[RfidAttributeData] = Field(description="List of the signed attributes", alias="SignedAttributes")
|
|
33
|
+
signature_algorithm: StrictStr = Field(description="Digital signature algorithm identifier (OID)", alias="SignatureAlgorithm")
|
|
34
|
+
signature: TrfFtBytes = Field(alias="Signature")
|
|
35
|
+
pa_status: RFIDErrorCodes = Field(alias="PA_Status")
|
|
36
|
+
certificate_chain: List[RfidCertificateEx] = Field(description="Certificate chain, used for the digital signature verification.", alias="CertificateChain")
|
|
37
|
+
data_to_hash: StrictStr = Field(description="Binary data array used to calculate the hash value for digital signature verification. Base64 encoded.", alias="DataToHash")
|
|
38
|
+
notifications: List[ParsingNotificationCodes] = Field(alias="Notifications")
|
|
39
|
+
__properties: ClassVar[List[str]] = ["Version", "Issuer", "SerialNumber", "SubjectKeyIdentifier", "DigestAlgorithm", "SignedAttributes", "SignatureAlgorithm", "Signature", "PA_Status", "CertificateChain", "DataToHash", "Notifications"]
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
populate_by_name=True,
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
55
|
+
return json.dumps(self.to_dict())
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
+
"""Create an instance of RfidSignerInfoEx from a JSON string"""
|
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
|
64
|
+
|
|
65
|
+
This has the following differences from calling pydantic's
|
|
66
|
+
`self.model_dump(by_alias=True)`:
|
|
67
|
+
|
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
|
69
|
+
were set at model initialization. Other fields with value `None`
|
|
70
|
+
are ignored.
|
|
71
|
+
"""
|
|
72
|
+
excluded_fields: Set[str] = set([
|
|
73
|
+
])
|
|
74
|
+
|
|
75
|
+
_dict = self.model_dump(
|
|
76
|
+
by_alias=True,
|
|
77
|
+
exclude=excluded_fields,
|
|
78
|
+
exclude_none=True,
|
|
79
|
+
)
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of issuer
|
|
81
|
+
if self.issuer:
|
|
82
|
+
_dict['Issuer'] = self.issuer.to_dict()
|
|
83
|
+
# override the default output from pydantic by calling `to_dict()` of serial_number
|
|
84
|
+
if self.serial_number:
|
|
85
|
+
_dict['SerialNumber'] = self.serial_number.to_dict()
|
|
86
|
+
# override the default output from pydantic by calling `to_dict()` of subject_key_identifier
|
|
87
|
+
if self.subject_key_identifier:
|
|
88
|
+
_dict['SubjectKeyIdentifier'] = self.subject_key_identifier.to_dict()
|
|
89
|
+
# override the default output from pydantic by calling `to_dict()` of each item in signed_attributes (list)
|
|
90
|
+
_items = []
|
|
91
|
+
if self.signed_attributes:
|
|
92
|
+
for _item_signed_attributes in self.signed_attributes:
|
|
93
|
+
if _item_signed_attributes:
|
|
94
|
+
_items.append(_item_signed_attributes.to_dict())
|
|
95
|
+
_dict['SignedAttributes'] = _items
|
|
96
|
+
# override the default output from pydantic by calling `to_dict()` of signature
|
|
97
|
+
if self.signature:
|
|
98
|
+
_dict['Signature'] = self.signature.to_dict()
|
|
99
|
+
# override the default output from pydantic by calling `to_dict()` of each item in certificate_chain (list)
|
|
100
|
+
_items = []
|
|
101
|
+
if self.certificate_chain:
|
|
102
|
+
for _item_certificate_chain in self.certificate_chain:
|
|
103
|
+
if _item_certificate_chain:
|
|
104
|
+
_items.append(_item_certificate_chain.to_dict())
|
|
105
|
+
_dict['CertificateChain'] = _items
|
|
106
|
+
return _dict
|
|
107
|
+
|
|
108
|
+
@classmethod
|
|
109
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
110
|
+
"""Create an instance of RfidSignerInfoEx from a dict"""
|
|
111
|
+
if obj is None:
|
|
112
|
+
return None
|
|
113
|
+
|
|
114
|
+
if not isinstance(obj, dict):
|
|
115
|
+
return cls.model_validate(obj)
|
|
116
|
+
|
|
117
|
+
_obj = cls.model_validate({
|
|
118
|
+
"Version": obj.get("Version"),
|
|
119
|
+
"Issuer": RfidDistinguishedName.from_dict(obj["Issuer"]) if obj.get("Issuer") is not None else None,
|
|
120
|
+
"SerialNumber": TrfFtBytes.from_dict(obj["SerialNumber"]) if obj.get("SerialNumber") is not None else None,
|
|
121
|
+
"SubjectKeyIdentifier": TrfFtBytes.from_dict(obj["SubjectKeyIdentifier"]) if obj.get("SubjectKeyIdentifier") is not None else None,
|
|
122
|
+
"DigestAlgorithm": obj.get("DigestAlgorithm"),
|
|
123
|
+
"SignedAttributes": [RfidAttributeData.from_dict(_item) for _item in obj["SignedAttributes"]] if obj.get("SignedAttributes") is not None else None,
|
|
124
|
+
"SignatureAlgorithm": obj.get("SignatureAlgorithm"),
|
|
125
|
+
"Signature": TrfFtBytes.from_dict(obj["Signature"]) if obj.get("Signature") is not None else None,
|
|
126
|
+
"PA_Status": obj.get("PA_Status"),
|
|
127
|
+
"CertificateChain": [RfidCertificateEx.from_dict(_item) for _item in obj["CertificateChain"]] if obj.get("CertificateChain") is not None else None,
|
|
128
|
+
"DataToHash": obj.get("DataToHash"),
|
|
129
|
+
"Notifications": obj.get("Notifications")
|
|
130
|
+
})
|
|
131
|
+
return _obj
|
|
132
|
+
|
|
133
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
14
|
+
from regula.documentreader.webclient.gen.models.rfid_terminal_type import RfidTerminalType
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
|
|
18
|
+
class RfidTerminal(BaseModel):
|
|
19
|
+
"""
|
|
20
|
+
Structure is used to describe the terminal type within the context of the communication session with electronic document
|
|
21
|
+
""" # noqa: E501
|
|
22
|
+
term_type: RfidTerminalType = Field(alias="TermType")
|
|
23
|
+
auth_req: Union[StrictFloat, StrictInt] = Field(description="Declared (set) combination of flags of access rights to the functionality of the document (combination of eRfidTerminalAuthorizationRequirement values)", alias="AuthReq")
|
|
24
|
+
auth_req2: Union[StrictFloat, StrictInt] = Field(description="Declared (set) combination of flags of access rights to the functionality of the document (combination of RfidTerminalAuthorizationRequirement values)", alias="AuthReq2")
|
|
25
|
+
__properties: ClassVar[List[str]] = ["TermType", "AuthReq", "AuthReq2"]
|
|
26
|
+
|
|
27
|
+
model_config = ConfigDict(
|
|
28
|
+
populate_by_name=True,
|
|
29
|
+
validate_assignment=True,
|
|
30
|
+
protected_namespaces=(),
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def to_str(self) -> str:
|
|
35
|
+
"""Returns the string representation of the model using alias"""
|
|
36
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
37
|
+
|
|
38
|
+
def to_json(self) -> str:
|
|
39
|
+
"""Returns the JSON representation of the model using alias"""
|
|
40
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
41
|
+
return json.dumps(self.to_dict())
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
45
|
+
"""Create an instance of RfidTerminal from a JSON string"""
|
|
46
|
+
return cls.from_dict(json.loads(json_str))
|
|
47
|
+
|
|
48
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
49
|
+
"""Return the dictionary representation of the model using alias.
|
|
50
|
+
|
|
51
|
+
This has the following differences from calling pydantic's
|
|
52
|
+
`self.model_dump(by_alias=True)`:
|
|
53
|
+
|
|
54
|
+
* `None` is only added to the output dict for nullable fields that
|
|
55
|
+
were set at model initialization. Other fields with value `None`
|
|
56
|
+
are ignored.
|
|
57
|
+
"""
|
|
58
|
+
excluded_fields: Set[str] = set([
|
|
59
|
+
])
|
|
60
|
+
|
|
61
|
+
_dict = self.model_dump(
|
|
62
|
+
by_alias=True,
|
|
63
|
+
exclude=excluded_fields,
|
|
64
|
+
exclude_none=True,
|
|
65
|
+
)
|
|
66
|
+
return _dict
|
|
67
|
+
|
|
68
|
+
@classmethod
|
|
69
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
70
|
+
"""Create an instance of RfidTerminal from a dict"""
|
|
71
|
+
if obj is None:
|
|
72
|
+
return None
|
|
73
|
+
|
|
74
|
+
if not isinstance(obj, dict):
|
|
75
|
+
return cls.model_validate(obj)
|
|
76
|
+
|
|
77
|
+
_obj = cls.model_validate({
|
|
78
|
+
"TermType": obj.get("TermType"),
|
|
79
|
+
"AuthReq": obj.get("AuthReq"),
|
|
80
|
+
"AuthReq2": obj.get("AuthReq2")
|
|
81
|
+
})
|
|
82
|
+
return _obj
|
|
83
|
+
|
|
84
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import json
|
|
9
|
+
from enum import Enum
|
|
10
|
+
from typing_extensions import Self
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class RfidTerminalType(int, Enum):
|
|
14
|
+
"""
|
|
15
|
+
Enumeration contains a set of constants that define the type of terminal within the context of the communication session with electronic document
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
"""
|
|
19
|
+
allowed enum values
|
|
20
|
+
"""
|
|
21
|
+
UNDEFINED = 0
|
|
22
|
+
INSPECTION_SYSTEM = 1
|
|
23
|
+
AUTHENTICATION_TERMINAL = 2
|
|
24
|
+
SIGNATURE_TERMINAL = 3
|
|
25
|
+
UNAUTHENTICATED_TERMINAL = 4
|
|
26
|
+
|
|
27
|
+
@classmethod
|
|
28
|
+
def from_json(cls, json_str: str) -> Self:
|
|
29
|
+
"""Create an instance of RfidTerminalType from a JSON string"""
|
|
30
|
+
return cls(json.loads(json_str))
|
|
31
|
+
|
|
32
|
+
|