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
|
@@ -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:
|
|
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
|
|
|
@@ -15,19 +15,22 @@ from regula.documentreader.webclient.gen.models.document_type_recognition_result
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.one_candidate import OneCandidate
|
|
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 DocumentTypesCandidates(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
DocumentTypesCandidates
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
rec_result: Optional[DocumentTypeRecognitionResult] = Field(
|
|
24
|
-
candidates: Optional[List[OneCandidate]] = Field(
|
|
24
|
+
rec_result: SkipValidation[Optional[DocumentTypeRecognitionResult]] = Field(alias="RecResult", default=None)
|
|
25
|
+
candidates: SkipValidation[Optional[List[OneCandidate]]] = Field(alias="Candidates", default=None)
|
|
25
26
|
__properties: ClassVar[List[str]] = ["RecResult", "Candidates"]
|
|
26
27
|
|
|
27
28
|
model_config = ConfigDict(
|
|
28
29
|
populate_by_name=True,
|
|
29
30
|
validate_assignment=True,
|
|
30
31
|
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
31
34
|
)
|
|
32
35
|
|
|
33
36
|
|
|
@@ -15,19 +15,22 @@ from regula.documentreader.webclient.gen.models.document_type_recognition_result
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.one_candidate import OneCandidate
|
|
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 DocumentTypesCandidatesList(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
DocumentTypesCandidatesList
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
rec_result: Optional[DocumentTypeRecognitionResult] = Field(
|
|
24
|
-
candidates: Optional[List[OneCandidate]] = Field(
|
|
24
|
+
rec_result: SkipValidation[Optional[DocumentTypeRecognitionResult]] = Field(alias="RecResult", default=None)
|
|
25
|
+
candidates: SkipValidation[Optional[List[OneCandidate]]] = Field(alias="Candidates", default=None)
|
|
25
26
|
__properties: ClassVar[List[str]] = ["RecResult", "Candidates"]
|
|
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 DocumentTypesCandidatesResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
DocumentTypesCandidatesResult
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
candidates_list: Optional[DocumentTypesCandidatesList] = Field(
|
|
25
|
+
candidates_list: SkipValidation[Optional[DocumentTypesCandidatesList]] = Field(alias="CandidatesList", default=None)
|
|
25
26
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "CandidatesList"]
|
|
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,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 DocumentsDatabase(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
Document database information
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
description: Optional[
|
|
22
|
-
export_date: Optional[
|
|
23
|
-
id: Optional[
|
|
24
|
-
version: Optional[
|
|
22
|
+
description: SkipValidation[Optional[str]] = Field(alias="Description", default=None, description="Document database description")
|
|
23
|
+
export_date: SkipValidation[Optional[str]] = Field(alias="ExportDate", default=None, description="Date the document database was created")
|
|
24
|
+
id: SkipValidation[Optional[str]] = Field(alias="ID", default=None, description="Document database identifier")
|
|
25
|
+
version: SkipValidation[Optional[str]] = Field(alias="Version", default=None, description="Document database version")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["Description", "ExportDate", "ID", "Version"]
|
|
26
27
|
|
|
27
28
|
model_config = ConfigDict(
|
|
28
29
|
populate_by_name=True,
|
|
29
30
|
validate_assignment=True,
|
|
30
31
|
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
31
34
|
)
|
|
32
35
|
|
|
33
36
|
|
|
@@ -13,18 +13,21 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List, Union
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class EncryptedRCLItem(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
EncryptedRCLItem
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
encrypted_rcl:
|
|
22
|
+
encrypted_rcl: SkipValidation[bytearray] = Field(alias="EncryptedRCL", description="Base64 encoded data")
|
|
22
23
|
__properties: ClassVar[List[str]] = ["EncryptedRCL"]
|
|
23
24
|
|
|
24
25
|
model_config = ConfigDict(
|
|
25
26
|
populate_by_name=True,
|
|
26
27
|
validate_assignment=True,
|
|
27
28
|
protected_namespaces=(),
|
|
29
|
+
arbitrary_types_allowed=True,
|
|
30
|
+
use_enum_values=True
|
|
28
31
|
)
|
|
29
32
|
|
|
30
33
|
|
|
@@ -15,18 +15,21 @@ from regula.documentreader.webclient.gen.models.result import Result
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
16
16
|
from typing import Optional, Set
|
|
17
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
18
19
|
|
|
19
20
|
class EncryptedRCLResult(ResultItem):
|
|
20
21
|
"""
|
|
21
22
|
Contains encrypted result container list
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
encrypted_rcl:
|
|
24
|
+
encrypted_rcl: SkipValidation[bytearray] = Field(alias="EncryptedRCL", description="Base64 encoded data")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "EncryptedRCL"]
|
|
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
|
|
|
@@ -13,21 +13,24 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class ErrorCoordinates(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
ErrorCoordinates
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
left: Optional[
|
|
22
|
-
top: Optional[
|
|
23
|
-
right: Optional[
|
|
24
|
-
bottom: Optional[
|
|
22
|
+
left: SkipValidation[Optional[float]] = Field(alias="Left", default=None)
|
|
23
|
+
top: SkipValidation[Optional[float]] = Field(alias="Top", default=None)
|
|
24
|
+
right: SkipValidation[Optional[float]] = Field(alias="Right", default=None)
|
|
25
|
+
bottom: SkipValidation[Optional[float]] = Field(alias="Bottom", default=None)
|
|
25
26
|
__properties: ClassVar[List[str]] = ["Left", "Top", "Right", "Bottom"]
|
|
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,27 +14,30 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.face_api_search import FaceApiSearch
|
|
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 FaceApi(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
FaceApi
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
url: Optional[
|
|
23
|
-
mode: Optional[
|
|
24
|
-
search: Optional[FaceApiSearch] = None
|
|
25
|
-
threshold: Optional[
|
|
26
|
-
service_timeout: Optional[
|
|
27
|
-
proxy: Optional[
|
|
28
|
-
proxy_userpwd: Optional[
|
|
29
|
-
proxy_type: Optional[
|
|
30
|
-
child_age_threshold: Optional[
|
|
31
|
-
child_doc_validity_years: Optional[
|
|
23
|
+
url: SkipValidation[Optional[str]] = Field(alias="url", default=None, description="The URL of the Regula Face Web service to be used.")
|
|
24
|
+
mode: SkipValidation[Optional[str]] = Field(alias="mode", default=None, description="The processing mode: \"match\" or \"match+search\".")
|
|
25
|
+
search: SkipValidation[Optional[FaceApiSearch]] = Field(alias="search", default=None)
|
|
26
|
+
threshold: SkipValidation[Optional[int]] = Field(alias="threshold", default=None, description="The similarity threshold, 0-100. Above 75 means that the faces' similarity is verified, below 75 is not.")
|
|
27
|
+
service_timeout: SkipValidation[Optional[int]] = Field(alias="serviceTimeout", default=None, description="The Regula Face Web service requests timeout, ms.")
|
|
28
|
+
proxy: SkipValidation[Optional[str]] = Field(alias="proxy", default=None, description="Proxy to use, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXY.html\" target=\"_blank\">cURL standard</a>.")
|
|
29
|
+
proxy_userpwd: SkipValidation[Optional[str]] = Field(alias="proxy_userpwd", default=None, description="Username and password to use for proxy authentication, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXYUSERPWD.html\" target=\"_blank\">cURL standard</a>.")
|
|
30
|
+
proxy_type: SkipValidation[Optional[int]] = Field(alias="proxy_type", default=None, description="Proxy protocol type, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXYTYPE.html\" target=\"_blank\">cURL standard</a>.")
|
|
31
|
+
child_age_threshold: SkipValidation[Optional[int]] = Field(alias="childAgeThreshold", default=None, description="The age threshold for the portrait comparison. Default: 13.")
|
|
32
|
+
child_doc_validity_years: SkipValidation[Optional[int]] = Field(alias="childDocValidityYears", default=None, description="Estimated duration of validity for a child's passport, years. Default: 5.")
|
|
32
33
|
__properties: ClassVar[List[str]] = ["url", "mode", "search", "threshold", "serviceTimeout", "proxy", "proxy_userpwd", "proxy_type", "childAgeThreshold", "childDocValidityYears"]
|
|
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
|
|
|
@@ -9,24 +9,27 @@ import pprint
|
|
|
9
9
|
import re # noqa: F401
|
|
10
10
|
import json
|
|
11
11
|
|
|
12
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
13
13
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class FaceApiSearch(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
A search filter that can be applied if the \"match+search\" mode is enabled. May include limit, threshold, group_ids. If the group_ids are specified, the search is performed only in these groups. Find more information in the <a href=\"https://dev.regulaforensics.com/FaceSDK-web-openapi/#tag/search/operation/search\" target=\"_blank\">OpenAPI documentation</a>.
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
limit: Optional[
|
|
22
|
-
threshold: Optional[
|
|
23
|
-
group_ids: Optional[List[
|
|
22
|
+
limit: SkipValidation[Optional[int]] = Field(alias="limit", default=None, description="The maximum number of results to be returned.")
|
|
23
|
+
threshold: SkipValidation[Optional[float]] = Field(alias="threshold", default=None, description="The similarity threshold.")
|
|
24
|
+
group_ids: SkipValidation[Optional[List[str]]] = Field(alias="group_ids", default=None, description=" The groups where to conduct the search.")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["limit", "threshold", "group_ids"]
|
|
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,22 +14,25 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.face_item import FaceItem
|
|
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 FaceDetection(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
FaceDetection
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
count:
|
|
23
|
-
count_false_detection:
|
|
24
|
-
res: List[FaceItem] = Field(alias="Res")
|
|
25
|
-
reserved1: Optional[
|
|
26
|
-
reserved2: Optional[
|
|
23
|
+
count: SkipValidation[int] = Field(alias="Count")
|
|
24
|
+
count_false_detection: SkipValidation[int] = Field(alias="CountFalseDetection")
|
|
25
|
+
res: SkipValidation[List[FaceItem]] = Field(alias="Res")
|
|
26
|
+
reserved1: SkipValidation[Optional[int]] = Field(alias="Reserved1", default=None)
|
|
27
|
+
reserved2: SkipValidation[Optional[int]] = Field(alias="Reserved2", default=None)
|
|
27
28
|
__properties: ClassVar[List[str]] = ["Count", "CountFalseDetection", "Res", "Reserved1", "Reserved2"]
|
|
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,18 +14,21 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.face_detection import FaceDetection
|
|
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 FaceDetectionItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
FaceDetectionItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
face_detection: Optional[FaceDetection] = Field(
|
|
23
|
+
face_detection: SkipValidation[Optional[FaceDetection]] = Field(alias="FaceDetection", default=None)
|
|
23
24
|
__properties: ClassVar[List[str]] = ["FaceDetection"]
|
|
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
|
|