regula-documentreader-webclient 8.3.480.dev0__py3-none-any.whl → 8.4.587.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of regula-documentreader-webclient might be problematic. Click here for more details.
- regula/documentreader/webclient/ext/api/document_reader_api.py +18 -4
- regula/documentreader/webclient/gen/__init__.py +755 -239
- regula/documentreader/webclient/gen/api/__init__.py +20 -1
- regula/documentreader/webclient/gen/api/resources_api.py +270 -0
- regula/documentreader/webclient/gen/api/transaction_api.py +33 -15
- regula/documentreader/webclient/gen/api_client.py +8 -1
- regula/documentreader/webclient/gen/models/__init__.py +251 -2
- regula/documentreader/webclient/gen/models/area_array.py +6 -3
- regula/documentreader/webclient/gen/models/area_container.py +6 -3
- regula/documentreader/webclient/gen/models/auth_params.py +19 -16
- regula/documentreader/webclient/gen/models/authenticity_check_list.py +5 -2
- regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/authenticity_check_result.py +7 -4
- regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +7 -4
- regula/documentreader/webclient/gen/models/authenticity_result.py +4 -1
- regula/documentreader/webclient/gen/models/barcode_position_item.py +86 -0
- regula/documentreader/webclient/gen/models/barcode_position_result.py +93 -0
- regula/documentreader/webclient/gen/models/bc_pdf417_info.py +9 -6
- regula/documentreader/webclient/gen/models/bc_roidetect.py +7 -4
- regula/documentreader/webclient/gen/models/binary_data.py +67 -64
- regula/documentreader/webclient/gen/models/byte_array_item.py +4 -1
- regula/documentreader/webclient/gen/models/byte_array_result.py +4 -1
- regula/documentreader/webclient/gen/models/candidates_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/certificate_data.py +5 -2
- regula/documentreader/webclient/gen/models/check_diagnose.py +2 -0
- regula/documentreader/webclient/gen/models/chosen_document_type.py +15 -12
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +5 -2
- regula/documentreader/webclient/gen/models/container_list.py +5 -2
- regula/documentreader/webclient/gen/models/container_list_list_inner.py +34 -20
- regula/documentreader/webclient/gen/models/cross_source_value_comparison.py +6 -3
- regula/documentreader/webclient/gen/models/data_module.py +8 -5
- regula/documentreader/webclient/gen/models/database_document.py +111 -0
- regula/documentreader/webclient/gen/models/database_document_list.py +90 -0
- regula/documentreader/webclient/gen/models/details_optical.py +12 -9
- regula/documentreader/webclient/gen/models/details_rfid.py +10 -7
- regula/documentreader/webclient/gen/models/device_info.py +13 -10
- regula/documentreader/webclient/gen/models/device_info_documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/doc_bar_code_info.py +4 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +5 -2
- regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +16 -13
- regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +5 -2
- regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/document_binary_info_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_image.py +5 -2
- regula/documentreader/webclient/gen/models/document_image_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_position.py +18 -15
- regula/documentreader/webclient/gen/models/document_position_item.py +4 -1
- regula/documentreader/webclient/gen/models/document_position_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_types_candidates.py +5 -2
- regula/documentreader/webclient/gen/models/document_types_candidates_list.py +5 -2
- regula/documentreader/webclient/gen/models/document_types_candidates_result.py +4 -1
- regula/documentreader/webclient/gen/models/documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/encrypted_rcl_item.py +4 -1
- regula/documentreader/webclient/gen/models/encrypted_rcl_result.py +4 -1
- regula/documentreader/webclient/gen/models/error_coordinates.py +7 -4
- regula/documentreader/webclient/gen/models/face_api.py +13 -10
- regula/documentreader/webclient/gen/models/face_api_search.py +7 -4
- regula/documentreader/webclient/gen/models/face_detection.py +8 -5
- regula/documentreader/webclient/gen/models/face_detection_item.py +4 -1
- regula/documentreader/webclient/gen/models/face_detection_result.py +4 -1
- regula/documentreader/webclient/gen/models/face_item.py +11 -8
- regula/documentreader/webclient/gen/models/fdsid_list.py +15 -12
- regula/documentreader/webclient/gen/models/fiber_item.py +12 -9
- regula/documentreader/webclient/gen/models/fiber_result.py +12 -9
- regula/documentreader/webclient/gen/models/field_item.py +9 -6
- regula/documentreader/webclient/gen/models/file_image.py +5 -2
- regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py +8 -4
- regula/documentreader/webclient/gen/models/glares_check_params.py +84 -0
- regula/documentreader/webclient/gen/models/graph_data.py +10 -7
- regula/documentreader/webclient/gen/models/graphic_field.py +7 -4
- regula/documentreader/webclient/gen/models/graphic_fields_list.py +5 -2
- regula/documentreader/webclient/gen/models/graphics_result.py +4 -1
- regula/documentreader/webclient/gen/models/healthcheck.py +12 -9
- regula/documentreader/webclient/gen/models/healthcheck_documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/ident_item.py +10 -7
- regula/documentreader/webclient/gen/models/ident_result.py +10 -7
- regula/documentreader/webclient/gen/models/image_data.py +5 -2
- regula/documentreader/webclient/gen/models/image_qa.py +20 -11
- regula/documentreader/webclient/gen/models/image_quality_check.py +10 -7
- regula/documentreader/webclient/gen/models/image_quality_check_list.py +6 -3
- regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/image_quality_result.py +4 -1
- regula/documentreader/webclient/gen/models/image_transaction_data.py +4 -1
- regula/documentreader/webclient/gen/models/images.py +7 -4
- regula/documentreader/webclient/gen/models/images_available_source.py +5 -2
- regula/documentreader/webclient/gen/models/images_field.py +7 -4
- regula/documentreader/webclient/gen/models/images_field_value.py +12 -9
- regula/documentreader/webclient/gen/models/images_item.py +4 -1
- regula/documentreader/webclient/gen/models/images_result.py +4 -1
- regula/documentreader/webclient/gen/models/in_data.py +5 -2
- regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py +7 -4
- regula/documentreader/webclient/gen/models/in_data_video.py +5 -2
- regula/documentreader/webclient/gen/models/lexical_analysis_result.py +4 -1
- regula/documentreader/webclient/gen/models/license_item.py +4 -1
- regula/documentreader/webclient/gen/models/license_result.py +4 -1
- regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +5 -2
- regula/documentreader/webclient/gen/models/list_verified_fields.py +6 -3
- regula/documentreader/webclient/gen/models/list_verified_fields_item.py +4 -1
- regula/documentreader/webclient/gen/models/liveness_params.py +10 -7
- regula/documentreader/webclient/gen/models/mrz_detector_result.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_position_item.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_position_result.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_rows_item.py +6 -3
- regula/documentreader/webclient/gen/models/mrz_test_quality.py +13 -10
- regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +4 -1
- regula/documentreader/webclient/gen/models/ocr_security_text_item.py +14 -11
- regula/documentreader/webclient/gen/models/ocr_security_text_result.py +14 -11
- regula/documentreader/webclient/gen/models/one_candidate.py +15 -12
- regula/documentreader/webclient/gen/models/one_candidate_item.py +5 -2
- regula/documentreader/webclient/gen/models/original_symbol.py +6 -3
- regula/documentreader/webclient/gen/models/out_data.py +5 -2
- regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py +8 -5
- regula/documentreader/webclient/gen/models/p_array_field.py +13 -10
- regula/documentreader/webclient/gen/models/parsed_data.py +4 -1
- regula/documentreader/webclient/gen/models/per_document_config.py +5 -2
- regula/documentreader/webclient/gen/models/photo_ident_item.py +12 -9
- regula/documentreader/webclient/gen/models/photo_ident_result.py +12 -9
- regula/documentreader/webclient/gen/models/point.py +5 -2
- regula/documentreader/webclient/gen/models/point_array.py +4 -1
- regula/documentreader/webclient/gen/models/points_container.py +5 -2
- regula/documentreader/webclient/gen/models/process_params.py +72 -67
- regula/documentreader/webclient/gen/models/process_params_rfid.py +4 -1
- regula/documentreader/webclient/gen/models/process_request.py +15 -12
- regula/documentreader/webclient/gen/models/process_request_image.py +6 -3
- regula/documentreader/webclient/gen/models/process_response.py +13 -10
- regula/documentreader/webclient/gen/models/process_system_info.py +5 -2
- regula/documentreader/webclient/gen/models/raw_image_container_item.py +4 -1
- regula/documentreader/webclient/gen/models/raw_image_container_list.py +5 -2
- regula/documentreader/webclient/gen/models/rectangle_coordinates.py +7 -4
- regula/documentreader/webclient/gen/models/result_item.py +14 -11
- regula/documentreader/webclient/gen/models/result_mrz_detector.py +7 -4
- regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_access_control_info.py +8 -5
- regula/documentreader/webclient/gen/models/rfid_access_key.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_application.py +10 -7
- regula/documentreader/webclient/gen/models/rfid_application_type.py +1 -2
- regula/documentreader/webclient/gen/models/rfid_attribute_data.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_attribute_name.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py +17 -14
- regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +16 -13
- regula/documentreader/webclient/gen/models/rfid_data_file.py +15 -12
- regula/documentreader/webclient/gen/models/rfid_dg1.py +19 -17
- regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +6 -3
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +19 -16
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field_item.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_origin.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_pki_extension.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_raw_data.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_security_object.py +8 -5
- regula/documentreader/webclient/gen/models/rfid_session_data.py +20 -17
- regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +15 -12
- regula/documentreader/webclient/gen/models/rfid_terminal.py +6 -3
- regula/documentreader/webclient/gen/models/rfid_text_data_result.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_validity.py +5 -2
- regula/documentreader/webclient/gen/models/security_feature_item.py +9 -6
- regula/documentreader/webclient/gen/models/security_feature_result.py +9 -6
- regula/documentreader/webclient/gen/models/security_feature_type.py +2 -0
- regula/documentreader/webclient/gen/models/security_object_certificates.py +4 -1
- regula/documentreader/webclient/gen/models/source.py +2 -0
- regula/documentreader/webclient/gen/models/source_validity.py +5 -2
- regula/documentreader/webclient/gen/models/status.py +10 -7
- regula/documentreader/webclient/gen/models/status_item.py +4 -1
- regula/documentreader/webclient/gen/models/status_result.py +4 -1
- regula/documentreader/webclient/gen/models/string_item.py +20 -17
- regula/documentreader/webclient/gen/models/string_recognition_result.py +8 -5
- regula/documentreader/webclient/gen/models/symbol.py +4 -1
- regula/documentreader/webclient/gen/models/symbol_candidate.py +7 -4
- regula/documentreader/webclient/gen/models/symbol_estimation_item.py +20 -17
- regula/documentreader/webclient/gen/models/symbol_recognition_result.py +8 -5
- regula/documentreader/webclient/gen/models/t_doc_binary_info.py +5 -2
- regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +4 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/text.py +9 -6
- regula/documentreader/webclient/gen/models/text_available_source.py +6 -3
- regula/documentreader/webclient/gen/models/text_data_result.py +4 -1
- regula/documentreader/webclient/gen/models/text_field.py +14 -11
- regula/documentreader/webclient/gen/models/text_field_value.py +13 -10
- regula/documentreader/webclient/gen/models/text_item.py +4 -1
- regula/documentreader/webclient/gen/models/text_result.py +4 -1
- regula/documentreader/webclient/gen/models/transaction_image.py +4 -1
- regula/documentreader/webclient/gen/models/transaction_info.py +11 -8
- regula/documentreader/webclient/gen/models/transaction_process_get_response.py +8 -4
- regula/documentreader/webclient/gen/models/transaction_process_request.py +14 -11
- regula/documentreader/webclient/gen/models/transaction_process_result.py +8 -4
- regula/documentreader/webclient/gen/models/trf_ft_bytes.py +7 -4
- regula/documentreader/webclient/gen/models/trf_ft_string.py +7 -4
- regula/documentreader/webclient/gen/models/verified_field_map.py +10 -7
- regula/documentreader/webclient/gen/models/visual_extended_field_item.py +15 -12
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/METADATA +2 -1
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/RECORD +200 -194
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.3.480.dev0.dist-info → regula_documentreader_webclient-8.4.587.dev0.dist-info}/top_level.txt +0 -0
|
@@ -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 FaceDetectionResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
FaceDetectionResult
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
face_detection: Optional[FaceDetection] = Field(
|
|
25
|
+
face_detection: SkipValidation[Optional[FaceDetection]] = Field(alias="FaceDetection", default=None)
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "FaceDetection"]
|
|
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,25 +16,28 @@ from regula.documentreader.webclient.gen.models.point import Point
|
|
|
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 FaceItem(BaseModel):
|
|
21
22
|
"""
|
|
22
23
|
FaceItem
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
coincidence_to_photo_area:
|
|
25
|
-
face_rect: RectangleCoordinates = Field(alias="FaceRect")
|
|
26
|
-
field_rect: RectangleCoordinates = Field(alias="FieldRect")
|
|
27
|
-
graph_field_number:
|
|
28
|
-
landmarks: List[Point] = Field(alias="Landmarks")
|
|
29
|
-
light_type: Light = Field(alias="LightType")
|
|
30
|
-
orientation:
|
|
31
|
-
probability:
|
|
25
|
+
coincidence_to_photo_area: SkipValidation[int] = Field(alias="CoincidenceToPhotoArea")
|
|
26
|
+
face_rect: SkipValidation[RectangleCoordinates] = Field(alias="FaceRect")
|
|
27
|
+
field_rect: SkipValidation[RectangleCoordinates] = Field(alias="FieldRect")
|
|
28
|
+
graph_field_number: SkipValidation[int] = Field(alias="GraphFieldNumber")
|
|
29
|
+
landmarks: SkipValidation[List[Point]] = Field(alias="Landmarks")
|
|
30
|
+
light_type: SkipValidation[Light] = Field(alias="LightType")
|
|
31
|
+
orientation: SkipValidation[int] = Field(alias="Orientation")
|
|
32
|
+
probability: SkipValidation[int] = Field(alias="Probability")
|
|
32
33
|
__properties: ClassVar[List[str]] = ["CoincidenceToPhotoArea", "FaceRect", "FieldRect", "GraphFieldNumber", "Landmarks", "LightType", "Orientation", "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
|
|
|
@@ -16,29 +16,32 @@ from regula.documentreader.webclient.gen.models.document_format import DocumentF
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.document_type import DocumentType
|
|
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 FDSIDList(BaseModel):
|
|
21
22
|
"""
|
|
22
23
|
Extended document type info and Regula's 'Information Reference Systems' links
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
icao_code:
|
|
25
|
-
count: Optional[
|
|
26
|
-
list: Optional[List[
|
|
27
|
-
d_type: DocumentType = Field(alias="dType")
|
|
28
|
-
d_format: DocumentFormat = Field(alias="dFormat")
|
|
29
|
-
d_mrz:
|
|
30
|
-
d_description: Optional[
|
|
31
|
-
d_year: Optional[
|
|
32
|
-
d_country_name:
|
|
33
|
-
d_state_code: Optional[
|
|
34
|
-
d_state_name: Optional[
|
|
35
|
-
is_deprecated:
|
|
25
|
+
icao_code: SkipValidation[str] = Field(alias="ICAOCode", description="ICAO code of the issuing country")
|
|
26
|
+
count: SkipValidation[Optional[float]] = Field(alias="Count", default=None, description="Number of elements in the List")
|
|
27
|
+
list: SkipValidation[Optional[List[int]]] = Field(alias="List", default=None, description="Document identifiers in 'Information Reference Systems'")
|
|
28
|
+
d_type: SkipValidation[DocumentType] = Field(alias="dType")
|
|
29
|
+
d_format: SkipValidation[DocumentFormat] = Field(alias="dFormat")
|
|
30
|
+
d_mrz: SkipValidation[bool] = Field(alias="dMRZ", description="Flag indicating the presence of MRZ on the document")
|
|
31
|
+
d_description: SkipValidation[Optional[str]] = Field(alias="dDescription", default=None, description="Document description")
|
|
32
|
+
d_year: SkipValidation[Optional[str]] = Field(alias="dYear", default=None, description="Year of publication of the document")
|
|
33
|
+
d_country_name: SkipValidation[str] = Field(alias="dCountryName", description="Issuing country name")
|
|
34
|
+
d_state_code: SkipValidation[Optional[str]] = Field(alias="dStateCode", default=None, description="Issuing state code")
|
|
35
|
+
d_state_name: SkipValidation[Optional[str]] = Field(alias="dStateName", default=None, description="Issuing state name")
|
|
36
|
+
is_deprecated: SkipValidation[bool] = Field(alias="isDeprecated", description="Whether the document is deprecated")
|
|
36
37
|
__properties: ClassVar[List[str]] = ["ICAOCode", "Count", "List", "dType", "dFormat", "dMRZ", "dDescription", "dYear", "dCountryName", "dStateCode", "dStateName", "isDeprecated"]
|
|
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
|
|
|
@@ -15,26 +15,29 @@ from regula.documentreader.webclient.gen.models.light import Light
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
16
16
|
from typing import Optional, Set
|
|
17
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
18
19
|
|
|
19
20
|
class FiberItem(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
FiberItem
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
rect_count:
|
|
24
|
-
expected_count:
|
|
25
|
-
light_value: Optional[Light] = Field(
|
|
26
|
-
light_disp: Optional[
|
|
27
|
-
rect_array: List[RectangleCoordinates] = Field(description="Coordinates of located areas for defined fibers type"
|
|
28
|
-
width: List[
|
|
29
|
-
length: List[
|
|
30
|
-
area: List[
|
|
31
|
-
color_values: List[
|
|
24
|
+
rect_count: SkipValidation[int] = Field(alias="RectCount", description="For UV_Fibers authenticity result type")
|
|
25
|
+
expected_count: SkipValidation[int] = Field(alias="ExpectedCount", description="Expected fibers number. For UV_Fibers authentication result type")
|
|
26
|
+
light_value: SkipValidation[Optional[Light]] = Field(alias="LightValue", default=None)
|
|
27
|
+
light_disp: SkipValidation[Optional[int]] = Field(alias="LightDisp", default=None, description="For UV_Background authentication result type")
|
|
28
|
+
rect_array: SkipValidation[List[RectangleCoordinates]] = Field(alias="RectArray", description="Coordinates of located areas for defined fibers type")
|
|
29
|
+
width: SkipValidation[List[int]] = Field(alias="Width", description="Fibers width value for located areas (in pixels)")
|
|
30
|
+
length: SkipValidation[List[int]] = Field(alias="Length", description="Fibers length value for located areas (in pixels)")
|
|
31
|
+
area: SkipValidation[List[int]] = Field(alias="Area", description="Fibers value for areas (in pixels)")
|
|
32
|
+
color_values: SkipValidation[List[int]] = Field(alias="ColorValues", description="Fibers color value")
|
|
32
33
|
__properties: ClassVar[List[str]] = ["RectCount", "ExpectedCount", "LightValue", "LightDisp", "RectArray", "Width", "Length", "Area", "ColorValues"]
|
|
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
|
|
|
@@ -19,26 +19,29 @@ from regula.documentreader.webclient.gen.models.light import Light
|
|
|
19
19
|
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
20
20
|
from typing import Optional, Set
|
|
21
21
|
from typing_extensions import Self
|
|
22
|
+
from pydantic import SkipValidation, Field
|
|
22
23
|
|
|
23
24
|
class FiberResult(AuthenticityCheckResultItem):
|
|
24
25
|
"""
|
|
25
26
|
FiberResult
|
|
26
27
|
""" # noqa: E501
|
|
27
|
-
rect_count:
|
|
28
|
-
expected_count:
|
|
29
|
-
light_value: Optional[Light] = Field(
|
|
30
|
-
light_disp: Optional[
|
|
31
|
-
rect_array: List[RectangleCoordinates] = Field(description="Coordinates of located areas for defined fibers type"
|
|
32
|
-
width: List[
|
|
33
|
-
length: List[
|
|
34
|
-
area: List[
|
|
35
|
-
color_values: List[
|
|
28
|
+
rect_count: SkipValidation[int] = Field(alias="RectCount", description="For UV_Fibers authenticity result type")
|
|
29
|
+
expected_count: SkipValidation[int] = Field(alias="ExpectedCount", description="Expected fibers number. For UV_Fibers authentication result type")
|
|
30
|
+
light_value: SkipValidation[Optional[Light]] = Field(alias="LightValue", default=None)
|
|
31
|
+
light_disp: SkipValidation[Optional[int]] = Field(alias="LightDisp", default=None, description="For UV_Background authentication result type")
|
|
32
|
+
rect_array: SkipValidation[List[RectangleCoordinates]] = Field(alias="RectArray", description="Coordinates of located areas for defined fibers type")
|
|
33
|
+
width: SkipValidation[List[int]] = Field(alias="Width", description="Fibers width value for located areas (in pixels)")
|
|
34
|
+
length: SkipValidation[List[int]] = Field(alias="Length", description="Fibers length value for located areas (in pixels)")
|
|
35
|
+
area: SkipValidation[List[int]] = Field(alias="Area", description="Fibers value for areas (in pixels)")
|
|
36
|
+
color_values: SkipValidation[List[int]] = Field(alias="ColorValues", description="Fibers color value")
|
|
36
37
|
__properties: ClassVar[List[str]] = ["Type", "ElementResult", "ElementDiagnose", "PercentValue", "RectCount", "ExpectedCount", "LightValue", "LightDisp", "RectArray", "Width", "Length", "Area", "ColorValues"]
|
|
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
|
|
|
@@ -13,23 +13,26 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class FieldItem(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
FieldItem
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
field_length:
|
|
22
|
-
field_pos:
|
|
23
|
-
field_type:
|
|
24
|
-
test_result:
|
|
25
|
-
valid_check_sum:
|
|
26
|
-
reserved:
|
|
22
|
+
field_length: SkipValidation[int] = Field(alias="FieldLength")
|
|
23
|
+
field_pos: SkipValidation[int] = Field(alias="FieldPos")
|
|
24
|
+
field_type: SkipValidation[int] = Field(alias="FieldType")
|
|
25
|
+
test_result: SkipValidation[int] = Field(alias="TEST_RESULT")
|
|
26
|
+
valid_check_sum: SkipValidation[int] = Field(alias="ValidCheckSum")
|
|
27
|
+
reserved: SkipValidation[int] = Field(alias="reserved")
|
|
27
28
|
__properties: ClassVar[List[str]] = ["FieldLength", "FieldPos", "FieldType", "TEST_RESULT", "ValidCheckSum", "reserved"]
|
|
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
|
|
|
@@ -13,19 +13,22 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class FileImage(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
FileImage
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
data:
|
|
22
|
-
length:
|
|
22
|
+
data: SkipValidation[str] = Field(alias="Data")
|
|
23
|
+
length: SkipValidation[int] = Field(alias="Length")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["Data", "Length"]
|
|
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
|
|
|
@@ -10,24 +10,28 @@ import re # noqa: F401
|
|
|
10
10
|
import json
|
|
11
11
|
|
|
12
12
|
from datetime import datetime
|
|
13
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
13
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
14
14
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
15
|
+
from uuid import UUID
|
|
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 GetTransactionsByTagResponse(BaseModel):
|
|
19
21
|
"""
|
|
20
22
|
GetTransactionsByTagResponse
|
|
21
23
|
""" # noqa: E501
|
|
22
|
-
id: Optional[
|
|
23
|
-
state: Optional[
|
|
24
|
-
updated_at: Optional[datetime] = Field(default=None, description="Last time updated"
|
|
24
|
+
id: SkipValidation[Optional[str]] = Field(alias="id", default=None, description="Transaction id")
|
|
25
|
+
state: SkipValidation[Optional[int]] = Field(alias="state", default=None, description="Transaction status")
|
|
26
|
+
updated_at: SkipValidation[Optional[datetime]] = Field(alias="updatedAt", default=None, description="Last time updated")
|
|
25
27
|
__properties: ClassVar[List[str]] = ["id", "state", "updatedAt"]
|
|
26
28
|
|
|
27
29
|
model_config = ConfigDict(
|
|
28
30
|
populate_by_name=True,
|
|
29
31
|
validate_assignment=True,
|
|
30
32
|
protected_namespaces=(),
|
|
33
|
+
arbitrary_types_allowed=True,
|
|
34
|
+
use_enum_values=True
|
|
31
35
|
)
|
|
32
36
|
|
|
33
37
|
|
|
@@ -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
|
|