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,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from regula.documentreader.webclient.gen.models.database_document import DatabaseDocument
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
18
|
+
|
|
19
|
+
class DatabaseDocumentList(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
DatabaseDocumentList
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
items: SkipValidation[List[DatabaseDocument]] = Field(alias="items", description="The list of documents stored in the database.")
|
|
24
|
+
__properties: ClassVar[List[str]] = ["items"]
|
|
25
|
+
|
|
26
|
+
model_config = ConfigDict(
|
|
27
|
+
populate_by_name=True,
|
|
28
|
+
validate_assignment=True,
|
|
29
|
+
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def to_str(self) -> str:
|
|
36
|
+
"""Returns the string representation of the model using alias"""
|
|
37
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
38
|
+
|
|
39
|
+
def to_json(self) -> str:
|
|
40
|
+
"""Returns the JSON representation of the model using alias"""
|
|
41
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
42
|
+
return json.dumps(self.to_dict())
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
46
|
+
"""Create an instance of DatabaseDocumentList from a JSON string"""
|
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
|
48
|
+
|
|
49
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
50
|
+
"""Return the dictionary representation of the model using alias.
|
|
51
|
+
|
|
52
|
+
This has the following differences from calling pydantic's
|
|
53
|
+
`self.model_dump(by_alias=True)`:
|
|
54
|
+
|
|
55
|
+
* `None` is only added to the output dict for nullable fields that
|
|
56
|
+
were set at model initialization. Other fields with value `None`
|
|
57
|
+
are ignored.
|
|
58
|
+
"""
|
|
59
|
+
excluded_fields: Set[str] = set([
|
|
60
|
+
])
|
|
61
|
+
|
|
62
|
+
_dict = self.model_dump(
|
|
63
|
+
by_alias=True,
|
|
64
|
+
exclude=excluded_fields,
|
|
65
|
+
exclude_none=True,
|
|
66
|
+
)
|
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of each item in items (list)
|
|
68
|
+
_items = []
|
|
69
|
+
if self.items:
|
|
70
|
+
for _item_items in self.items:
|
|
71
|
+
if _item_items:
|
|
72
|
+
_items.append(_item_items.to_dict())
|
|
73
|
+
_dict['items'] = _items
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of DatabaseDocumentList from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"items": [DatabaseDocument.from_dict(_item) for _item in obj.get("items", []) if DatabaseDocument.from_dict(_item) is not None]
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -14,26 +14,29 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DetailsOptical(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
Details on performed optical checks
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
overall_status: CheckResult = Field(alias="overallStatus")
|
|
23
|
-
doc_type: CheckResult = Field(alias="docType")
|
|
24
|
-
expiry: CheckResult
|
|
25
|
-
image_qa: CheckResult = Field(alias="imageQA")
|
|
26
|
-
mrz: CheckResult
|
|
27
|
-
pages_count:
|
|
28
|
-
security: CheckResult
|
|
29
|
-
text: CheckResult
|
|
30
|
-
vds: Optional[
|
|
23
|
+
overall_status: SkipValidation[CheckResult] = Field(alias="overallStatus")
|
|
24
|
+
doc_type: SkipValidation[CheckResult] = Field(alias="docType")
|
|
25
|
+
expiry: SkipValidation[CheckResult] = Field(alias="expiry")
|
|
26
|
+
image_qa: SkipValidation[CheckResult] = Field(alias="imageQA")
|
|
27
|
+
mrz: SkipValidation[CheckResult] = Field(alias="mrz")
|
|
28
|
+
pages_count: SkipValidation[int] = Field(alias="pagesCount", description="Number of processed pages in the document")
|
|
29
|
+
security: SkipValidation[CheckResult] = Field(alias="security")
|
|
30
|
+
text: SkipValidation[CheckResult] = Field(alias="text")
|
|
31
|
+
vds: SkipValidation[Optional[int]] = Field(alias="vds", default=None)
|
|
31
32
|
__properties: ClassVar[List[str]] = ["overallStatus", "docType", "expiry", "imageQA", "mrz", "pagesCount", "security", "text", "vds"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
35
|
populate_by_name=True,
|
|
35
36
|
validate_assignment=True,
|
|
36
37
|
protected_namespaces=(),
|
|
38
|
+
arbitrary_types_allowed=True,
|
|
39
|
+
use_enum_values=True
|
|
37
40
|
)
|
|
38
41
|
|
|
39
42
|
|
|
@@ -14,24 +14,27 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DetailsRFID(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
Details on performed RFID checks
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
overall_status: CheckResult = Field(alias="overallStatus")
|
|
23
|
-
aa: CheckResult = Field(alias="AA")
|
|
24
|
-
bac: CheckResult = Field(alias="BAC")
|
|
25
|
-
ca: CheckResult = Field(alias="CA")
|
|
26
|
-
pa: CheckResult = Field(alias="PA")
|
|
27
|
-
pace: CheckResult = Field(alias="PACE")
|
|
28
|
-
ta: CheckResult = Field(alias="TA")
|
|
23
|
+
overall_status: SkipValidation[CheckResult] = Field(alias="overallStatus")
|
|
24
|
+
aa: SkipValidation[CheckResult] = Field(alias="AA")
|
|
25
|
+
bac: SkipValidation[CheckResult] = Field(alias="BAC")
|
|
26
|
+
ca: SkipValidation[CheckResult] = Field(alias="CA")
|
|
27
|
+
pa: SkipValidation[CheckResult] = Field(alias="PA")
|
|
28
|
+
pace: SkipValidation[CheckResult] = Field(alias="PACE")
|
|
29
|
+
ta: SkipValidation[CheckResult] = Field(alias="TA")
|
|
29
30
|
__properties: ClassVar[List[str]] = ["overallStatus", "AA", "BAC", "CA", "PA", "PACE", "TA"]
|
|
30
31
|
|
|
31
32
|
model_config = ConfigDict(
|
|
32
33
|
populate_by_name=True,
|
|
33
34
|
validate_assignment=True,
|
|
34
35
|
protected_namespaces=(),
|
|
36
|
+
arbitrary_types_allowed=True,
|
|
37
|
+
use_enum_values=True
|
|
35
38
|
)
|
|
36
39
|
|
|
37
40
|
|
|
@@ -15,27 +15,30 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.device_info_documents_database import DeviceInfoDocumentsDatabase
|
|
16
16
|
from typing import Optional, Set
|
|
17
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
18
19
|
|
|
19
20
|
class DeviceInfo(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
DeviceInfo
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
app_name: Optional[
|
|
24
|
-
version: Optional[
|
|
25
|
-
license_id: Optional[
|
|
26
|
-
license_serial: Optional[
|
|
27
|
-
license_type: Optional[
|
|
28
|
-
valid_until: Optional[datetime] = Field(default=None, description="License validity date."
|
|
29
|
-
server_time: Optional[
|
|
30
|
-
supported_scenarios: Optional[List[
|
|
31
|
-
metadata: Optional[Dict[str,
|
|
32
|
-
documents_database: Optional[DeviceInfoDocumentsDatabase] = Field(
|
|
24
|
+
app_name: SkipValidation[Optional[str]] = Field(alias="app-name", default=None, description="Application name.")
|
|
25
|
+
version: SkipValidation[Optional[str]] = Field(alias="version", default=None, description="Product version.")
|
|
26
|
+
license_id: SkipValidation[Optional[str]] = Field(alias="license-id", default=None, description="Unique license identifier.")
|
|
27
|
+
license_serial: SkipValidation[Optional[str]] = Field(alias="license-serial", default=None, description="License serial number.")
|
|
28
|
+
license_type: SkipValidation[Optional[str]] = Field(alias="license-type", default=None)
|
|
29
|
+
valid_until: SkipValidation[Optional[datetime]] = Field(alias="valid-until", default=None, description="License validity date.")
|
|
30
|
+
server_time: SkipValidation[Optional[str]] = Field(alias="server-time", default=None)
|
|
31
|
+
supported_scenarios: SkipValidation[Optional[List[str]]] = Field(alias="supported-scenarios", default=None, description="List of supported scenarios.")
|
|
32
|
+
metadata: SkipValidation[Optional[Dict[str, object]]] = Field(alias="metadata", default=None)
|
|
33
|
+
documents_database: SkipValidation[Optional[DeviceInfoDocumentsDatabase]] = Field(alias="documents-database", default=None)
|
|
33
34
|
__properties: ClassVar[List[str]] = ["app-name", "version", "license-id", "license-serial", "license-type", "valid-until", "server-time", "supported-scenarios", "metadata", "documents-database"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
37
|
populate_by_name=True,
|
|
37
38
|
validate_assignment=True,
|
|
38
39
|
protected_namespaces=(),
|
|
40
|
+
arbitrary_types_allowed=True,
|
|
41
|
+
use_enum_values=True
|
|
39
42
|
)
|
|
40
43
|
|
|
41
44
|
|
|
@@ -13,21 +13,24 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class DeviceInfoDocumentsDatabase(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
Database information.
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
id:
|
|
22
|
-
version:
|
|
23
|
-
export_date:
|
|
24
|
-
description:
|
|
22
|
+
id: SkipValidation[str] = Field(alias="id", description="Database identifier.")
|
|
23
|
+
version: SkipValidation[str] = Field(alias="version", description="Database version.")
|
|
24
|
+
export_date: SkipValidation[str] = Field(alias="export-date", description="Date of database creation.")
|
|
25
|
+
description: SkipValidation[str] = Field(alias="description", description="Description of the database contents, such as the list of supported countries and documents.")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["id", "version", "export-date", "description"]
|
|
26
27
|
|
|
27
28
|
model_config = ConfigDict(
|
|
28
29
|
populate_by_name=True,
|
|
29
30
|
validate_assignment=True,
|
|
30
31
|
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
31
34
|
)
|
|
32
35
|
|
|
33
36
|
|
|
@@ -16,18 +16,21 @@ from regula.documentreader.webclient.gen.models.result import Result
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
17
17
|
from typing import Optional, Set
|
|
18
18
|
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
19
20
|
|
|
20
21
|
class DocBarCodeInfo(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Raw data from BarCodes
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
doc_bar_code_info: DocBarCodeInfoFieldsList = Field(alias="DocBarCodeInfo")
|
|
25
|
+
doc_bar_code_info: SkipValidation[DocBarCodeInfoFieldsList] = Field(alias="DocBarCodeInfo")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "DocBarCodeInfo"]
|
|
26
27
|
|
|
27
28
|
model_config = ConfigDict(
|
|
28
29
|
populate_by_name=True,
|
|
29
30
|
validate_assignment=True,
|
|
30
31
|
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
31
34
|
)
|
|
32
35
|
|
|
33
36
|
|
|
@@ -14,19 +14,22 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.p_array_field import PArrayField
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DocBarCodeInfoFieldsList(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocBarCodeInfoFieldsList
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
n_fields:
|
|
23
|
-
p_array_fields: List[PArrayField] = Field(description="Data from barcode"
|
|
23
|
+
n_fields: SkipValidation[int] = Field(alias="nFields", description="Count of array fields")
|
|
24
|
+
p_array_fields: SkipValidation[List[PArrayField]] = Field(alias="pArrayFields", description="Data from barcode")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["nFields", "pArrayFields"]
|
|
25
26
|
|
|
26
27
|
model_config = ConfigDict(
|
|
27
28
|
populate_by_name=True,
|
|
28
29
|
validate_assignment=True,
|
|
29
30
|
protected_namespaces=(),
|
|
31
|
+
arbitrary_types_allowed=True,
|
|
32
|
+
use_enum_values=True
|
|
30
33
|
)
|
|
31
34
|
|
|
32
35
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DocBarCodeInfoItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocBarCodeInfoItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
doc_bar_code_info: DocBarCodeInfoFieldsList = Field(alias="DocBarCodeInfo")
|
|
23
|
+
doc_bar_code_info: SkipValidation[DocBarCodeInfoFieldsList] = Field(alias="DocBarCodeInfo")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["DocBarCodeInfo"]
|
|
24
25
|
|
|
25
26
|
model_config = ConfigDict(
|
|
26
27
|
populate_by_name=True,
|
|
27
28
|
validate_assignment=True,
|
|
28
29
|
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
29
32
|
)
|
|
30
33
|
|
|
31
34
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.graphic_fields_list import GraphicFieldsList
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DocGraphicsInfoItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocGraphicsInfoItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
doc_graphics_info: GraphicFieldsList = Field(alias="DocGraphicsInfo")
|
|
23
|
+
doc_graphics_info: SkipValidation[GraphicFieldsList] = Field(alias="DocGraphicsInfo")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["DocGraphicsInfo"]
|
|
24
25
|
|
|
25
26
|
model_config = ConfigDict(
|
|
26
27
|
populate_by_name=True,
|
|
27
28
|
validate_assignment=True,
|
|
28
29
|
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
29
32
|
)
|
|
30
33
|
|
|
31
34
|
|
|
@@ -17,30 +17,33 @@ from regula.documentreader.webclient.gen.models.string_recognition_result import
|
|
|
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 DocVisualExtendedField(BaseModel):
|
|
22
23
|
"""
|
|
23
24
|
DocVisualExtendedField
|
|
24
25
|
""" # noqa: E501
|
|
25
|
-
w_field_type: TextFieldType = Field(alias="wFieldType")
|
|
26
|
-
field_name:
|
|
27
|
-
strings_count:
|
|
28
|
-
strings_result: List[StringRecognitionResult] = Field(description="Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results."
|
|
29
|
-
buf_length:
|
|
30
|
-
buf_text: Optional[
|
|
31
|
-
field_mask: Optional[
|
|
32
|
-
validity: Optional[
|
|
33
|
-
in_comparison: Optional[
|
|
34
|
-
w_lcid: Optional[LCID] = Field(
|
|
35
|
-
reserved2: Optional[
|
|
36
|
-
reserved3: Optional[
|
|
37
|
-
field_rect: RectangleCoordinates = Field(alias="FieldRect")
|
|
26
|
+
w_field_type: SkipValidation[TextFieldType] = Field(alias="wFieldType")
|
|
27
|
+
field_name: SkipValidation[str] = Field(alias="FieldName", description="Field symbolic name (null-terminated string)")
|
|
28
|
+
strings_count: SkipValidation[float] = Field(alias="StringsCount", description="Number of StringsResult array elements")
|
|
29
|
+
strings_result: SkipValidation[List[StringRecognitionResult]] = Field(alias="StringsResult", description="Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results.")
|
|
30
|
+
buf_length: SkipValidation[float] = Field(alias="Buf_Length", description="Buf_Text text string length")
|
|
31
|
+
buf_text: SkipValidation[Optional[str]] = Field(alias="Buf_Text", default=None, description="Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^'")
|
|
32
|
+
field_mask: SkipValidation[Optional[str]] = Field(alias="FieldMask", default=None)
|
|
33
|
+
validity: SkipValidation[Optional[int]] = Field(alias="Validity", default=None)
|
|
34
|
+
in_comparison: SkipValidation[Optional[int]] = Field(alias="InComparison", default=None)
|
|
35
|
+
w_lcid: SkipValidation[Optional[LCID]] = Field(alias="wLCID", default=None)
|
|
36
|
+
reserved2: SkipValidation[Optional[int]] = Field(alias="Reserved2", default=None)
|
|
37
|
+
reserved3: SkipValidation[Optional[int]] = Field(alias="Reserved3", default=None)
|
|
38
|
+
field_rect: SkipValidation[RectangleCoordinates] = Field(alias="FieldRect")
|
|
38
39
|
__properties: ClassVar[List[str]] = ["wFieldType", "FieldName", "StringsCount", "StringsResult", "Buf_Length", "Buf_Text", "FieldMask", "Validity", "InComparison", "wLCID", "Reserved2", "Reserved3", "FieldRect"]
|
|
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
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
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 DocVisualExtendedFieldItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocVisualExtendedFieldItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
field_rect: RectangleCoordinates = Field(alias="FieldRect")
|
|
23
|
+
field_rect: SkipValidation[RectangleCoordinates] = Field(alias="FieldRect")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["FieldRect"]
|
|
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, Union
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.doc_visual_extended_field import DocVisualExtendedField
|
|
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 DocVisualExtendedInfo(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
Container for extracted text fields. Fields are identified by type and language
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
n_fields:
|
|
23
|
-
p_array_fields: List[DocVisualExtendedField] = Field(alias="pArrayFields")
|
|
23
|
+
n_fields: SkipValidation[float] = Field(alias="nFields", description="Number of pArrayFields array elements")
|
|
24
|
+
p_array_fields: SkipValidation[List[DocVisualExtendedField]] = Field(alias="pArrayFields")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["nFields", "pArrayFields"]
|
|
25
26
|
|
|
26
27
|
model_config = ConfigDict(
|
|
27
28
|
populate_by_name=True,
|
|
28
29
|
validate_assignment=True,
|
|
29
30
|
protected_namespaces=(),
|
|
31
|
+
arbitrary_types_allowed=True,
|
|
32
|
+
use_enum_values=True
|
|
30
33
|
)
|
|
31
34
|
|
|
32
35
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.doc_visual_extended_info import DocVisualExtendedInfo
|
|
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 DocVisualExtendedInfoItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocVisualExtendedInfoItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
doc_visual_extended_info: DocVisualExtendedInfo = Field(alias="DocVisualExtendedInfo")
|
|
23
|
+
doc_visual_extended_info: SkipValidation[DocVisualExtendedInfo] = Field(alias="DocVisualExtendedInfo")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["DocVisualExtendedInfo"]
|
|
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_item import ResultItem
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.t_doc_binary_info import TDocBinaryInfo
|
|
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 DocumentBinaryInfoResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Structure is used to store the data reading results from the RFID-chip in a form of a list of the logically separated data groups.
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
t_doc_binary_info: TDocBinaryInfo = Field(alias="TDocBinaryInfo")
|
|
25
|
+
t_doc_binary_info: SkipValidation[TDocBinaryInfo] = Field(alias="TDocBinaryInfo")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "TDocBinaryInfo"]
|
|
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,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 DocumentImage(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
DocumentImage
|
|
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
|
|
|
@@ -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 DocumentImageResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Contains document image.
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
raw_image_container: ImageData = Field(alias="RawImageContainer")
|
|
25
|
+
raw_image_container: SkipValidation[ImageData] = Field(alias="RawImageContainer")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "RawImageContainer"]
|
|
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,32 +15,35 @@ from regula.documentreader.webclient.gen.models.document_format import DocumentF
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.point import Point
|
|
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 DocumentPosition(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
DocumentPosition
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
doc_format: DocumentFormat = Field(alias="docFormat")
|
|
24
|
-
angle:
|
|
25
|
-
width:
|
|
26
|
-
height:
|
|
27
|
-
center: Point = Field(alias="Center")
|
|
28
|
-
left_bottom: Point = Field(alias="LeftBottom")
|
|
29
|
-
left_top: Point = Field(alias="LeftTop")
|
|
30
|
-
right_bottom: Point = Field(alias="RightBottom")
|
|
31
|
-
right_top: Point = Field(alias="RightTop")
|
|
32
|
-
dpi:
|
|
33
|
-
inverse: Optional[
|
|
34
|
-
obj_area: Optional[
|
|
35
|
-
obj_int_angle_dev: Optional[
|
|
36
|
-
perspective_tr: Optional[
|
|
37
|
-
result_status: Optional[
|
|
24
|
+
doc_format: SkipValidation[DocumentFormat] = Field(alias="docFormat")
|
|
25
|
+
angle: SkipValidation[float] = Field(alias="Angle", description="Document rotation angle")
|
|
26
|
+
width: SkipValidation[int] = Field(alias="Width", description="Document width")
|
|
27
|
+
height: SkipValidation[int] = Field(alias="Height", description="Document height")
|
|
28
|
+
center: SkipValidation[Point] = Field(alias="Center")
|
|
29
|
+
left_bottom: SkipValidation[Point] = Field(alias="LeftBottom")
|
|
30
|
+
left_top: SkipValidation[Point] = Field(alias="LeftTop")
|
|
31
|
+
right_bottom: SkipValidation[Point] = Field(alias="RightBottom")
|
|
32
|
+
right_top: SkipValidation[Point] = Field(alias="RightTop")
|
|
33
|
+
dpi: SkipValidation[int] = Field(alias="Dpi")
|
|
34
|
+
inverse: SkipValidation[Optional[int]] = Field(alias="Inverse", default=None)
|
|
35
|
+
obj_area: SkipValidation[Optional[int]] = Field(alias="ObjArea", default=None)
|
|
36
|
+
obj_int_angle_dev: SkipValidation[Optional[int]] = Field(alias="ObjIntAngleDev", default=None)
|
|
37
|
+
perspective_tr: SkipValidation[Optional[int]] = Field(alias="PerspectiveTr", default=None)
|
|
38
|
+
result_status: SkipValidation[Optional[int]] = Field(alias="ResultStatus", default=None)
|
|
38
39
|
__properties: ClassVar[List[str]] = ["docFormat", "Angle", "Width", "Height", "Center", "LeftBottom", "LeftTop", "RightBottom", "RightTop", "Dpi", "Inverse", "ObjArea", "ObjIntAngleDev", "PerspectiveTr", "ResultStatus"]
|
|
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
|
|
|
@@ -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 DocumentPositionItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DocumentPositionItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
document_position: DocumentPosition = Field(alias="DocumentPosition")
|
|
23
|
+
document_position: SkipValidation[DocumentPosition] = Field(alias="DocumentPosition")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["DocumentPosition"]
|
|
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 DocumentPositionResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Contains information about document position on the input image, its center, angle, etc
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
document_position: DocumentPosition = Field(alias="DocumentPosition")
|
|
25
|
+
document_position: SkipValidation[DocumentPosition] = Field(alias="DocumentPosition")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "DocumentPosition"]
|
|
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
|
|