regula-documentreader-webclient 8.3.512__py3-none-any.whl → 8.4.584__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.
- regula/documentreader/webclient/ext/api/document_reader_api.py +2 -2
- regula/documentreader/webclient/gen/__init__.py +755 -240
- 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 +249 -1
- 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 +4 -1
- regula/documentreader/webclient/gen/models/barcode_position_result.py +4 -1
- 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/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 +6 -3
- 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 +8 -5
- 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_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 -16
- 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_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.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/METADATA +2 -1
- {regula_documentreader_webclient-8.3.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/RECORD +197 -193
- {regula_documentreader_webclient-8.3.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.3.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/top_level.txt +0 -0
|
@@ -21,28 +21,31 @@ from regula.documentreader.webclient.gen.models.rectangle_coordinates import Rec
|
|
|
21
21
|
from regula.documentreader.webclient.gen.models.text_field_type import TextFieldType
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
|
+
from pydantic import SkipValidation, Field
|
|
24
25
|
|
|
25
26
|
class OCRSecurityTextResult(AuthenticityCheckResultItem):
|
|
26
27
|
"""
|
|
27
28
|
OCRSecurityTextResult
|
|
28
29
|
""" # noqa: E501
|
|
29
|
-
critical_flag: Critical = Field(alias="CriticalFlag")
|
|
30
|
-
light_type: Light = Field(alias="LightType")
|
|
31
|
-
field_rect: RectangleCoordinates = Field(alias="FieldRect")
|
|
32
|
-
etalon_result_type:
|
|
33
|
-
etalon_field_type: TextFieldType = Field(alias="EtalonFieldType")
|
|
34
|
-
etalon_light_type: Light = Field(alias="EtalonLightType")
|
|
35
|
-
etalon_field_rect: RectangleCoordinates = Field(alias="EtalonFieldRect")
|
|
36
|
-
security_text_result_ocr:
|
|
37
|
-
etalon_result_ocr:
|
|
38
|
-
reserved1: Optional[
|
|
39
|
-
reserved2: Optional[
|
|
30
|
+
critical_flag: SkipValidation[Critical] = Field(alias="CriticalFlag")
|
|
31
|
+
light_type: SkipValidation[Light] = Field(alias="LightType")
|
|
32
|
+
field_rect: SkipValidation[RectangleCoordinates] = Field(alias="FieldRect")
|
|
33
|
+
etalon_result_type: SkipValidation[int] = Field(alias="EtalonResultType", description="Same as Result type, but used for safe parsing of not-described values. See Result type.")
|
|
34
|
+
etalon_field_type: SkipValidation[TextFieldType] = Field(alias="EtalonFieldType")
|
|
35
|
+
etalon_light_type: SkipValidation[Light] = Field(alias="EtalonLightType")
|
|
36
|
+
etalon_field_rect: SkipValidation[RectangleCoordinates] = Field(alias="EtalonFieldRect")
|
|
37
|
+
security_text_result_ocr: SkipValidation[str] = Field(alias="SecurityTextResultOCR")
|
|
38
|
+
etalon_result_ocr: SkipValidation[str] = Field(alias="EtalonResultOCR")
|
|
39
|
+
reserved1: SkipValidation[Optional[int]] = Field(alias="Reserved1", default=None)
|
|
40
|
+
reserved2: SkipValidation[Optional[int]] = Field(alias="Reserved2", default=None)
|
|
40
41
|
__properties: ClassVar[List[str]] = ["Type", "ElementResult", "ElementDiagnose", "PercentValue", "CriticalFlag", "LightType", "FieldRect", "EtalonResultType", "EtalonFieldType", "EtalonLightType", "EtalonFieldRect", "SecurityTextResultOCR", "EtalonResultOCR", "Reserved1", "Reserved2"]
|
|
41
42
|
|
|
42
43
|
model_config = ConfigDict(
|
|
43
44
|
populate_by_name=True,
|
|
44
45
|
validate_assignment=True,
|
|
45
46
|
protected_namespaces=(),
|
|
47
|
+
arbitrary_types_allowed=True,
|
|
48
|
+
use_enum_values=True
|
|
46
49
|
)
|
|
47
50
|
|
|
48
51
|
|
|
@@ -16,29 +16,32 @@ from regula.documentreader.webclient.gen.models.fdsid_list import FDSIDList
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.rfid_location import RfidLocation
|
|
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 OneCandidate(BaseModel):
|
|
21
22
|
"""
|
|
22
23
|
Contains information about one document type candidate
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
document_name: Optional[
|
|
25
|
-
id:
|
|
26
|
-
p:
|
|
27
|
-
rotated180:
|
|
28
|
-
rfid_presence: RfidLocation = Field(alias="RFID_Presence")
|
|
29
|
-
fdsid_list: Optional[FDSIDList] = Field(
|
|
30
|
-
necessary_lights:
|
|
31
|
-
check_authenticity:
|
|
32
|
-
uv_exp:
|
|
33
|
-
authenticity_necessary_lights:
|
|
34
|
-
ovi_exp:
|
|
35
|
-
rotation_angle: Optional[
|
|
25
|
+
document_name: SkipValidation[Optional[str]] = Field(alias="DocumentName", default=None, description="Document name")
|
|
26
|
+
id: SkipValidation[int] = Field(alias="ID", description="Unique document type template identifier (Regula's internal numeric code)")
|
|
27
|
+
p: SkipValidation[float] = Field(alias="P", description="A measure of the likelihood of correct recognition in the analysis of this type of document")
|
|
28
|
+
rotated180: SkipValidation[int] = Field(alias="Rotated180", description="Indicates if the document of the given type is rotated by 180 degrees")
|
|
29
|
+
rfid_presence: SkipValidation[RfidLocation] = Field(alias="RFID_Presence")
|
|
30
|
+
fdsid_list: SkipValidation[Optional[FDSIDList]] = Field(alias="FDSIDList", default=None)
|
|
31
|
+
necessary_lights: SkipValidation[int] = Field(alias="NecessaryLights", description="Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document")
|
|
32
|
+
check_authenticity: SkipValidation[int] = Field(alias="CheckAuthenticity", description="Set of authentication options provided for this type of document (combination of Authenticity enum)")
|
|
33
|
+
uv_exp: SkipValidation[int] = Field(alias="UVExp", description="The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme")
|
|
34
|
+
authenticity_necessary_lights: SkipValidation[int] = Field(alias="AuthenticityNecessaryLights", description="Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity")
|
|
35
|
+
ovi_exp: SkipValidation[float] = Field(alias="OVIExp", description="Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme")
|
|
36
|
+
rotation_angle: SkipValidation[Optional[int]] = Field(alias="RotationAngle", default=None)
|
|
36
37
|
__properties: ClassVar[List[str]] = ["DocumentName", "ID", "P", "Rotated180", "RFID_Presence", "FDSIDList", "NecessaryLights", "CheckAuthenticity", "UVExp", "AuthenticityNecessaryLights", "OVIExp", "RotationAngle"]
|
|
37
38
|
|
|
38
39
|
model_config = ConfigDict(
|
|
39
40
|
populate_by_name=True,
|
|
40
41
|
validate_assignment=True,
|
|
41
42
|
protected_namespaces=(),
|
|
43
|
+
arbitrary_types_allowed=True,
|
|
44
|
+
use_enum_values=True
|
|
42
45
|
)
|
|
43
46
|
|
|
44
47
|
|
|
@@ -14,19 +14,22 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.one_candidate import OneCandidate
|
|
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 OneCandidateItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
OneCandidateItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
one_candidate: OneCandidate = Field(alias="OneCandidate")
|
|
23
|
-
xml_buffer: Optional[
|
|
23
|
+
one_candidate: SkipValidation[OneCandidate] = Field(alias="OneCandidate")
|
|
24
|
+
xml_buffer: SkipValidation[Optional[str]] = Field(alias="XML_buffer", default=None)
|
|
24
25
|
__properties: ClassVar[List[str]] = ["OneCandidate", "XML_buffer"]
|
|
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
|
|
|
@@ -15,20 +15,23 @@ from typing_extensions import Annotated
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
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 OriginalSymbol(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
OriginalSymbol
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
code:
|
|
24
|
-
probability:
|
|
25
|
-
rect: Optional[RectangleCoordinates] = None
|
|
24
|
+
code: SkipValidation[int] = Field(alias="code", description="Unicode symbol code")
|
|
25
|
+
probability: SkipValidation[int] = Field(alias="probability", description="Probability of correctness reading of a single character")
|
|
26
|
+
rect: SkipValidation[Optional[RectangleCoordinates]] = Field(alias="rect", default=None)
|
|
26
27
|
__properties: ClassVar[List[str]] = ["code", "probability", "rect"]
|
|
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,19 +14,22 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.out_data_transaction_images_field_value import OutDataTransactionImagesFieldValue
|
|
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 OutData(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
OutData
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
url: Optional[
|
|
23
|
-
images: Optional[List[OutDataTransactionImagesFieldValue]] = None
|
|
23
|
+
url: SkipValidation[Optional[str]] = Field(alias="url", default=None, description="Response url")
|
|
24
|
+
images: SkipValidation[Optional[List[OutDataTransactionImagesFieldValue]]] = Field(alias="images", default=None)
|
|
24
25
|
__properties: ClassVar[List[str]] = ["url", "images"]
|
|
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
|
|
|
@@ -15,22 +15,25 @@ from regula.documentreader.webclient.gen.models.graphic_field_type import Graphi
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.light import Light
|
|
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 OutDataTransactionImagesFieldValue(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
OutDataTransactionImagesFieldValue
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
field_type: Optional[GraphicFieldType] = Field(
|
|
24
|
-
light: Optional[Light] = None
|
|
25
|
-
list_idx: Optional[
|
|
26
|
-
page_idx: Optional[
|
|
27
|
-
url: Optional[
|
|
24
|
+
field_type: SkipValidation[Optional[GraphicFieldType]] = Field(alias="fieldType", default=None)
|
|
25
|
+
light: SkipValidation[Optional[Light]] = Field(alias="light", default=None)
|
|
26
|
+
list_idx: SkipValidation[Optional[int]] = Field(alias="listIdx", default=None)
|
|
27
|
+
page_idx: SkipValidation[Optional[int]] = Field(alias="pageIdx", default=None, description="Page index of the image from input list")
|
|
28
|
+
url: SkipValidation[Optional[str]] = Field(alias="url", default=None, description="Image url")
|
|
28
29
|
__properties: ClassVar[List[str]] = ["fieldType", "light", "listIdx", "pageIdx", "url"]
|
|
29
30
|
|
|
30
31
|
model_config = ConfigDict(
|
|
31
32
|
populate_by_name=True,
|
|
32
33
|
validate_assignment=True,
|
|
33
34
|
protected_namespaces=(),
|
|
35
|
+
arbitrary_types_allowed=True,
|
|
36
|
+
use_enum_values=True
|
|
34
37
|
)
|
|
35
38
|
|
|
36
39
|
|
|
@@ -18,27 +18,30 @@ from regula.documentreader.webclient.gen.models.data_module import DataModule
|
|
|
18
18
|
from regula.documentreader.webclient.gen.models.text_field_type import TextFieldType
|
|
19
19
|
from typing import Optional, Set
|
|
20
20
|
from typing_extensions import Self
|
|
21
|
+
from pydantic import SkipValidation, Field
|
|
21
22
|
|
|
22
23
|
class PArrayField(BaseModel):
|
|
23
24
|
"""
|
|
24
25
|
PArrayField
|
|
25
26
|
""" # noqa: E501
|
|
26
|
-
bc_angle_detect:
|
|
27
|
-
bc_code_result:
|
|
28
|
-
bc_count_module:
|
|
29
|
-
bc_data_module: List[DataModule] = Field(alias="bcDataModule")
|
|
30
|
-
bc_pdf417_info: Optional[BcPDF417INFO] = Field(
|
|
31
|
-
bc_roi_detect: BcROIDETECT = Field(alias="bcROI_DETECT")
|
|
32
|
-
bc_text_decoder_types: Optional[
|
|
33
|
-
bc_text_field_type: Optional[TextFieldType] = Field(
|
|
34
|
-
bc_type_decode: BarcodeType = Field(alias="bcType_DECODE")
|
|
35
|
-
bc_type_detect:
|
|
27
|
+
bc_angle_detect: SkipValidation[float] = Field(alias="bcAngle_DETECT")
|
|
28
|
+
bc_code_result: SkipValidation[int] = Field(alias="bcCodeResult")
|
|
29
|
+
bc_count_module: SkipValidation[int] = Field(alias="bcCountModule")
|
|
30
|
+
bc_data_module: SkipValidation[List[DataModule]] = Field(alias="bcDataModule")
|
|
31
|
+
bc_pdf417_info: SkipValidation[Optional[BcPDF417INFO]] = Field(alias="bcPDF417INFO", default=None)
|
|
32
|
+
bc_roi_detect: SkipValidation[BcROIDETECT] = Field(alias="bcROI_DETECT")
|
|
33
|
+
bc_text_decoder_types: SkipValidation[Optional[int]] = Field(alias="bcTextDecoderTypes", default=None)
|
|
34
|
+
bc_text_field_type: SkipValidation[Optional[TextFieldType]] = Field(alias="bcTextFieldType", default=None)
|
|
35
|
+
bc_type_decode: SkipValidation[BarcodeType] = Field(alias="bcType_DECODE")
|
|
36
|
+
bc_type_detect: SkipValidation[int] = Field(alias="bcType_DETECT")
|
|
36
37
|
__properties: ClassVar[List[str]] = ["bcAngle_DETECT", "bcCodeResult", "bcCountModule", "bcDataModule", "bcPDF417INFO", "bcROI_DETECT", "bcTextDecoderTypes", "bcTextFieldType", "bcType_DECODE", "bcType_DETECT"]
|
|
37
38
|
|
|
38
39
|
model_config = ConfigDict(
|
|
39
40
|
populate_by_name=True,
|
|
40
41
|
validate_assignment=True,
|
|
41
42
|
protected_namespaces=(),
|
|
43
|
+
arbitrary_types_allowed=True,
|
|
44
|
+
use_enum_values=True
|
|
42
45
|
)
|
|
43
46
|
|
|
44
47
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.parsing_notification_codes import ParsingNotificationCodes
|
|
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 ParsedData(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ParsedData
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
parsing_notifications: Optional[List[ParsingNotificationCodes]] = Field(
|
|
23
|
+
parsing_notifications: SkipValidation[Optional[List[ParsingNotificationCodes]]] = Field(alias="ParsingNotifications", default=None)
|
|
23
24
|
__properties: ClassVar[List[str]] = ["ParsingNotifications"]
|
|
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
|
|
|
@@ -13,19 +13,22 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
|
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 PerDocumentConfig(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
PerDocumentConfig
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
doc_id: Optional[List[
|
|
22
|
-
exclude_auth_checks: Optional[
|
|
22
|
+
doc_id: SkipValidation[Optional[List[int]]] = Field(alias="docID", default=None, description="Specific template IDs, for which apply current custom configuration")
|
|
23
|
+
exclude_auth_checks: SkipValidation[Optional[int]] = Field(alias="excludeAuthChecks", default=None, description="Contains items from AuthenticityResultType as sum via OR operation")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["docID", "excludeAuthChecks"]
|
|
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
|
|
|
@@ -17,26 +17,29 @@ from regula.documentreader.webclient.gen.models.raw_image_container_list import
|
|
|
17
17
|
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
18
18
|
from typing import Optional, Set
|
|
19
19
|
from typing_extensions import Self
|
|
20
|
+
from pydantic import SkipValidation, Field
|
|
20
21
|
|
|
21
22
|
class PhotoIdentItem(BaseModel):
|
|
22
23
|
"""
|
|
23
24
|
PhotoIdentItem
|
|
24
25
|
""" # noqa: E501
|
|
25
|
-
light_index: Light = Field(alias="LightIndex")
|
|
26
|
-
area: RectangleCoordinates = Field(alias="Area")
|
|
27
|
-
source_image: ImageData = Field(alias="SourceImage")
|
|
28
|
-
result_images: RawImageContainerList = Field(alias="ResultImages")
|
|
29
|
-
field_types_count: Optional[
|
|
30
|
-
field_types_list: Optional[List[
|
|
31
|
-
step: Optional[
|
|
32
|
-
angle: Optional[
|
|
33
|
-
reserved3: Optional[
|
|
26
|
+
light_index: SkipValidation[Light] = Field(alias="LightIndex")
|
|
27
|
+
area: SkipValidation[RectangleCoordinates] = Field(alias="Area")
|
|
28
|
+
source_image: SkipValidation[ImageData] = Field(alias="SourceImage")
|
|
29
|
+
result_images: SkipValidation[RawImageContainerList] = Field(alias="ResultImages")
|
|
30
|
+
field_types_count: SkipValidation[Optional[int]] = Field(alias="FieldTypesCount", default=None)
|
|
31
|
+
field_types_list: SkipValidation[Optional[List[int]]] = Field(alias="FieldTypesList", default=None)
|
|
32
|
+
step: SkipValidation[Optional[int]] = Field(alias="Step", default=None)
|
|
33
|
+
angle: SkipValidation[Optional[int]] = Field(alias="Angle", default=None)
|
|
34
|
+
reserved3: SkipValidation[Optional[int]] = Field(alias="Reserved3", default=None)
|
|
34
35
|
__properties: ClassVar[List[str]] = ["LightIndex", "Area", "SourceImage", "ResultImages", "FieldTypesCount", "FieldTypesList", "Step", "Angle", "Reserved3"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
38
|
populate_by_name=True,
|
|
38
39
|
validate_assignment=True,
|
|
39
40
|
protected_namespaces=(),
|
|
41
|
+
arbitrary_types_allowed=True,
|
|
42
|
+
use_enum_values=True
|
|
40
43
|
)
|
|
41
44
|
|
|
42
45
|
|
|
@@ -21,26 +21,29 @@ from regula.documentreader.webclient.gen.models.raw_image_container_list import
|
|
|
21
21
|
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
|
+
from pydantic import SkipValidation, Field
|
|
24
25
|
|
|
25
26
|
class PhotoIdentResult(AuthenticityCheckResultItem):
|
|
26
27
|
"""
|
|
27
28
|
PhotoIdentResult
|
|
28
29
|
""" # noqa: E501
|
|
29
|
-
light_index: Light = Field(alias="LightIndex")
|
|
30
|
-
area: RectangleCoordinates = Field(alias="Area")
|
|
31
|
-
source_image: ImageData = Field(alias="SourceImage")
|
|
32
|
-
result_images: RawImageContainerList = Field(alias="ResultImages")
|
|
33
|
-
field_types_count: Optional[
|
|
34
|
-
field_types_list: Optional[List[
|
|
35
|
-
step: Optional[
|
|
36
|
-
angle: Optional[
|
|
37
|
-
reserved3: Optional[
|
|
30
|
+
light_index: SkipValidation[Light] = Field(alias="LightIndex")
|
|
31
|
+
area: SkipValidation[RectangleCoordinates] = Field(alias="Area")
|
|
32
|
+
source_image: SkipValidation[ImageData] = Field(alias="SourceImage")
|
|
33
|
+
result_images: SkipValidation[RawImageContainerList] = Field(alias="ResultImages")
|
|
34
|
+
field_types_count: SkipValidation[Optional[int]] = Field(alias="FieldTypesCount", default=None)
|
|
35
|
+
field_types_list: SkipValidation[Optional[List[int]]] = Field(alias="FieldTypesList", default=None)
|
|
36
|
+
step: SkipValidation[Optional[int]] = Field(alias="Step", default=None)
|
|
37
|
+
angle: SkipValidation[Optional[int]] = Field(alias="Angle", default=None)
|
|
38
|
+
reserved3: SkipValidation[Optional[int]] = Field(alias="Reserved3", default=None)
|
|
38
39
|
__properties: ClassVar[List[str]] = ["Type", "ElementResult", "ElementDiagnose", "PercentValue", "LightIndex", "Area", "SourceImage", "ResultImages", "FieldTypesCount", "FieldTypesList", "Step", "Angle", "Reserved3"]
|
|
39
40
|
|
|
40
41
|
model_config = ConfigDict(
|
|
41
42
|
populate_by_name=True,
|
|
42
43
|
validate_assignment=True,
|
|
43
44
|
protected_namespaces=(),
|
|
45
|
+
arbitrary_types_allowed=True,
|
|
46
|
+
use_enum_values=True
|
|
44
47
|
)
|
|
45
48
|
|
|
46
49
|
|
|
@@ -13,19 +13,22 @@ from pydantic import BaseModel, ConfigDict, StrictInt
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List
|
|
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 Point(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
Point
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
x:
|
|
22
|
-
y:
|
|
22
|
+
x: SkipValidation[int] = Field(alias="x")
|
|
23
|
+
y: SkipValidation[int] = Field(alias="y")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["x", "y"]
|
|
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.point import Point
|
|
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 PointArray(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
PointArray
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
points_list: List[Point] = Field(alias="PointsList")
|
|
23
|
+
points_list: SkipValidation[List[Point]] = Field(alias="PointsList")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["PointsList"]
|
|
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,19 +14,22 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.point import Point
|
|
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 PointsContainer(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
PointsContainer
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
point_count: Optional[
|
|
23
|
-
points_list: List[Point] = Field(alias="PointsList")
|
|
23
|
+
point_count: SkipValidation[Optional[int]] = Field(alias="PointCount", default=None)
|
|
24
|
+
points_list: SkipValidation[List[Point]] = Field(alias="PointsList")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["PointCount", "PointsList"]
|
|
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
|
|