regula-documentreader-webclient 8.3.480.dev0__py3-none-any.whl → 8.4.587.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/api/document_reader_api.py +18 -4
- regula/documentreader/webclient/gen/__init__.py +755 -239
- regula/documentreader/webclient/gen/api/__init__.py +20 -1
- regula/documentreader/webclient/gen/api/resources_api.py +270 -0
- regula/documentreader/webclient/gen/api/transaction_api.py +33 -15
- regula/documentreader/webclient/gen/api_client.py +8 -1
- regula/documentreader/webclient/gen/models/__init__.py +251 -2
- regula/documentreader/webclient/gen/models/area_array.py +6 -3
- regula/documentreader/webclient/gen/models/area_container.py +6 -3
- regula/documentreader/webclient/gen/models/auth_params.py +19 -16
- regula/documentreader/webclient/gen/models/authenticity_check_list.py +5 -2
- regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/authenticity_check_result.py +7 -4
- regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +7 -4
- regula/documentreader/webclient/gen/models/authenticity_result.py +4 -1
- regula/documentreader/webclient/gen/models/barcode_position_item.py +86 -0
- regula/documentreader/webclient/gen/models/barcode_position_result.py +93 -0
- regula/documentreader/webclient/gen/models/bc_pdf417_info.py +9 -6
- regula/documentreader/webclient/gen/models/bc_roidetect.py +7 -4
- regula/documentreader/webclient/gen/models/binary_data.py +67 -64
- regula/documentreader/webclient/gen/models/byte_array_item.py +4 -1
- regula/documentreader/webclient/gen/models/byte_array_result.py +4 -1
- regula/documentreader/webclient/gen/models/candidates_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/certificate_data.py +5 -2
- regula/documentreader/webclient/gen/models/check_diagnose.py +2 -0
- regula/documentreader/webclient/gen/models/chosen_document_type.py +15 -12
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +5 -2
- regula/documentreader/webclient/gen/models/container_list.py +5 -2
- regula/documentreader/webclient/gen/models/container_list_list_inner.py +34 -20
- regula/documentreader/webclient/gen/models/cross_source_value_comparison.py +6 -3
- regula/documentreader/webclient/gen/models/data_module.py +8 -5
- regula/documentreader/webclient/gen/models/database_document.py +111 -0
- regula/documentreader/webclient/gen/models/database_document_list.py +90 -0
- regula/documentreader/webclient/gen/models/details_optical.py +12 -9
- regula/documentreader/webclient/gen/models/details_rfid.py +10 -7
- regula/documentreader/webclient/gen/models/device_info.py +13 -10
- regula/documentreader/webclient/gen/models/device_info_documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/doc_bar_code_info.py +4 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +5 -2
- regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +16 -13
- regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +5 -2
- regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/document_binary_info_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_image.py +5 -2
- regula/documentreader/webclient/gen/models/document_image_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_position.py +18 -15
- regula/documentreader/webclient/gen/models/document_position_item.py +4 -1
- regula/documentreader/webclient/gen/models/document_position_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_types_candidates.py +5 -2
- regula/documentreader/webclient/gen/models/document_types_candidates_list.py +5 -2
- regula/documentreader/webclient/gen/models/document_types_candidates_result.py +4 -1
- regula/documentreader/webclient/gen/models/documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/encrypted_rcl_item.py +4 -1
- regula/documentreader/webclient/gen/models/encrypted_rcl_result.py +4 -1
- regula/documentreader/webclient/gen/models/error_coordinates.py +7 -4
- regula/documentreader/webclient/gen/models/face_api.py +13 -10
- regula/documentreader/webclient/gen/models/face_api_search.py +7 -4
- regula/documentreader/webclient/gen/models/face_detection.py +8 -5
- regula/documentreader/webclient/gen/models/face_detection_item.py +4 -1
- regula/documentreader/webclient/gen/models/face_detection_result.py +4 -1
- regula/documentreader/webclient/gen/models/face_item.py +11 -8
- regula/documentreader/webclient/gen/models/fdsid_list.py +15 -12
- regula/documentreader/webclient/gen/models/fiber_item.py +12 -9
- regula/documentreader/webclient/gen/models/fiber_result.py +12 -9
- regula/documentreader/webclient/gen/models/field_item.py +9 -6
- regula/documentreader/webclient/gen/models/file_image.py +5 -2
- regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py +8 -4
- regula/documentreader/webclient/gen/models/glares_check_params.py +84 -0
- regula/documentreader/webclient/gen/models/graph_data.py +10 -7
- regula/documentreader/webclient/gen/models/graphic_field.py +7 -4
- regula/documentreader/webclient/gen/models/graphic_fields_list.py +5 -2
- regula/documentreader/webclient/gen/models/graphics_result.py +4 -1
- regula/documentreader/webclient/gen/models/healthcheck.py +12 -9
- regula/documentreader/webclient/gen/models/healthcheck_documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/ident_item.py +10 -7
- regula/documentreader/webclient/gen/models/ident_result.py +10 -7
- regula/documentreader/webclient/gen/models/image_data.py +5 -2
- regula/documentreader/webclient/gen/models/image_qa.py +20 -11
- regula/documentreader/webclient/gen/models/image_quality_check.py +10 -7
- regula/documentreader/webclient/gen/models/image_quality_check_list.py +6 -3
- regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/image_quality_result.py +4 -1
- regula/documentreader/webclient/gen/models/image_transaction_data.py +4 -1
- regula/documentreader/webclient/gen/models/images.py +7 -4
- regula/documentreader/webclient/gen/models/images_available_source.py +5 -2
- regula/documentreader/webclient/gen/models/images_field.py +7 -4
- regula/documentreader/webclient/gen/models/images_field_value.py +12 -9
- regula/documentreader/webclient/gen/models/images_item.py +4 -1
- regula/documentreader/webclient/gen/models/images_result.py +4 -1
- regula/documentreader/webclient/gen/models/in_data.py +5 -2
- regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py +7 -4
- regula/documentreader/webclient/gen/models/in_data_video.py +5 -2
- regula/documentreader/webclient/gen/models/lexical_analysis_result.py +4 -1
- regula/documentreader/webclient/gen/models/license_item.py +4 -1
- regula/documentreader/webclient/gen/models/license_result.py +4 -1
- regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +5 -2
- regula/documentreader/webclient/gen/models/list_verified_fields.py +6 -3
- regula/documentreader/webclient/gen/models/list_verified_fields_item.py +4 -1
- regula/documentreader/webclient/gen/models/liveness_params.py +10 -7
- regula/documentreader/webclient/gen/models/mrz_detector_result.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_position_item.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_position_result.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_rows_item.py +6 -3
- regula/documentreader/webclient/gen/models/mrz_test_quality.py +13 -10
- regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +4 -1
- regula/documentreader/webclient/gen/models/ocr_security_text_item.py +14 -11
- regula/documentreader/webclient/gen/models/ocr_security_text_result.py +14 -11
- regula/documentreader/webclient/gen/models/one_candidate.py +15 -12
- regula/documentreader/webclient/gen/models/one_candidate_item.py +5 -2
- regula/documentreader/webclient/gen/models/original_symbol.py +6 -3
- regula/documentreader/webclient/gen/models/out_data.py +5 -2
- regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py +8 -5
- regula/documentreader/webclient/gen/models/p_array_field.py +13 -10
- regula/documentreader/webclient/gen/models/parsed_data.py +4 -1
- regula/documentreader/webclient/gen/models/per_document_config.py +5 -2
- regula/documentreader/webclient/gen/models/photo_ident_item.py +12 -9
- regula/documentreader/webclient/gen/models/photo_ident_result.py +12 -9
- regula/documentreader/webclient/gen/models/point.py +5 -2
- regula/documentreader/webclient/gen/models/point_array.py +4 -1
- regula/documentreader/webclient/gen/models/points_container.py +5 -2
- regula/documentreader/webclient/gen/models/process_params.py +72 -67
- regula/documentreader/webclient/gen/models/process_params_rfid.py +4 -1
- regula/documentreader/webclient/gen/models/process_request.py +15 -12
- regula/documentreader/webclient/gen/models/process_request_image.py +6 -3
- regula/documentreader/webclient/gen/models/process_response.py +13 -10
- regula/documentreader/webclient/gen/models/process_system_info.py +5 -2
- regula/documentreader/webclient/gen/models/raw_image_container_item.py +4 -1
- regula/documentreader/webclient/gen/models/raw_image_container_list.py +5 -2
- regula/documentreader/webclient/gen/models/rectangle_coordinates.py +7 -4
- regula/documentreader/webclient/gen/models/result_item.py +14 -11
- regula/documentreader/webclient/gen/models/result_mrz_detector.py +7 -4
- regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_access_control_info.py +8 -5
- regula/documentreader/webclient/gen/models/rfid_access_key.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_application.py +10 -7
- regula/documentreader/webclient/gen/models/rfid_application_type.py +1 -2
- regula/documentreader/webclient/gen/models/rfid_attribute_data.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_attribute_name.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py +17 -14
- regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +16 -13
- regula/documentreader/webclient/gen/models/rfid_data_file.py +15 -12
- regula/documentreader/webclient/gen/models/rfid_dg1.py +19 -17
- regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +6 -3
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +19 -16
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field_item.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_origin.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_pki_extension.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_raw_data.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_security_object.py +8 -5
- regula/documentreader/webclient/gen/models/rfid_session_data.py +20 -17
- regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +15 -12
- regula/documentreader/webclient/gen/models/rfid_terminal.py +6 -3
- regula/documentreader/webclient/gen/models/rfid_text_data_result.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_validity.py +5 -2
- regula/documentreader/webclient/gen/models/security_feature_item.py +9 -6
- regula/documentreader/webclient/gen/models/security_feature_result.py +9 -6
- regula/documentreader/webclient/gen/models/security_feature_type.py +2 -0
- regula/documentreader/webclient/gen/models/security_object_certificates.py +4 -1
- regula/documentreader/webclient/gen/models/source.py +2 -0
- regula/documentreader/webclient/gen/models/source_validity.py +5 -2
- regula/documentreader/webclient/gen/models/status.py +10 -7
- regula/documentreader/webclient/gen/models/status_item.py +4 -1
- regula/documentreader/webclient/gen/models/status_result.py +4 -1
- regula/documentreader/webclient/gen/models/string_item.py +20 -17
- regula/documentreader/webclient/gen/models/string_recognition_result.py +8 -5
- regula/documentreader/webclient/gen/models/symbol.py +4 -1
- regula/documentreader/webclient/gen/models/symbol_candidate.py +7 -4
- regula/documentreader/webclient/gen/models/symbol_estimation_item.py +20 -17
- regula/documentreader/webclient/gen/models/symbol_recognition_result.py +8 -5
- regula/documentreader/webclient/gen/models/t_doc_binary_info.py +5 -2
- regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +4 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/text.py +9 -6
- regula/documentreader/webclient/gen/models/text_available_source.py +6 -3
- regula/documentreader/webclient/gen/models/text_data_result.py +4 -1
- regula/documentreader/webclient/gen/models/text_field.py +14 -11
- regula/documentreader/webclient/gen/models/text_field_value.py +13 -10
- regula/documentreader/webclient/gen/models/text_item.py +4 -1
- regula/documentreader/webclient/gen/models/text_result.py +4 -1
- regula/documentreader/webclient/gen/models/transaction_image.py +4 -1
- regula/documentreader/webclient/gen/models/transaction_info.py +11 -8
- regula/documentreader/webclient/gen/models/transaction_process_get_response.py +8 -4
- regula/documentreader/webclient/gen/models/transaction_process_request.py +14 -11
- regula/documentreader/webclient/gen/models/transaction_process_result.py +8 -4
- regula/documentreader/webclient/gen/models/trf_ft_bytes.py +7 -4
- regula/documentreader/webclient/gen/models/trf_ft_string.py +7 -4
- regula/documentreader/webclient/gen/models/verified_field_map.py +10 -7
- regula/documentreader/webclient/gen/models/visual_extended_field_item.py +15 -12
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/METADATA +2 -1
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/RECORD +200 -194
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/top_level.txt +0 -0
|
@@ -10,6 +10,7 @@ import pprint
|
|
|
10
10
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
|
|
11
11
|
from typing import Any, List, Optional
|
|
12
12
|
from regula.documentreader.webclient.gen.models.authenticity_result import AuthenticityResult
|
|
13
|
+
from regula.documentreader.webclient.gen.models.barcode_position_result import BarcodePositionResult
|
|
13
14
|
from regula.documentreader.webclient.gen.models.byte_array_result import ByteArrayResult
|
|
14
15
|
from regula.documentreader.webclient.gen.models.chosen_document_type_result import ChosenDocumentTypeResult
|
|
15
16
|
from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo
|
|
@@ -36,7 +37,7 @@ from pydantic import StrictStr, Field
|
|
|
36
37
|
from typing import Union, List, Set, Optional, Dict
|
|
37
38
|
from typing_extensions import Literal, Self
|
|
38
39
|
|
|
39
|
-
CONTAINERLISTLISTINNER_ONE_OF_SCHEMAS = ["AuthenticityResult", "ByteArrayResult", "ChosenDocumentTypeResult", "DocBarCodeInfo", "DocumentBinaryInfoResult", "DocumentImageResult", "DocumentPositionResult", "DocumentTypesCandidatesResult", "EncryptedRCLResult", "FaceDetectionResult", "GraphicsResult", "ImageQualityResult", "ImagesResult", "LexicalAnalysisResult", "LicenseResult", "MRZDetectorResult", "MRZPositionResult", "MRZTestQualityResult", "RFIDGraphicsInfoResult", "RFIDTextDataResult", "StatusResult", "TextDataResult", "TextResult"]
|
|
40
|
+
CONTAINERLISTLISTINNER_ONE_OF_SCHEMAS = ["AuthenticityResult", "BarcodePositionResult", "ByteArrayResult", "ChosenDocumentTypeResult", "DocBarCodeInfo", "DocumentBinaryInfoResult", "DocumentImageResult", "DocumentPositionResult", "DocumentTypesCandidatesResult", "EncryptedRCLResult", "FaceDetectionResult", "GraphicsResult", "ImageQualityResult", "ImagesResult", "LexicalAnalysisResult", "LicenseResult", "MRZDetectorResult", "MRZPositionResult", "MRZTestQualityResult", "RFIDGraphicsInfoResult", "RFIDTextDataResult", "StatusResult", "TextDataResult", "TextResult"]
|
|
40
41
|
|
|
41
42
|
class ContainerListListInner(BaseModel):
|
|
42
43
|
"""
|
|
@@ -64,32 +65,34 @@ class ContainerListListInner(BaseModel):
|
|
|
64
65
|
oneof_schema_10_validator: Optional[AuthenticityResult] = None
|
|
65
66
|
# data type: ImageQualityResult
|
|
66
67
|
oneof_schema_11_validator: Optional[ImageQualityResult] = None
|
|
68
|
+
# data type: BarcodePositionResult
|
|
69
|
+
oneof_schema_12_validator: Optional[BarcodePositionResult] = None
|
|
67
70
|
# data type: DocumentPositionResult
|
|
68
|
-
|
|
71
|
+
oneof_schema_13_validator: Optional[DocumentPositionResult] = None
|
|
69
72
|
# data type: DocBarCodeInfo
|
|
70
|
-
|
|
73
|
+
oneof_schema_14_validator: Optional[DocBarCodeInfo] = None
|
|
71
74
|
# data type: LicenseResult
|
|
72
|
-
|
|
75
|
+
oneof_schema_15_validator: Optional[LicenseResult] = None
|
|
73
76
|
# data type: EncryptedRCLResult
|
|
74
|
-
|
|
77
|
+
oneof_schema_16_validator: Optional[EncryptedRCLResult] = None
|
|
75
78
|
# data type: DocumentBinaryInfoResult
|
|
76
|
-
|
|
79
|
+
oneof_schema_17_validator: Optional[DocumentBinaryInfoResult] = None
|
|
77
80
|
# data type: ByteArrayResult
|
|
78
|
-
|
|
81
|
+
oneof_schema_18_validator: Optional[ByteArrayResult] = None
|
|
79
82
|
# data type: FaceDetectionResult
|
|
80
|
-
|
|
83
|
+
oneof_schema_19_validator: Optional[FaceDetectionResult] = None
|
|
81
84
|
# data type: MRZDetectorResult
|
|
82
|
-
|
|
85
|
+
oneof_schema_20_validator: Optional[MRZDetectorResult] = None
|
|
83
86
|
# data type: MRZPositionResult
|
|
84
|
-
|
|
87
|
+
oneof_schema_21_validator: Optional[MRZPositionResult] = None
|
|
85
88
|
# data type: MRZTestQualityResult
|
|
86
|
-
|
|
89
|
+
oneof_schema_22_validator: Optional[MRZTestQualityResult] = None
|
|
87
90
|
# data type: RFIDGraphicsInfoResult
|
|
88
|
-
|
|
91
|
+
oneof_schema_23_validator: Optional[RFIDGraphicsInfoResult] = None
|
|
89
92
|
# data type: RFIDTextDataResult
|
|
90
|
-
|
|
91
|
-
actual_instance: Optional[Union[AuthenticityResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult]] = None
|
|
92
|
-
one_of_schemas: Set[str] = { "AuthenticityResult", "ByteArrayResult", "ChosenDocumentTypeResult", "DocBarCodeInfo", "DocumentBinaryInfoResult", "DocumentImageResult", "DocumentPositionResult", "DocumentTypesCandidatesResult", "EncryptedRCLResult", "FaceDetectionResult", "GraphicsResult", "ImageQualityResult", "ImagesResult", "LexicalAnalysisResult", "LicenseResult", "MRZDetectorResult", "MRZPositionResult", "MRZTestQualityResult", "RFIDGraphicsInfoResult", "RFIDTextDataResult", "StatusResult", "TextDataResult", "TextResult" }
|
|
93
|
+
oneof_schema_24_validator: Optional[RFIDTextDataResult] = None
|
|
94
|
+
actual_instance: Optional[Union[AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult]] = None
|
|
95
|
+
one_of_schemas: Set[str] = { "AuthenticityResult", "BarcodePositionResult", "ByteArrayResult", "ChosenDocumentTypeResult", "DocBarCodeInfo", "DocumentBinaryInfoResult", "DocumentImageResult", "DocumentPositionResult", "DocumentTypesCandidatesResult", "EncryptedRCLResult", "FaceDetectionResult", "GraphicsResult", "ImageQualityResult", "ImagesResult", "LexicalAnalysisResult", "LicenseResult", "MRZDetectorResult", "MRZPositionResult", "MRZTestQualityResult", "RFIDGraphicsInfoResult", "RFIDTextDataResult", "StatusResult", "TextDataResult", "TextResult" }
|
|
93
96
|
|
|
94
97
|
model_config = ConfigDict(
|
|
95
98
|
validate_assignment=True,
|
|
@@ -170,6 +173,11 @@ class ContainerListListInner(BaseModel):
|
|
|
170
173
|
error_messages.append(f"Error! Input type `{type(v)}` is not `ImageQualityResult`")
|
|
171
174
|
else:
|
|
172
175
|
match += 1
|
|
176
|
+
# validate data type: BarcodePositionResult
|
|
177
|
+
if not isinstance(v, BarcodePositionResult):
|
|
178
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `BarcodePositionResult`")
|
|
179
|
+
else:
|
|
180
|
+
match += 1
|
|
173
181
|
# validate data type: DocumentPositionResult
|
|
174
182
|
if not isinstance(v, DocumentPositionResult):
|
|
175
183
|
error_messages.append(f"Error! Input type `{type(v)}` is not `DocumentPositionResult`")
|
|
@@ -232,10 +240,10 @@ class ContainerListListInner(BaseModel):
|
|
|
232
240
|
match += 1
|
|
233
241
|
if match > 1:
|
|
234
242
|
# more than 1 match
|
|
235
|
-
raise ValueError("Multiple matches found when setting `actual_instance` in ContainerListListInner with oneOf schemas: AuthenticityResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
243
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in ContainerListListInner with oneOf schemas: AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
236
244
|
elif match == 0:
|
|
237
245
|
# no match
|
|
238
|
-
raise ValueError("No match found when setting `actual_instance` in ContainerListListInner with oneOf schemas: AuthenticityResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
246
|
+
raise ValueError("No match found when setting `actual_instance` in ContainerListListInner with oneOf schemas: AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
239
247
|
else:
|
|
240
248
|
return v
|
|
241
249
|
|
|
@@ -316,6 +324,12 @@ class ContainerListListInner(BaseModel):
|
|
|
316
324
|
match += 1
|
|
317
325
|
except (ValidationError, ValueError) as e:
|
|
318
326
|
error_messages.append(str(e))
|
|
327
|
+
# deserialize data into BarcodePositionResult
|
|
328
|
+
try:
|
|
329
|
+
instance.actual_instance = BarcodePositionResult.from_json(json_str)
|
|
330
|
+
match += 1
|
|
331
|
+
except (ValidationError, ValueError) as e:
|
|
332
|
+
error_messages.append(str(e))
|
|
319
333
|
# deserialize data into DocumentPositionResult
|
|
320
334
|
try:
|
|
321
335
|
instance.actual_instance = DocumentPositionResult.from_json(json_str)
|
|
@@ -391,10 +405,10 @@ class ContainerListListInner(BaseModel):
|
|
|
391
405
|
|
|
392
406
|
if match > 1:
|
|
393
407
|
# more than 1 match
|
|
394
|
-
raise ValueError("Multiple matches found when deserializing the JSON string into ContainerListListInner with oneOf schemas: AuthenticityResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
408
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into ContainerListListInner with oneOf schemas: AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
395
409
|
elif match == 0:
|
|
396
410
|
# no match
|
|
397
|
-
raise ValueError("No match found when deserializing the JSON string into ContainerListListInner with oneOf schemas: AuthenticityResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
411
|
+
raise ValueError("No match found when deserializing the JSON string into ContainerListListInner with oneOf schemas: AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult. Details: " + ", ".join(error_messages))
|
|
398
412
|
else:
|
|
399
413
|
return instance
|
|
400
414
|
|
|
@@ -408,7 +422,7 @@ class ContainerListListInner(BaseModel):
|
|
|
408
422
|
else:
|
|
409
423
|
return json.dumps(self.actual_instance)
|
|
410
424
|
|
|
411
|
-
def to_dict(self) -> Optional[Union[Dict[str, Any], AuthenticityResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult]]:
|
|
425
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult]]:
|
|
412
426
|
"""Returns the dict representation of the actual instance"""
|
|
413
427
|
if self.actual_instance is None:
|
|
414
428
|
return None
|
|
@@ -15,20 +15,23 @@ from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.source import Source
|
|
16
16
|
from typing import Optional, Set
|
|
17
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
18
19
|
|
|
19
20
|
class CrossSourceValueComparison(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
CrossSourceValueComparison
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
source_left: Source = Field(alias="sourceLeft")
|
|
24
|
-
source_right: Source = Field(alias="sourceRight")
|
|
25
|
-
status: CheckResult
|
|
24
|
+
source_left: SkipValidation[Source] = Field(alias="sourceLeft")
|
|
25
|
+
source_right: SkipValidation[Source] = Field(alias="sourceRight")
|
|
26
|
+
status: SkipValidation[CheckResult] = Field(alias="status")
|
|
26
27
|
__properties: ClassVar[List[str]] = ["sourceLeft", "sourceRight", "status"]
|
|
27
28
|
|
|
28
29
|
model_config = ConfigDict(
|
|
29
30
|
populate_by_name=True,
|
|
30
31
|
validate_assignment=True,
|
|
31
32
|
protected_namespaces=(),
|
|
33
|
+
arbitrary_types_allowed=True,
|
|
34
|
+
use_enum_values=True
|
|
32
35
|
)
|
|
33
36
|
|
|
34
37
|
|
|
@@ -14,22 +14,25 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.bar_code_module_type import BarCodeModuleType
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DataModule(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DataModule
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
m_data:
|
|
23
|
-
m_length:
|
|
24
|
-
m_reserved1: Optional[
|
|
25
|
-
m_reserver2: Optional[
|
|
26
|
-
m_type: BarCodeModuleType = Field(alias="mType")
|
|
23
|
+
m_data: SkipValidation[str] = Field(alias="mData")
|
|
24
|
+
m_length: SkipValidation[int] = Field(alias="mLength")
|
|
25
|
+
m_reserved1: SkipValidation[Optional[int]] = Field(alias="mReserved1", default=None)
|
|
26
|
+
m_reserver2: SkipValidation[Optional[int]] = Field(alias="mReserver2", default=None)
|
|
27
|
+
m_type: SkipValidation[BarCodeModuleType] = Field(alias="mType")
|
|
27
28
|
__properties: ClassVar[List[str]] = ["mData", "mLength", "mReserved1", "mReserver2", "mType"]
|
|
28
29
|
|
|
29
30
|
model_config = ConfigDict(
|
|
30
31
|
populate_by_name=True,
|
|
31
32
|
validate_assignment=True,
|
|
32
33
|
protected_namespaces=(),
|
|
34
|
+
arbitrary_types_allowed=True,
|
|
35
|
+
use_enum_values=True
|
|
33
36
|
)
|
|
34
37
|
|
|
35
38
|
|
|
@@ -0,0 +1,111 @@
|
|
|
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, StrictBool, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
+
from regula.documentreader.webclient.gen.models.document_type import DocumentType
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
18
|
+
|
|
19
|
+
class DatabaseDocument(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
DatabaseDocument
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
barcode_fields: SkipValidation[bool] = Field(alias="barcode_fields", description="Whether the document has a barcode.")
|
|
24
|
+
country: SkipValidation[str] = Field(alias="country", description="Country name.")
|
|
25
|
+
createad: SkipValidation[str] = Field(alias="createad", description="Date when the document description was created in the database.")
|
|
26
|
+
doc_type: SkipValidation[DocumentType] = Field(alias="doc_type")
|
|
27
|
+
document: SkipValidation[str] = Field(alias="document", description="Document name.")
|
|
28
|
+
graphic_fields: SkipValidation[bool] = Field(alias="graphic_fields", description="The presence of graphic fields in the document.")
|
|
29
|
+
id: SkipValidation[int] = Field(alias="id", description="Document code.")
|
|
30
|
+
mrz: SkipValidation[bool] = Field(alias="mrz", description="The document has an MRZ.")
|
|
31
|
+
region: SkipValidation[Optional[str]] = Field(alias="region", default=None, description="Country region.")
|
|
32
|
+
rfid_chip: SkipValidation[bool] = Field(alias="rfid_chip", description="The document has an RFID chip.")
|
|
33
|
+
text_fields: SkipValidation[bool] = Field(alias="text_fields", description="The presence of text fields in the document.")
|
|
34
|
+
updated: SkipValidation[str] = Field(alias="updated", description="Date when the document description was updated in the database.")
|
|
35
|
+
year: SkipValidation[Optional[str]] = Field(alias="year", default=None, description="The year when the document was issued.")
|
|
36
|
+
sovereignty: SkipValidation[Optional[str]] = Field(alias="sovereignty", default=None, description="Guardian country.")
|
|
37
|
+
deprecated: SkipValidation[Optional[bool]] = Field(alias="deprecated", default=None, description="Whether the document is no longer in circulation.")
|
|
38
|
+
__properties: ClassVar[List[str]] = ["barcode_fields", "country", "createad", "doc_type", "document", "graphic_fields", "id", "mrz", "region", "rfid_chip", "text_fields", "updated", "year", "sovereignty", "deprecated"]
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
arbitrary_types_allowed=True,
|
|
45
|
+
use_enum_values=True
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
+
"""Create an instance of DatabaseDocument from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
"""
|
|
73
|
+
excluded_fields: Set[str] = set([
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
_dict = self.model_dump(
|
|
77
|
+
by_alias=True,
|
|
78
|
+
exclude=excluded_fields,
|
|
79
|
+
exclude_none=True,
|
|
80
|
+
)
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of DatabaseDocument from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"barcode_fields": obj.get("barcode_fields"),
|
|
94
|
+
"country": obj.get("country"),
|
|
95
|
+
"createad": obj.get("createad"),
|
|
96
|
+
"doc_type": obj.get("doc_type"),
|
|
97
|
+
"document": obj.get("document"),
|
|
98
|
+
"graphic_fields": obj.get("graphic_fields"),
|
|
99
|
+
"id": obj.get("id"),
|
|
100
|
+
"mrz": obj.get("mrz"),
|
|
101
|
+
"region": obj.get("region"),
|
|
102
|
+
"rfid_chip": obj.get("rfid_chip"),
|
|
103
|
+
"text_fields": obj.get("text_fields"),
|
|
104
|
+
"updated": obj.get("updated"),
|
|
105
|
+
"year": obj.get("year"),
|
|
106
|
+
"sovereignty": obj.get("sovereignty"),
|
|
107
|
+
"deprecated": obj.get("deprecated")
|
|
108
|
+
})
|
|
109
|
+
return _obj
|
|
110
|
+
|
|
111
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from regula.documentreader.webclient.gen.models.database_document import DatabaseDocument
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
18
|
+
|
|
19
|
+
class DatabaseDocumentList(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
DatabaseDocumentList
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
items: SkipValidation[List[DatabaseDocument]] = Field(alias="items", description="The list of documents stored in the database.")
|
|
24
|
+
__properties: ClassVar[List[str]] = ["items"]
|
|
25
|
+
|
|
26
|
+
model_config = ConfigDict(
|
|
27
|
+
populate_by_name=True,
|
|
28
|
+
validate_assignment=True,
|
|
29
|
+
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def to_str(self) -> str:
|
|
36
|
+
"""Returns the string representation of the model using alias"""
|
|
37
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
38
|
+
|
|
39
|
+
def to_json(self) -> str:
|
|
40
|
+
"""Returns the JSON representation of the model using alias"""
|
|
41
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
42
|
+
return json.dumps(self.to_dict())
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
46
|
+
"""Create an instance of DatabaseDocumentList from a JSON string"""
|
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
|
48
|
+
|
|
49
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
50
|
+
"""Return the dictionary representation of the model using alias.
|
|
51
|
+
|
|
52
|
+
This has the following differences from calling pydantic's
|
|
53
|
+
`self.model_dump(by_alias=True)`:
|
|
54
|
+
|
|
55
|
+
* `None` is only added to the output dict for nullable fields that
|
|
56
|
+
were set at model initialization. Other fields with value `None`
|
|
57
|
+
are ignored.
|
|
58
|
+
"""
|
|
59
|
+
excluded_fields: Set[str] = set([
|
|
60
|
+
])
|
|
61
|
+
|
|
62
|
+
_dict = self.model_dump(
|
|
63
|
+
by_alias=True,
|
|
64
|
+
exclude=excluded_fields,
|
|
65
|
+
exclude_none=True,
|
|
66
|
+
)
|
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of each item in items (list)
|
|
68
|
+
_items = []
|
|
69
|
+
if self.items:
|
|
70
|
+
for _item_items in self.items:
|
|
71
|
+
if _item_items:
|
|
72
|
+
_items.append(_item_items.to_dict())
|
|
73
|
+
_dict['items'] = _items
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of DatabaseDocumentList from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"items": [DatabaseDocument.from_dict(_item) for _item in obj.get("items", []) if DatabaseDocument.from_dict(_item) is not None]
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -14,26 +14,29 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DetailsOptical(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
Details on performed optical checks
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
overall_status: CheckResult = Field(alias="overallStatus")
|
|
23
|
-
doc_type: CheckResult = Field(alias="docType")
|
|
24
|
-
expiry: CheckResult
|
|
25
|
-
image_qa: CheckResult = Field(alias="imageQA")
|
|
26
|
-
mrz: CheckResult
|
|
27
|
-
pages_count:
|
|
28
|
-
security: CheckResult
|
|
29
|
-
text: CheckResult
|
|
30
|
-
vds: Optional[
|
|
23
|
+
overall_status: SkipValidation[CheckResult] = Field(alias="overallStatus")
|
|
24
|
+
doc_type: SkipValidation[CheckResult] = Field(alias="docType")
|
|
25
|
+
expiry: SkipValidation[CheckResult] = Field(alias="expiry")
|
|
26
|
+
image_qa: SkipValidation[CheckResult] = Field(alias="imageQA")
|
|
27
|
+
mrz: SkipValidation[CheckResult] = Field(alias="mrz")
|
|
28
|
+
pages_count: SkipValidation[int] = Field(alias="pagesCount", description="Number of processed pages in the document")
|
|
29
|
+
security: SkipValidation[CheckResult] = Field(alias="security")
|
|
30
|
+
text: SkipValidation[CheckResult] = Field(alias="text")
|
|
31
|
+
vds: SkipValidation[Optional[int]] = Field(alias="vds", default=None)
|
|
31
32
|
__properties: ClassVar[List[str]] = ["overallStatus", "docType", "expiry", "imageQA", "mrz", "pagesCount", "security", "text", "vds"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
35
|
populate_by_name=True,
|
|
35
36
|
validate_assignment=True,
|
|
36
37
|
protected_namespaces=(),
|
|
38
|
+
arbitrary_types_allowed=True,
|
|
39
|
+
use_enum_values=True
|
|
37
40
|
)
|
|
38
41
|
|
|
39
42
|
|
|
@@ -14,24 +14,27 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DetailsRFID(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
Details on performed RFID checks
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
overall_status: CheckResult = Field(alias="overallStatus")
|
|
23
|
-
aa: CheckResult = Field(alias="AA")
|
|
24
|
-
bac: CheckResult = Field(alias="BAC")
|
|
25
|
-
ca: CheckResult = Field(alias="CA")
|
|
26
|
-
pa: CheckResult = Field(alias="PA")
|
|
27
|
-
pace: CheckResult = Field(alias="PACE")
|
|
28
|
-
ta: CheckResult = Field(alias="TA")
|
|
23
|
+
overall_status: SkipValidation[CheckResult] = Field(alias="overallStatus")
|
|
24
|
+
aa: SkipValidation[CheckResult] = Field(alias="AA")
|
|
25
|
+
bac: SkipValidation[CheckResult] = Field(alias="BAC")
|
|
26
|
+
ca: SkipValidation[CheckResult] = Field(alias="CA")
|
|
27
|
+
pa: SkipValidation[CheckResult] = Field(alias="PA")
|
|
28
|
+
pace: SkipValidation[CheckResult] = Field(alias="PACE")
|
|
29
|
+
ta: SkipValidation[CheckResult] = Field(alias="TA")
|
|
29
30
|
__properties: ClassVar[List[str]] = ["overallStatus", "AA", "BAC", "CA", "PA", "PACE", "TA"]
|
|
30
31
|
|
|
31
32
|
model_config = ConfigDict(
|
|
32
33
|
populate_by_name=True,
|
|
33
34
|
validate_assignment=True,
|
|
34
35
|
protected_namespaces=(),
|
|
36
|
+
arbitrary_types_allowed=True,
|
|
37
|
+
use_enum_values=True
|
|
35
38
|
)
|
|
36
39
|
|
|
37
40
|
|
|
@@ -15,27 +15,30 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.device_info_documents_database import DeviceInfoDocumentsDatabase
|
|
16
16
|
from typing import Optional, Set
|
|
17
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
18
19
|
|
|
19
20
|
class DeviceInfo(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
DeviceInfo
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
app_name: Optional[
|
|
24
|
-
version: Optional[
|
|
25
|
-
license_id: Optional[
|
|
26
|
-
license_serial: Optional[
|
|
27
|
-
license_type: Optional[
|
|
28
|
-
valid_until: Optional[datetime] = Field(default=None, description="License validity date."
|
|
29
|
-
server_time: Optional[
|
|
30
|
-
supported_scenarios: Optional[List[
|
|
31
|
-
metadata: Optional[Dict[str,
|
|
32
|
-
documents_database: Optional[DeviceInfoDocumentsDatabase] = Field(
|
|
24
|
+
app_name: SkipValidation[Optional[str]] = Field(alias="app-name", default=None, description="Application name.")
|
|
25
|
+
version: SkipValidation[Optional[str]] = Field(alias="version", default=None, description="Product version.")
|
|
26
|
+
license_id: SkipValidation[Optional[str]] = Field(alias="license-id", default=None, description="Unique license identifier.")
|
|
27
|
+
license_serial: SkipValidation[Optional[str]] = Field(alias="license-serial", default=None, description="License serial number.")
|
|
28
|
+
license_type: SkipValidation[Optional[str]] = Field(alias="license-type", default=None)
|
|
29
|
+
valid_until: SkipValidation[Optional[datetime]] = Field(alias="valid-until", default=None, description="License validity date.")
|
|
30
|
+
server_time: SkipValidation[Optional[str]] = Field(alias="server-time", default=None)
|
|
31
|
+
supported_scenarios: SkipValidation[Optional[List[str]]] = Field(alias="supported-scenarios", default=None, description="List of supported scenarios.")
|
|
32
|
+
metadata: SkipValidation[Optional[Dict[str, object]]] = Field(alias="metadata", default=None)
|
|
33
|
+
documents_database: SkipValidation[Optional[DeviceInfoDocumentsDatabase]] = Field(alias="documents-database", default=None)
|
|
33
34
|
__properties: ClassVar[List[str]] = ["app-name", "version", "license-id", "license-serial", "license-type", "valid-until", "server-time", "supported-scenarios", "metadata", "documents-database"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
37
|
populate_by_name=True,
|
|
37
38
|
validate_assignment=True,
|
|
38
39
|
protected_namespaces=(),
|
|
40
|
+
arbitrary_types_allowed=True,
|
|
41
|
+
use_enum_values=True
|
|
39
42
|
)
|
|
40
43
|
|
|
41
44
|
|
|
@@ -13,21 +13,24 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class DeviceInfoDocumentsDatabase(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
Database information.
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
id:
|
|
22
|
-
version:
|
|
23
|
-
export_date:
|
|
24
|
-
description:
|
|
22
|
+
id: SkipValidation[str] = Field(alias="id", description="Database identifier.")
|
|
23
|
+
version: SkipValidation[str] = Field(alias="version", description="Database version.")
|
|
24
|
+
export_date: SkipValidation[str] = Field(alias="export-date", description="Date of database creation.")
|
|
25
|
+
description: SkipValidation[str] = Field(alias="description", description="Description of the database contents, such as the list of supported countries and documents.")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["id", "version", "export-date", "description"]
|
|
26
27
|
|
|
27
28
|
model_config = ConfigDict(
|
|
28
29
|
populate_by_name=True,
|
|
29
30
|
validate_assignment=True,
|
|
30
31
|
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
31
34
|
)
|
|
32
35
|
|
|
33
36
|
|
|
@@ -16,18 +16,21 @@ from regula.documentreader.webclient.gen.models.result import Result
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
17
17
|
from typing import Optional, Set
|
|
18
18
|
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
19
20
|
|
|
20
21
|
class DocBarCodeInfo(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Raw data from BarCodes
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
doc_bar_code_info: DocBarCodeInfoFieldsList = Field(alias="DocBarCodeInfo")
|
|
25
|
+
doc_bar_code_info: SkipValidation[DocBarCodeInfoFieldsList] = Field(alias="DocBarCodeInfo")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "DocBarCodeInfo"]
|
|
26
27
|
|
|
27
28
|
model_config = ConfigDict(
|
|
28
29
|
populate_by_name=True,
|
|
29
30
|
validate_assignment=True,
|
|
30
31
|
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
31
34
|
)
|
|
32
35
|
|
|
33
36
|
|
|
@@ -14,19 +14,22 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.p_array_field import PArrayField
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DocBarCodeInfoFieldsList(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocBarCodeInfoFieldsList
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
n_fields:
|
|
23
|
-
p_array_fields: List[PArrayField] = Field(description="Data from barcode"
|
|
23
|
+
n_fields: SkipValidation[int] = Field(alias="nFields", description="Count of array fields")
|
|
24
|
+
p_array_fields: SkipValidation[List[PArrayField]] = Field(alias="pArrayFields", description="Data from barcode")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["nFields", "pArrayFields"]
|
|
25
26
|
|
|
26
27
|
model_config = ConfigDict(
|
|
27
28
|
populate_by_name=True,
|
|
28
29
|
validate_assignment=True,
|
|
29
30
|
protected_namespaces=(),
|
|
31
|
+
arbitrary_types_allowed=True,
|
|
32
|
+
use_enum_values=True
|
|
30
33
|
)
|
|
31
34
|
|
|
32
35
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DocBarCodeInfoItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocBarCodeInfoItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
doc_bar_code_info: DocBarCodeInfoFieldsList = Field(alias="DocBarCodeInfo")
|
|
23
|
+
doc_bar_code_info: SkipValidation[DocBarCodeInfoFieldsList] = Field(alias="DocBarCodeInfo")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["DocBarCodeInfo"]
|
|
24
25
|
|
|
25
26
|
model_config = ConfigDict(
|
|
26
27
|
populate_by_name=True,
|
|
27
28
|
validate_assignment=True,
|
|
28
29
|
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
29
32
|
)
|
|
30
33
|
|
|
31
34
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.graphic_fields_list import GraphicFieldsList
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DocGraphicsInfoItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocGraphicsInfoItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
doc_graphics_info: GraphicFieldsList = Field(alias="DocGraphicsInfo")
|
|
23
|
+
doc_graphics_info: SkipValidation[GraphicFieldsList] = Field(alias="DocGraphicsInfo")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["DocGraphicsInfo"]
|
|
24
25
|
|
|
25
26
|
model_config = ConfigDict(
|
|
26
27
|
populate_by_name=True,
|
|
27
28
|
validate_assignment=True,
|
|
28
29
|
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
29
32
|
)
|
|
30
33
|
|
|
31
34
|
|