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
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
14
|
+
from typing import Optional, Set
|
|
15
|
+
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
17
|
+
|
|
18
|
+
class GlaresCheckParams(BaseModel):
|
|
19
|
+
"""
|
|
20
|
+
GlaresCheckParams
|
|
21
|
+
""" # noqa: E501
|
|
22
|
+
img_margin_part: SkipValidation[Optional[float]] = Field(alias="imgMarginPart", default=None, description="Margin from the edges of the image. 0.35 = 35%")
|
|
23
|
+
max_glaring_part: SkipValidation[Optional[float]] = Field(alias="maxGlaringPart", default=None, description="The maximum allowable part of the area occupied by the glare. The same: 0.06 = 6%")
|
|
24
|
+
__properties: ClassVar[List[str]] = ["imgMarginPart", "maxGlaringPart"]
|
|
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 GlaresCheckParams 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
|
+
return _dict
|
|
68
|
+
|
|
69
|
+
@classmethod
|
|
70
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
71
|
+
"""Create an instance of GlaresCheckParams from a dict"""
|
|
72
|
+
if obj is None:
|
|
73
|
+
return None
|
|
74
|
+
|
|
75
|
+
if not isinstance(obj, dict):
|
|
76
|
+
return cls.model_validate(obj)
|
|
77
|
+
|
|
78
|
+
_obj = cls.model_validate({
|
|
79
|
+
"imgMarginPart": obj.get("imgMarginPart"),
|
|
80
|
+
"maxGlaringPart": obj.get("maxGlaringPart")
|
|
81
|
+
})
|
|
82
|
+
return _obj
|
|
83
|
+
|
|
84
|
+
|
|
@@ -14,24 +14,27 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.file_image import FileImage
|
|
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 GraphData(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
GraphData
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
field_type:
|
|
23
|
-
file_image: FileImage = Field(alias="File_Image")
|
|
24
|
-
graphics_type:
|
|
25
|
-
origin_dg:
|
|
26
|
-
origin_dg_tag:
|
|
27
|
-
origin_entry_view:
|
|
28
|
-
origin_tag_entry:
|
|
23
|
+
field_type: SkipValidation[int] = Field(alias="FieldType")
|
|
24
|
+
file_image: SkipValidation[FileImage] = Field(alias="File_Image")
|
|
25
|
+
graphics_type: SkipValidation[int] = Field(alias="GraphicsType")
|
|
26
|
+
origin_dg: SkipValidation[int] = Field(alias="OriginDG")
|
|
27
|
+
origin_dg_tag: SkipValidation[int] = Field(alias="OriginDGTag")
|
|
28
|
+
origin_entry_view: SkipValidation[int] = Field(alias="OriginEntryView")
|
|
29
|
+
origin_tag_entry: SkipValidation[int] = Field(alias="OriginTagEntry")
|
|
29
30
|
__properties: ClassVar[List[str]] = ["FieldType", "File_Image", "GraphicsType", "OriginDG", "OriginDGTag", "OriginEntryView", "OriginTagEntry"]
|
|
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
|
|
|
@@ -16,21 +16,24 @@ from regula.documentreader.webclient.gen.models.image_data import ImageData
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
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 GraphicField(BaseModel):
|
|
21
22
|
"""
|
|
22
23
|
Information about one graphic field - abstract class
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
field_rect: RectangleCoordinates = Field(alias="FieldRect")
|
|
25
|
-
field_type: GraphicFieldType = Field(alias="FieldType")
|
|
26
|
-
field_name:
|
|
27
|
-
image: ImageData
|
|
25
|
+
field_rect: SkipValidation[RectangleCoordinates] = Field(alias="FieldRect")
|
|
26
|
+
field_type: SkipValidation[GraphicFieldType] = Field(alias="FieldType")
|
|
27
|
+
field_name: SkipValidation[str] = Field(alias="FieldName", description="Graphic field symbolic name")
|
|
28
|
+
image: SkipValidation[ImageData] = Field(alias="image")
|
|
28
29
|
__properties: ClassVar[List[str]] = ["FieldRect", "FieldType", "FieldName", "image"]
|
|
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
|
|
|
@@ -14,19 +14,22 @@ from typing import Any, ClassVar, Dict, List, Union
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.graphic_field import GraphicField
|
|
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 GraphicFieldsList(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
GraphicFieldsList
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
p_array_fields: List[GraphicField] = Field(alias="pArrayFields")
|
|
23
|
-
n_fields:
|
|
23
|
+
p_array_fields: SkipValidation[List[GraphicField]] = Field(alias="pArrayFields")
|
|
24
|
+
n_fields: SkipValidation[float] = Field(alias="nFields", description="Number of pArrayFields array elements")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["pArrayFields", "nFields"]
|
|
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
|
|
|
@@ -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 GraphicsResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Graphic fields extracted from one of the document sources. Returns separate results for each provided page.
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
doc_graphics_info: GraphicFieldsList = Field(alias="DocGraphicsInfo")
|
|
25
|
+
doc_graphics_info: SkipValidation[GraphicFieldsList] = Field(alias="DocGraphicsInfo")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "DocGraphicsInfo"]
|
|
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,26 +15,29 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.healthcheck_documents_database import HealthcheckDocumentsDatabase
|
|
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 Healthcheck(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
Healthcheck
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
app:
|
|
24
|
-
license_id:
|
|
25
|
-
license_type:
|
|
26
|
-
license_serial:
|
|
27
|
-
license_valid_until:
|
|
28
|
-
scenarios:
|
|
29
|
-
version:
|
|
30
|
-
metadata: Optional[Dict[str,
|
|
31
|
-
documents_database: Optional[HealthcheckDocumentsDatabase] = Field(
|
|
24
|
+
app: SkipValidation[str] = Field(alias="app", description="Application name.")
|
|
25
|
+
license_id: SkipValidation[str] = Field(alias="licenseId", description="Unique license identifier.")
|
|
26
|
+
license_type: SkipValidation[str] = Field(alias="licenseType", description="License type.")
|
|
27
|
+
license_serial: SkipValidation[str] = Field(alias="licenseSerial", description="License serial number.")
|
|
28
|
+
license_valid_until: SkipValidation[datetime] = Field(alias="licenseValidUntil", description="License validity date.")
|
|
29
|
+
scenarios: SkipValidation[List[str]] = Field(alias="scenarios", description="List of supported scenarios.")
|
|
30
|
+
version: SkipValidation[str] = Field(alias="version", description="Product version.")
|
|
31
|
+
metadata: SkipValidation[Optional[Dict[str, object]]] = Field(alias="metadata", default=None)
|
|
32
|
+
documents_database: SkipValidation[Optional[HealthcheckDocumentsDatabase]] = Field(alias="documentsDatabase", default=None)
|
|
32
33
|
__properties: ClassVar[List[str]] = ["app", "licenseId", "licenseType", "licenseSerial", "licenseValidUntil", "scenarios", "version", "metadata", "documentsDatabase"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
36
|
populate_by_name=True,
|
|
36
37
|
validate_assignment=True,
|
|
37
38
|
protected_namespaces=(),
|
|
39
|
+
arbitrary_types_allowed=True,
|
|
40
|
+
use_enum_values=True
|
|
38
41
|
)
|
|
39
42
|
|
|
40
43
|
|
|
@@ -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 HealthcheckDocumentsDatabase(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="exportDate", 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", "exportDate", "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
|
|
|
@@ -18,24 +18,27 @@ from regula.documentreader.webclient.gen.models.rectangle_coordinates import Rec
|
|
|
18
18
|
from regula.documentreader.webclient.gen.models.security_feature_type import SecurityFeatureType
|
|
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 IdentItem(BaseModel):
|
|
23
24
|
"""
|
|
24
25
|
IdentItem
|
|
25
26
|
""" # noqa: E501
|
|
26
|
-
element_type: SecurityFeatureType = Field(alias="ElementType")
|
|
27
|
-
light_index: Light = Field(alias="LightIndex")
|
|
28
|
-
area: Optional[RectangleCoordinates] = Field(
|
|
29
|
-
image: ImageData = Field(alias="Image")
|
|
30
|
-
etalon_image: ImageData = Field(alias="EtalonImage")
|
|
31
|
-
area_list: Optional[AreaContainer] = Field(
|
|
32
|
-
element_id: Optional[
|
|
27
|
+
element_type: SkipValidation[SecurityFeatureType] = Field(alias="ElementType")
|
|
28
|
+
light_index: SkipValidation[Light] = Field(alias="LightIndex")
|
|
29
|
+
area: SkipValidation[Optional[RectangleCoordinates]] = Field(alias="Area", default=None)
|
|
30
|
+
image: SkipValidation[ImageData] = Field(alias="Image")
|
|
31
|
+
etalon_image: SkipValidation[ImageData] = Field(alias="EtalonImage")
|
|
32
|
+
area_list: SkipValidation[Optional[AreaContainer]] = Field(alias="AreaList", default=None)
|
|
33
|
+
element_id: SkipValidation[Optional[int]] = Field(alias="ElementID", default=None)
|
|
33
34
|
__properties: ClassVar[List[str]] = ["ElementType", "LightIndex", "Area", "Image", "EtalonImage", "AreaList", "ElementID"]
|
|
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
|
|
|
@@ -22,24 +22,27 @@ from regula.documentreader.webclient.gen.models.rectangle_coordinates import Rec
|
|
|
22
22
|
from regula.documentreader.webclient.gen.models.security_feature_type import SecurityFeatureType
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic import SkipValidation, Field
|
|
25
26
|
|
|
26
27
|
class IdentResult(AuthenticityCheckResultItem):
|
|
27
28
|
"""
|
|
28
29
|
IdentResult
|
|
29
30
|
""" # noqa: E501
|
|
30
|
-
element_type: SecurityFeatureType = Field(alias="ElementType")
|
|
31
|
-
light_index: Light = Field(alias="LightIndex")
|
|
32
|
-
area: Optional[RectangleCoordinates] = Field(
|
|
33
|
-
image: ImageData = Field(alias="Image")
|
|
34
|
-
etalon_image: ImageData = Field(alias="EtalonImage")
|
|
35
|
-
area_list: Optional[AreaContainer] = Field(
|
|
36
|
-
element_id: Optional[
|
|
31
|
+
element_type: SkipValidation[SecurityFeatureType] = Field(alias="ElementType")
|
|
32
|
+
light_index: SkipValidation[Light] = Field(alias="LightIndex")
|
|
33
|
+
area: SkipValidation[Optional[RectangleCoordinates]] = Field(alias="Area", default=None)
|
|
34
|
+
image: SkipValidation[ImageData] = Field(alias="Image")
|
|
35
|
+
etalon_image: SkipValidation[ImageData] = Field(alias="EtalonImage")
|
|
36
|
+
area_list: SkipValidation[Optional[AreaContainer]] = Field(alias="AreaList", default=None)
|
|
37
|
+
element_id: SkipValidation[Optional[int]] = Field(alias="ElementID", default=None)
|
|
37
38
|
__properties: ClassVar[List[str]] = ["Type", "ElementResult", "ElementDiagnose", "PercentValue", "ElementType", "LightIndex", "Area", "Image", "EtalonImage", "AreaList", "ElementID"]
|
|
38
39
|
|
|
39
40
|
model_config = ConfigDict(
|
|
40
41
|
populate_by_name=True,
|
|
41
42
|
validate_assignment=True,
|
|
42
43
|
protected_namespaces=(),
|
|
44
|
+
arbitrary_types_allowed=True,
|
|
45
|
+
use_enum_values=True
|
|
43
46
|
)
|
|
44
47
|
|
|
45
48
|
|
|
@@ -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 ImageData(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
ImageData
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
image: Optional[
|
|
22
|
-
format: Optional[
|
|
22
|
+
image: SkipValidation[Optional[str]] = Field(alias="image", default=None, description="Base64 encoded image")
|
|
23
|
+
format: SkipValidation[Optional[str]] = Field(alias="format", default=None, description="Image format")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["image", "format"]
|
|
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
|
|
|
@@ -11,29 +11,34 @@ import json
|
|
|
11
11
|
|
|
12
12
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt
|
|
13
13
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
14
|
+
from regula.documentreader.webclient.gen.models.glares_check_params import GlaresCheckParams
|
|
14
15
|
from regula.documentreader.webclient.gen.models.input_image_quality_checks import InputImageQualityChecks
|
|
15
16
|
from typing import Optional, Set
|
|
16
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
17
19
|
|
|
18
20
|
class ImageQA(BaseModel):
|
|
19
21
|
"""
|
|
20
22
|
ImageQA
|
|
21
23
|
""" # noqa: E501
|
|
22
|
-
brightness_threshold: Optional[
|
|
23
|
-
dpi_threshold: Optional[
|
|
24
|
-
angle_threshold: Optional[
|
|
25
|
-
focus_check: Optional[
|
|
26
|
-
glares_check: Optional[
|
|
27
|
-
colorness_check: Optional[
|
|
28
|
-
moire_check: Optional[
|
|
29
|
-
document_position_indent: Optional[
|
|
30
|
-
expected_pass: Optional[List[InputImageQualityChecks]] = Field(default=None, description="This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process."
|
|
31
|
-
|
|
24
|
+
brightness_threshold: SkipValidation[Optional[float]] = Field(alias="brightnessThreshold", default=None, description="Set the threshold for an actual document brightness below which the check fails")
|
|
25
|
+
dpi_threshold: SkipValidation[Optional[int]] = Field(alias="dpiThreshold", default=None, description="This parameter sets threshold for Image QA check of the presented document physical dpi. If actual document dpi is below this threshold, check will fail.")
|
|
26
|
+
angle_threshold: SkipValidation[Optional[int]] = Field(alias="angleThreshold", default=None, description="This parameter sets threshold for Image QA check of the presented document perspective angle in degrees. If actual document perspective angle is above this threshold, check will fail.")
|
|
27
|
+
focus_check: SkipValidation[Optional[bool]] = Field(alias="focusCheck", default=None, description="This option enables focus check while performing image quality validation.")
|
|
28
|
+
glares_check: SkipValidation[Optional[bool]] = Field(alias="glaresCheck", default=None, description="This option enables glares check while performing image quality validation.")
|
|
29
|
+
colorness_check: SkipValidation[Optional[bool]] = Field(alias="colornessCheck", default=None, description="This option enables colorness check while performing image quality validation.")
|
|
30
|
+
moire_check: SkipValidation[Optional[bool]] = Field(alias="moireCheck", default=None, description="This option enables screen capture (moire patterns) check while performing image quality validation.")
|
|
31
|
+
document_position_indent: SkipValidation[Optional[int]] = Field(alias="documentPositionIndent", default=None, description="This parameter specifies the necessary margin. Default 0.")
|
|
32
|
+
expected_pass: SkipValidation[Optional[List[InputImageQualityChecks]]] = Field(alias="expectedPass", default=None, description="This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process.")
|
|
33
|
+
glares_check_params: SkipValidation[Optional[GlaresCheckParams]] = Field(alias="glaresCheckParams", default=None)
|
|
34
|
+
__properties: ClassVar[List[str]] = ["brightnessThreshold", "dpiThreshold", "angleThreshold", "focusCheck", "glaresCheck", "colornessCheck", "moireCheck", "documentPositionIndent", "expectedPass", "glaresCheckParams"]
|
|
32
35
|
|
|
33
36
|
model_config = ConfigDict(
|
|
34
37
|
populate_by_name=True,
|
|
35
38
|
validate_assignment=True,
|
|
36
39
|
protected_namespaces=(),
|
|
40
|
+
arbitrary_types_allowed=True,
|
|
41
|
+
use_enum_values=True
|
|
37
42
|
)
|
|
38
43
|
|
|
39
44
|
|
|
@@ -69,6 +74,9 @@ class ImageQA(BaseModel):
|
|
|
69
74
|
exclude=excluded_fields,
|
|
70
75
|
exclude_none=True,
|
|
71
76
|
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of glares_check_params
|
|
78
|
+
if self.glares_check_params:
|
|
79
|
+
_dict['glaresCheckParams'] = self.glares_check_params.to_dict()
|
|
72
80
|
return _dict
|
|
73
81
|
|
|
74
82
|
@classmethod
|
|
@@ -89,7 +97,8 @@ class ImageQA(BaseModel):
|
|
|
89
97
|
"colornessCheck": obj.get("colornessCheck"),
|
|
90
98
|
"moireCheck": obj.get("moireCheck"),
|
|
91
99
|
"documentPositionIndent": obj.get("documentPositionIndent"),
|
|
92
|
-
"expectedPass": obj.get("expectedPass")
|
|
100
|
+
"expectedPass": obj.get("expectedPass"),
|
|
101
|
+
"glaresCheckParams": GlaresCheckParams.from_dict(obj["glaresCheckParams"]) if obj.get("glaresCheckParams") is not None else None
|
|
93
102
|
})
|
|
94
103
|
return _obj
|
|
95
104
|
|
|
@@ -17,24 +17,27 @@ from regula.documentreader.webclient.gen.models.image_quality_check_type import
|
|
|
17
17
|
from regula.documentreader.webclient.gen.models.security_feature_type import SecurityFeatureType
|
|
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 ImageQualityCheck(BaseModel):
|
|
22
23
|
"""
|
|
23
24
|
ImageQualityCheck
|
|
24
25
|
""" # noqa: E501
|
|
25
|
-
type: ImageQualityCheckType
|
|
26
|
-
result: CheckResult
|
|
27
|
-
feature_type: SecurityFeatureType = Field(alias="featureType")
|
|
28
|
-
areas: Optional[AreaArray] = None
|
|
29
|
-
mean:
|
|
30
|
-
std_dev:
|
|
31
|
-
probability:
|
|
26
|
+
type: SkipValidation[ImageQualityCheckType] = Field(alias="type")
|
|
27
|
+
result: SkipValidation[CheckResult] = Field(alias="result")
|
|
28
|
+
feature_type: SkipValidation[SecurityFeatureType] = Field(alias="featureType")
|
|
29
|
+
areas: SkipValidation[Optional[AreaArray]] = Field(alias="areas", default=None)
|
|
30
|
+
mean: SkipValidation[float] = Field(alias="mean", description="Check mean value")
|
|
31
|
+
std_dev: SkipValidation[float] = Field(alias="std_dev", description="Check deviation value")
|
|
32
|
+
probability: SkipValidation[int] = Field(alias="probability", description="Check probability value")
|
|
32
33
|
__properties: ClassVar[List[str]] = ["type", "result", "featureType", "areas", "mean", "std_dev", "probability"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
36
|
populate_by_name=True,
|
|
36
37
|
validate_assignment=True,
|
|
37
38
|
protected_namespaces=(),
|
|
39
|
+
arbitrary_types_allowed=True,
|
|
40
|
+
use_enum_values=True
|
|
38
41
|
)
|
|
39
42
|
|
|
40
43
|
|
|
@@ -15,20 +15,23 @@ from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.image_quality_check import ImageQualityCheck
|
|
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 ImageQualityCheckList(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
ImageQualityCheckList
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
result: CheckResult
|
|
24
|
-
list: List[ImageQualityCheck] = Field(alias="List")
|
|
25
|
-
count:
|
|
24
|
+
result: SkipValidation[CheckResult] = Field(alias="result")
|
|
25
|
+
list: SkipValidation[List[ImageQualityCheck]] = Field(alias="List")
|
|
26
|
+
count: SkipValidation[float] = Field(alias="Count", description="Number of List array elements")
|
|
26
27
|
__properties: ClassVar[List[str]] = ["result", "List", "Count"]
|
|
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,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.image_quality_check_list import ImageQualityCheckList
|
|
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 ImageQualityCheckListItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ImageQualityCheckListItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
image_quality_check_list: ImageQualityCheckList = Field(alias="ImageQualityCheckList")
|
|
23
|
+
image_quality_check_list: SkipValidation[ImageQualityCheckList] = Field(alias="ImageQualityCheckList")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["ImageQualityCheckList"]
|
|
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 ImageQualityResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
ImageQualityResult
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
image_quality_check_list: ImageQualityCheckList = Field(alias="ImageQualityCheckList")
|
|
25
|
+
image_quality_check_list: SkipValidation[ImageQualityCheckList] = Field(alias="ImageQualityCheckList")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "ImageQualityCheckList"]
|
|
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, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.images_field_value import ImagesFieldValue
|
|
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 ImageTransactionData(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ImageTransactionData
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
image: Optional[ImagesFieldValue] = None
|
|
23
|
+
image: SkipValidation[Optional[ImagesFieldValue]] = Field(alias="image", default=None)
|
|
23
24
|
__properties: ClassVar[List[str]] = ["image"]
|
|
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
|
|
|
@@ -15,21 +15,24 @@ from regula.documentreader.webclient.gen.models.images_available_source import I
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.images_field import ImagesField
|
|
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 Images(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
Images
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
field_count: Optional[
|
|
24
|
-
available_source_count: Optional[
|
|
25
|
-
available_source_list: List[ImagesAvailableSource] = Field(alias="availableSourceList")
|
|
26
|
-
field_list: List[ImagesField] = Field(alias="fieldList")
|
|
24
|
+
field_count: SkipValidation[Optional[int]] = Field(alias="fieldCount", default=None, description="Fields count")
|
|
25
|
+
available_source_count: SkipValidation[Optional[int]] = Field(alias="availableSourceCount", default=None, description="Available sources count")
|
|
26
|
+
available_source_list: SkipValidation[List[ImagesAvailableSource]] = Field(alias="availableSourceList")
|
|
27
|
+
field_list: SkipValidation[List[ImagesField]] = Field(alias="fieldList")
|
|
27
28
|
__properties: ClassVar[List[str]] = ["fieldCount", "availableSourceCount", "availableSourceList", "fieldList"]
|
|
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
|
|
|
@@ -14,19 +14,22 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.source import Source
|
|
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 ImagesAvailableSource(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
ImagesAvailableSource
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
container_type:
|
|
23
|
-
source: Source
|
|
23
|
+
container_type: SkipValidation[int] = Field(alias="containerType", description="Same as Result type, but used for safe parsing of not-described values. See Result type.")
|
|
24
|
+
source: SkipValidation[Source] = Field(alias="source")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["containerType", "source"]
|
|
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
|
|