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
|
@@ -15,21 +15,24 @@ from regula.documentreader.webclient.gen.models.graphic_field_type import Graphi
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.images_field_value import ImagesFieldValue
|
|
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 ImagesField(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
ImagesField
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
field_name:
|
|
24
|
-
field_type: GraphicFieldType = Field(alias="fieldType")
|
|
25
|
-
value_list: List[ImagesFieldValue] = Field(alias="valueList")
|
|
26
|
-
value_count: Optional[
|
|
24
|
+
field_name: SkipValidation[str] = Field(alias="fieldName", description="Human readable field name. Do not bind to this name - use GraphicFieldType instead.")
|
|
25
|
+
field_type: SkipValidation[GraphicFieldType] = Field(alias="fieldType")
|
|
26
|
+
value_list: SkipValidation[List[ImagesFieldValue]] = Field(alias="valueList")
|
|
27
|
+
value_count: SkipValidation[Optional[float]] = Field(alias="valueCount", default=None, description="Field value count")
|
|
27
28
|
__properties: ClassVar[List[str]] = ["fieldName", "fieldType", "valueList", "valueCount"]
|
|
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
|
|
|
@@ -17,26 +17,29 @@ from regula.documentreader.webclient.gen.models.rfid_origin import RfidOrigin
|
|
|
17
17
|
from regula.documentreader.webclient.gen.models.source import Source
|
|
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 ImagesFieldValue(BaseModel):
|
|
22
23
|
"""
|
|
23
24
|
ImagesFieldValue
|
|
24
25
|
""" # noqa: E501
|
|
25
|
-
source: Source
|
|
26
|
-
value: Optional[
|
|
27
|
-
original_value: Optional[
|
|
28
|
-
original_page_index: Optional[
|
|
29
|
-
page_index:
|
|
30
|
-
light_index: Light = Field(alias="lightIndex")
|
|
31
|
-
container_type:
|
|
32
|
-
field_rect: Optional[RectangleCoordinates] = Field(
|
|
33
|
-
rfid_origin: Optional[RfidOrigin] = Field(
|
|
26
|
+
source: SkipValidation[Source] = Field(alias="source")
|
|
27
|
+
value: SkipValidation[Optional[str]] = Field(alias="value", default=None, description="Base64 encoded image")
|
|
28
|
+
original_value: SkipValidation[Optional[str]] = Field(alias="originalValue", default=None, description="Base64 encoded image")
|
|
29
|
+
original_page_index: SkipValidation[Optional[int]] = Field(alias="originalPageIndex", default=None, description="Original page index")
|
|
30
|
+
page_index: SkipValidation[int] = Field(alias="pageIndex", description="Page index of the image from input list")
|
|
31
|
+
light_index: SkipValidation[Light] = Field(alias="lightIndex")
|
|
32
|
+
container_type: SkipValidation[int] = Field(alias="containerType", description="Same as Result type, but used for safe parsing of not-described values. See Result type.")
|
|
33
|
+
field_rect: SkipValidation[Optional[RectangleCoordinates]] = Field(alias="fieldRect", default=None)
|
|
34
|
+
rfid_origin: SkipValidation[Optional[RfidOrigin]] = Field(alias="rfidOrigin", default=None)
|
|
34
35
|
__properties: ClassVar[List[str]] = ["source", "value", "originalValue", "originalPageIndex", "pageIndex", "lightIndex", "containerType", "fieldRect", "rfidOrigin"]
|
|
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
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.images import Images
|
|
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 ImagesItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ImagesItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
images: Images = Field(alias="Images")
|
|
23
|
+
images: SkipValidation[Images] = Field(alias="Images")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["Images"]
|
|
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
|
|
|
@@ -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 ImagesResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
ImagesResult
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
images: Images = Field(alias="Images")
|
|
25
|
+
images: SkipValidation[Images] = Field(alias="Images")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "Images"]
|
|
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
|
|
|
@@ -15,19 +15,22 @@ from regula.documentreader.webclient.gen.models.in_data_transaction_images_field
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo
|
|
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 InData(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
InData
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
video: Optional[InDataVideo] = None
|
|
24
|
-
images: Optional[List[InDataTransactionImagesFieldValue]] = None
|
|
24
|
+
video: SkipValidation[Optional[InDataVideo]] = Field(alias="video", default=None)
|
|
25
|
+
images: SkipValidation[Optional[List[InDataTransactionImagesFieldValue]]] = Field(alias="images", default=None)
|
|
25
26
|
__properties: ClassVar[List[str]] = ["video", "images"]
|
|
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,21 +14,24 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.light import Light
|
|
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 InDataTransactionImagesFieldValue(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
InDataTransactionImagesFieldValue
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
light: Optional[Light] = None
|
|
23
|
-
list_idx: Optional[
|
|
24
|
-
page_idx: Optional[
|
|
25
|
-
url: Optional[
|
|
23
|
+
light: SkipValidation[Optional[Light]] = Field(alias="light", default=None)
|
|
24
|
+
list_idx: SkipValidation[Optional[int]] = Field(alias="listIdx", default=None)
|
|
25
|
+
page_idx: SkipValidation[Optional[int]] = Field(alias="pageIdx", default=None, description="Page index of the image from input list")
|
|
26
|
+
url: SkipValidation[Optional[str]] = Field(alias="url", default=None, description="Image url")
|
|
26
27
|
__properties: ClassVar[List[str]] = ["light", "listIdx", "pageIdx", "url"]
|
|
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
|
|
|
@@ -13,19 +13,22 @@ 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 InDataVideo(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
Video
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
metadata: Optional[Dict[str,
|
|
22
|
-
url: Optional[
|
|
22
|
+
metadata: SkipValidation[Optional[Dict[str, object]]] = Field(alias="metadata", default=None, description="A free-form object containing video's extended attributes.")
|
|
23
|
+
url: SkipValidation[Optional[str]] = Field(alias="url", default=None, description="Video url")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["metadata", "url"]
|
|
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
|
|
|
@@ -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 LexicalAnalysisResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Lexical data analysis allows you to compare the results of reading the text data of the MRZ, the document filling area, barcodes and data from the memory of the RFID chip for an additional assessment of the authenticity of the document. Single result for all pages. Consider using Result.TEXT type for more simplicity.
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
list_verified_fields: ListVerifiedFields = Field(alias="ListVerifiedFields")
|
|
25
|
+
list_verified_fields: SkipValidation[ListVerifiedFields] = Field(alias="ListVerifiedFields")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "ListVerifiedFields"]
|
|
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
|
|
|
@@ -13,18 +13,21 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List, Union
|
|
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 LicenseItem(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
LicenseItem
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
license:
|
|
22
|
+
license: SkipValidation[bytearray] = Field(alias="License", description="Base64 encoded data")
|
|
22
23
|
__properties: ClassVar[List[str]] = ["License"]
|
|
23
24
|
|
|
24
25
|
model_config = ConfigDict(
|
|
25
26
|
populate_by_name=True,
|
|
26
27
|
validate_assignment=True,
|
|
27
28
|
protected_namespaces=(),
|
|
29
|
+
arbitrary_types_allowed=True,
|
|
30
|
+
use_enum_values=True
|
|
28
31
|
)
|
|
29
32
|
|
|
30
33
|
|
|
@@ -15,18 +15,21 @@ from regula.documentreader.webclient.gen.models.result import Result
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
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 LicenseResult(ResultItem):
|
|
20
21
|
"""
|
|
21
22
|
Contains license
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
license:
|
|
24
|
+
license: SkipValidation[bytearray] = Field(alias="License", description="Base64 encoded data")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "License"]
|
|
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,19 +14,22 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.get_transactions_by_tag_response import GetTransactionsByTagResponse
|
|
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 ListTransactionsByTagResponse(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ListTransactionsByTagResponse
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
items: Optional[List[GetTransactionsByTagResponse]] = None
|
|
23
|
-
metadata: Optional[Dict[str,
|
|
23
|
+
items: SkipValidation[Optional[List[GetTransactionsByTagResponse]]] = Field(alias="items", default=None)
|
|
24
|
+
metadata: SkipValidation[Optional[Dict[str, object]]] = Field(alias="metadata", default=None)
|
|
24
25
|
__properties: ClassVar[List[str]] = ["items", "metadata"]
|
|
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,20 +14,23 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.verified_field_map import VerifiedFieldMap
|
|
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 ListVerifiedFields(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ListVerifiedFields
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
count:
|
|
23
|
-
p_field_maps: List[VerifiedFieldMap] = Field(alias="pFieldMaps")
|
|
24
|
-
p_date_format: Optional[
|
|
23
|
+
count: SkipValidation[float] = Field(alias="Count", description="Number of pFieldMaps array elements")
|
|
24
|
+
p_field_maps: SkipValidation[List[VerifiedFieldMap]] = Field(alias="pFieldMaps")
|
|
25
|
+
p_date_format: SkipValidation[Optional[str]] = Field(alias="pDateFormat", default=None)
|
|
25
26
|
__properties: ClassVar[List[str]] = ["Count", "pFieldMaps", "pDateFormat"]
|
|
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,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.list_verified_fields import ListVerifiedFields
|
|
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 ListVerifiedFieldsItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ListVerifiedFieldsItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
list_verified_fields: ListVerifiedFields = Field(alias="ListVerifiedFields")
|
|
23
|
+
list_verified_fields: SkipValidation[ListVerifiedFields] = Field(alias="ListVerifiedFields")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["ListVerifiedFields"]
|
|
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,24 +13,27 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool
|
|
|
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 LivenessParams(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
LivenessParams
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
check_ovi: Optional[
|
|
22
|
-
check_mli: Optional[
|
|
23
|
-
check_holo: Optional[
|
|
24
|
-
check_ed: Optional[
|
|
25
|
-
check_black_and_white_copy: Optional[
|
|
26
|
-
check_dynaprint: Optional[
|
|
27
|
-
check_geometry: Optional[
|
|
22
|
+
check_ovi: SkipValidation[Optional[bool]] = Field(alias="checkOVI", default=None, description="This parameter is used to enable OVI check")
|
|
23
|
+
check_mli: SkipValidation[Optional[bool]] = Field(alias="checkMLI", default=None, description="This parameter is used to enable MLI check")
|
|
24
|
+
check_holo: SkipValidation[Optional[bool]] = Field(alias="checkHolo", default=None, description="This parameter is used to enable Hologram detection")
|
|
25
|
+
check_ed: SkipValidation[Optional[bool]] = Field(alias="checkED", default=None, description="This parameter is used to enable Electronic device detection")
|
|
26
|
+
check_black_and_white_copy: SkipValidation[Optional[bool]] = Field(alias="checkBlackAndWhiteCopy", default=None, description="This parameter is used to enable Black and white copy check")
|
|
27
|
+
check_dynaprint: SkipValidation[Optional[bool]] = Field(alias="checkDynaprint", default=None, description="This parameter is used to enable Dynaprint check")
|
|
28
|
+
check_geometry: SkipValidation[Optional[bool]] = Field(alias="checkGeometry", default=None, description="This parameter is used to enable Geometry check")
|
|
28
29
|
__properties: ClassVar[List[str]] = ["checkOVI", "checkMLI", "checkHolo", "checkED", "checkBlackAndWhiteCopy", "checkDynaprint", "checkGeometry"]
|
|
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
|
|
|
@@ -16,18 +16,21 @@ from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.result_mrz_detector import ResultMRZDetector
|
|
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 MRZDetectorResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
MRZDetectorResult
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
result_mrz_detector: ResultMRZDetector = Field(alias="ResultMRZDetector")
|
|
25
|
+
result_mrz_detector: SkipValidation[ResultMRZDetector] = Field(alias="ResultMRZDetector")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "ResultMRZDetector"]
|
|
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,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.document_position import DocumentPosition
|
|
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 MrzPositionItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
MrzPositionItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
mrz_position: DocumentPosition = Field(alias="MrzPosition")
|
|
23
|
+
mrz_position: SkipValidation[DocumentPosition] = Field(alias="MrzPosition")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["MrzPosition"]
|
|
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
|
|
|
@@ -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 MRZPositionResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
MRZPositionResult
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
mrz_position: DocumentPosition = Field(alias="MrzPosition")
|
|
25
|
+
mrz_position: SkipValidation[DocumentPosition] = Field(alias="MrzPosition")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "MrzPosition"]
|
|
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,20 +14,23 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.symbol import Symbol
|
|
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 MRZRowsItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
MRZRowsItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
length:
|
|
23
|
-
max_length:
|
|
24
|
-
symbols: List[Symbol]
|
|
23
|
+
length: SkipValidation[int] = Field(alias="length")
|
|
24
|
+
max_length: SkipValidation[int] = Field(alias="maxLength")
|
|
25
|
+
symbols: SkipValidation[List[Symbol]] = Field(alias="symbols")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["length", "maxLength", "symbols"]
|
|
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
|
|
|
@@ -15,27 +15,30 @@ from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.string_item import StringItem
|
|
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 MRZTestQuality(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
MRZTestQuality
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
check_sums: CheckResult = Field(alias="CHECK_SUMS")
|
|
24
|
-
contrast_print: CheckResult = Field(alias="CONTRAST_PRINT")
|
|
25
|
-
doc_format:
|
|
26
|
-
mrz_format:
|
|
27
|
-
print_position: CheckResult = Field(alias="PRINT_POSITION")
|
|
28
|
-
stain_mrz: CheckResult = Field(alias="STAIN_MRZ")
|
|
29
|
-
symbols_param: CheckResult = Field(alias="SYMBOLS_PARAM")
|
|
30
|
-
str_count:
|
|
31
|
-
strings: List[StringItem] = Field(alias="Strings")
|
|
32
|
-
textual_filling: CheckResult = Field(alias="TEXTUAL_FILLING")
|
|
24
|
+
check_sums: SkipValidation[CheckResult] = Field(alias="CHECK_SUMS")
|
|
25
|
+
contrast_print: SkipValidation[CheckResult] = Field(alias="CONTRAST_PRINT")
|
|
26
|
+
doc_format: SkipValidation[int] = Field(alias="DOC_FORMAT")
|
|
27
|
+
mrz_format: SkipValidation[int] = Field(alias="MRZ_FORMAT")
|
|
28
|
+
print_position: SkipValidation[CheckResult] = Field(alias="PRINT_POSITION")
|
|
29
|
+
stain_mrz: SkipValidation[CheckResult] = Field(alias="STAIN_MRZ")
|
|
30
|
+
symbols_param: SkipValidation[CheckResult] = Field(alias="SYMBOLS_PARAM")
|
|
31
|
+
str_count: SkipValidation[int] = Field(alias="StrCount")
|
|
32
|
+
strings: SkipValidation[List[StringItem]] = Field(alias="Strings")
|
|
33
|
+
textual_filling: SkipValidation[CheckResult] = Field(alias="TEXTUAL_FILLING")
|
|
33
34
|
__properties: ClassVar[List[str]] = ["CHECK_SUMS", "CONTRAST_PRINT", "DOC_FORMAT", "MRZ_FORMAT", "PRINT_POSITION", "STAIN_MRZ", "SYMBOLS_PARAM", "StrCount", "Strings", "TEXTUAL_FILLING"]
|
|
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
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.mrz_test_quality import MRZTestQuality
|
|
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 MRZTestQualityItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
MRZTestQualityItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
mrz_test_quality: MRZTestQuality = Field(alias="MRZTestQuality")
|
|
23
|
+
mrz_test_quality: SkipValidation[MRZTestQuality] = Field(alias="MRZTestQuality")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["MRZTestQuality"]
|
|
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
|
|
|
@@ -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 MRZTestQualityResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
MRZTestQualityResult
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
mrz_test_quality: MRZTestQuality = Field(alias="MRZTestQuality")
|
|
25
|
+
mrz_test_quality: SkipValidation[MRZTestQuality] = Field(alias="MRZTestQuality")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "MRZTestQuality"]
|
|
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
|
|
|
@@ -17,28 +17,31 @@ from regula.documentreader.webclient.gen.models.rectangle_coordinates import Rec
|
|
|
17
17
|
from regula.documentreader.webclient.gen.models.text_field_type import TextFieldType
|
|
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 OCRSecurityTextItem(BaseModel):
|
|
22
23
|
"""
|
|
23
24
|
OCRSecurityTextItem
|
|
24
25
|
""" # noqa: E501
|
|
25
|
-
critical_flag: Critical = Field(alias="CriticalFlag")
|
|
26
|
-
light_type: Light = Field(alias="LightType")
|
|
27
|
-
field_rect: RectangleCoordinates = Field(alias="FieldRect")
|
|
28
|
-
etalon_result_type:
|
|
29
|
-
etalon_field_type: TextFieldType = Field(alias="EtalonFieldType")
|
|
30
|
-
etalon_light_type: Light = Field(alias="EtalonLightType")
|
|
31
|
-
etalon_field_rect: RectangleCoordinates = Field(alias="EtalonFieldRect")
|
|
32
|
-
security_text_result_ocr:
|
|
33
|
-
etalon_result_ocr:
|
|
34
|
-
reserved1: Optional[
|
|
35
|
-
reserved2: Optional[
|
|
26
|
+
critical_flag: SkipValidation[Critical] = Field(alias="CriticalFlag")
|
|
27
|
+
light_type: SkipValidation[Light] = Field(alias="LightType")
|
|
28
|
+
field_rect: SkipValidation[RectangleCoordinates] = Field(alias="FieldRect")
|
|
29
|
+
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.")
|
|
30
|
+
etalon_field_type: SkipValidation[TextFieldType] = Field(alias="EtalonFieldType")
|
|
31
|
+
etalon_light_type: SkipValidation[Light] = Field(alias="EtalonLightType")
|
|
32
|
+
etalon_field_rect: SkipValidation[RectangleCoordinates] = Field(alias="EtalonFieldRect")
|
|
33
|
+
security_text_result_ocr: SkipValidation[str] = Field(alias="SecurityTextResultOCR")
|
|
34
|
+
etalon_result_ocr: SkipValidation[str] = Field(alias="EtalonResultOCR")
|
|
35
|
+
reserved1: SkipValidation[Optional[int]] = Field(alias="Reserved1", default=None)
|
|
36
|
+
reserved2: SkipValidation[Optional[int]] = Field(alias="Reserved2", default=None)
|
|
36
37
|
__properties: ClassVar[List[str]] = ["CriticalFlag", "LightType", "FieldRect", "EtalonResultType", "EtalonFieldType", "EtalonLightType", "EtalonFieldRect", "SecurityTextResultOCR", "EtalonResultOCR", "Reserved1", "Reserved2"]
|
|
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
|
|