Skip to content

Commit e4ee79c

Browse files
author
regula-bot
committed
Merge remote-tracking branch 'origin/develop' into stable
2 parents 872bee9 + 849f4c0 commit e4ee79c

File tree

10 files changed

+110
-4
lines changed

10 files changed

+110
-4
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ regula/documentreader/webclient/gen/models/process_request_image.py
168168
regula/documentreader/webclient/gen/models/process_response.py
169169
regula/documentreader/webclient/gen/models/process_system_info.py
170170
regula/documentreader/webclient/gen/models/processing_status.py
171+
regula/documentreader/webclient/gen/models/properties_params.py
171172
regula/documentreader/webclient/gen/models/raw_image_container_item.py
172173
regula/documentreader/webclient/gen/models/raw_image_container_list.py
173174
regula/documentreader/webclient/gen/models/rectangle_coordinates.py

regula/documentreader/webclient/gen/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
"ProcessResponse",
181181
"ProcessSystemInfo",
182182
"ProcessingStatus",
183+
"PropertiesParams",
183184
"RFIDDocVisualExtendedField",
184185
"RFIDDocVisualExtendedFieldItem",
185186
"RFIDDocVisualExtendedInfo",
@@ -451,6 +452,7 @@
451452
from regula.documentreader.webclient.gen.models.process_response import ProcessResponse as ProcessResponse
452453
from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo as ProcessSystemInfo
453454
from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus as ProcessingStatus
455+
from regula.documentreader.webclient.gen.models.properties_params import PropertiesParams as PropertiesParams
454456
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field import RFIDDocVisualExtendedField as RFIDDocVisualExtendedField
455457
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field_item import RFIDDocVisualExtendedFieldItem as RFIDDocVisualExtendedFieldItem
456458
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_info import RFIDDocVisualExtendedInfo as RFIDDocVisualExtendedInfo
@@ -728,6 +730,7 @@
728730
from regula.documentreader.webclient.gen.models.process_response import ProcessResponse as ProcessResponse
729731
from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo as ProcessSystemInfo
730732
from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus as ProcessingStatus
733+
from regula.documentreader.webclient.gen.models.properties_params import PropertiesParams as PropertiesParams
731734
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field import RFIDDocVisualExtendedField as RFIDDocVisualExtendedField
732735
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field_item import RFIDDocVisualExtendedFieldItem as RFIDDocVisualExtendedFieldItem
733736
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_info import RFIDDocVisualExtendedInfo as RFIDDocVisualExtendedInfo

regula/documentreader/webclient/gen/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
from regula.documentreader.webclient.gen.models.process_response import ProcessResponse
165165
from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo
166166
from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus
167+
from regula.documentreader.webclient.gen.models.properties_params import PropertiesParams
167168
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field import RFIDDocVisualExtendedField
168169
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field_item import RFIDDocVisualExtendedFieldItem
169170
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_info import RFIDDocVisualExtendedInfo
@@ -422,6 +423,7 @@
422423
from regula.documentreader.webclient.gen.models.process_response import ProcessResponse
423424
from regula.documentreader.webclient.gen.models.process_system_info import ProcessSystemInfo
424425
from regula.documentreader.webclient.gen.models.processing_status import ProcessingStatus
426+
from regula.documentreader.webclient.gen.models.properties_params import PropertiesParams
425427
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field import RFIDDocVisualExtendedField
426428
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_field_item import RFIDDocVisualExtendedFieldItem
427429
from regula.documentreader.webclient.gen.models.rfid_doc_visual_extended_info import RFIDDocVisualExtendedInfo

regula/documentreader/webclient/gen/models/auth_params.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pydantic import BaseModel, ConfigDict, Field, StrictBool
1313
from typing import Any, ClassVar, Dict, List, Optional
1414
from regula.documentreader.webclient.gen.models.liveness_params import LivenessParams
15+
from regula.documentreader.webclient.gen.models.properties_params import PropertiesParams
1516
from typing import Optional, Set
1617
from typing_extensions import Self
1718
from pydantic import SkipValidation, Field
@@ -36,7 +37,9 @@ class AuthParams(BaseModel):
3637
check_photo_comparison: SkipValidation[Optional[bool]] = Field(alias="checkPhotoComparison", default=None, description="This parameter is used to enable Portrait comparison check")
3738
check_letter_screen: SkipValidation[Optional[bool]] = Field(alias="checkLetterScreen", default=None, description="This parameter is used to enable LetterScreen check")
3839
check_security_text: SkipValidation[Optional[bool]] = Field(alias="checkSecurityText", default=None, description="This parameter is used to enable Security text check")
39-
__properties: ClassVar[List[str]] = ["checkLiveness", "livenessParams", "checkUVLuminiscence", "checkIRB900", "checkImagePatterns", "checkFibers", "checkExtMRZ", "checkExtOCR", "checkAxial", "checkBarcodeFormat", "checkIRVisibility", "checkIPI", "checkPhotoEmbedding", "checkPhotoComparison", "checkLetterScreen", "checkSecurityText"]
40+
check_properties: SkipValidation[Optional[bool]] = Field(alias="checkProperties", default=None, description="Set to true to enable detection of the document properties, such as holder's signature and other attributes.")
41+
properties_params: SkipValidation[Optional[PropertiesParams]] = Field(alias="propertiesParams", default=None)
42+
__properties: ClassVar[List[str]] = ["checkLiveness", "livenessParams", "checkUVLuminiscence", "checkIRB900", "checkImagePatterns", "checkFibers", "checkExtMRZ", "checkExtOCR", "checkAxial", "checkBarcodeFormat", "checkIRVisibility", "checkIPI", "checkPhotoEmbedding", "checkPhotoComparison", "checkLetterScreen", "checkSecurityText", "checkProperties", "propertiesParams"]
4043

4144
model_config = ConfigDict(
4245
populate_by_name=True,
@@ -82,6 +85,9 @@ def to_dict(self) -> Dict[str, Any]:
8285
# override the default output from pydantic by calling `to_dict()` of liveness_params
8386
if self.liveness_params and isinstance(self.liveness_params, LivenessParams):
8487
_dict['livenessParams'] = self.liveness_params.to_dict()
88+
# override the default output from pydantic by calling `to_dict()` of properties_params
89+
if self.properties_params and isinstance(self.properties_params, PropertiesParams):
90+
_dict['propertiesParams'] = self.properties_params.to_dict()
8591
return _dict
8692

8793
@classmethod
@@ -109,7 +115,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
109115
"checkPhotoEmbedding": obj.get("checkPhotoEmbedding"),
110116
"checkPhotoComparison": obj.get("checkPhotoComparison"),
111117
"checkLetterScreen": obj.get("checkLetterScreen"),
112-
"checkSecurityText": obj.get("checkSecurityText")
118+
"checkSecurityText": obj.get("checkSecurityText"),
119+
"checkProperties": obj.get("checkProperties"),
120+
"propertiesParams": PropertiesParams.from_dict(obj["propertiesParams"]) if obj.get("propertiesParams") is not None else None
113121
})
114122
return _obj
115123

regula/documentreader/webclient/gen/models/authenticity_result_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class AuthenticityResultType(int, Enum):
4040
EXTENDED_OCR_CHECK = 4194304
4141
EXTENDED_MRZ_CHECK = 8388608
4242
ENCRYPTED_IPI = 16777216
43+
PROPERTY = 33554432
4344

4445
@classmethod
4546
def from_json(cls, json_str: str) -> Self:

regula/documentreader/webclient/gen/models/check_diagnose.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ class CheckDiagnose(int, Enum):
147147
CHD_ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT = 247
148148
CHD_ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT = 248
149149
CHD_INCORRECT_OBJECT_COLOR = 250
150+
PROPERTY_NO_SIGNATURE = 260
151+
PROPERTY_TEXT_AS_SIGNATURE = 261
152+
PROPERTY_FINGERPRINT_AS_SIGNATURE = 262
150153

151154
@classmethod
152155
def from_json(cls, json_str: str) -> Self:

regula/documentreader/webclient/gen/models/process_params.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ class ProcessParams(BaseModel):
105105
strict_security_checks: SkipValidation[Optional[bool]] = Field(alias="strictSecurityChecks", default=None, description="When enabled, this parameter marks security checks that don’t meet minimum requirements as 'Failed' (instead of 'WasNotDone'), which causes the overall security status to be 'Failed'.")
106106
return_transliterated_fields: SkipValidation[Optional[bool]] = Field(alias="returnTransliteratedFields", default=None, description="Allows transliteration to be turned on or off; by default, it is enabled.")
107107
bsi_tr03135: SkipValidation[Optional[BsiTr03135]] = Field(alias="bsiTr03135", default=None)
108-
__properties: ClassVar[List[str]] = ["generateDTCVC", "lcidFilter", "checkLiveness", "lcidIgnoreFilter", "oneShotIdentification", "useFaceApi", "faceApi", "doDetectCan", "imageOutputMaxHeight", "imageOutputMaxWidth", "scenario", "resultTypeOutput", "doublePageSpread", "generateDoublePageSpreadImage", "fieldTypesFilter", "fieldTypesIgnoreFilter", "dateFormat", "measureSystem", "imageDpiOutMax", "alreadyCropped", "customParams", "config", "log", "logLevel", "forceDocID", "matchTextFieldMask", "fastDocDetect", "updateOCRValidityByGlare", "checkRequiredTextFields", "returnCroppedBarcode", "imageQa", "strictImageQuality", "respectImageQuality", "forceDocFormat", "noGraphics", "depersonalizeLog", "multiDocOnImage", "shiftExpiryDate", "minimalHolderAge", "returnUncroppedImage", "mrzFormatsFilter", "forceReadMrzBeforeLocate", "parseBarcodes", "convertCase", "splitNames", "disablePerforationOCR", "documentGroupFilter", "processAuth", "deviceId", "deviceType", "deviceTypeHex", "ignoreDeviceIdFromImage", "documentIdList", "rfid", "checkAuth", "authParams", "mrzDetectMode", "generateNumericCodes", "strictBarcodeDigitalSignatureCheck", "selectLongestNames", "doBarcodes", "strictDLCategoryExpiry", "generateAlpha2Codes", "pdfPagesLimit", "disableAuthResolutionFilter", "strictSecurityChecks", "returnTransliteratedFields", "bsiTr03135"]
108+
strict_expiry_date: SkipValidation[Optional[bool]] = Field(alias="strictExpiryDate", default=None, description="When disabled, date of expiry doesn't affect the MRZ and text statuses.")
109+
check_vds: SkipValidation[Optional[bool]] = Field(alias="checkVDS", default=None, description="This parameter is used to enable Visible Digital Seal check. Disabled by default.")
110+
__properties: ClassVar[List[str]] = ["generateDTCVC", "lcidFilter", "checkLiveness", "lcidIgnoreFilter", "oneShotIdentification", "useFaceApi", "faceApi", "doDetectCan", "imageOutputMaxHeight", "imageOutputMaxWidth", "scenario", "resultTypeOutput", "doublePageSpread", "generateDoublePageSpreadImage", "fieldTypesFilter", "fieldTypesIgnoreFilter", "dateFormat", "measureSystem", "imageDpiOutMax", "alreadyCropped", "customParams", "config", "log", "logLevel", "forceDocID", "matchTextFieldMask", "fastDocDetect", "updateOCRValidityByGlare", "checkRequiredTextFields", "returnCroppedBarcode", "imageQa", "strictImageQuality", "respectImageQuality", "forceDocFormat", "noGraphics", "depersonalizeLog", "multiDocOnImage", "shiftExpiryDate", "minimalHolderAge", "returnUncroppedImage", "mrzFormatsFilter", "forceReadMrzBeforeLocate", "parseBarcodes", "convertCase", "splitNames", "disablePerforationOCR", "documentGroupFilter", "processAuth", "deviceId", "deviceType", "deviceTypeHex", "ignoreDeviceIdFromImage", "documentIdList", "rfid", "checkAuth", "authParams", "mrzDetectMode", "generateNumericCodes", "strictBarcodeDigitalSignatureCheck", "selectLongestNames", "doBarcodes", "strictDLCategoryExpiry", "generateAlpha2Codes", "pdfPagesLimit", "disableAuthResolutionFilter", "strictSecurityChecks", "returnTransliteratedFields", "bsiTr03135", "strictExpiryDate", "checkVDS"]
109111

110112
model_config = ConfigDict(
111113
populate_by_name=True,
@@ -249,7 +251,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
249251
"disableAuthResolutionFilter": obj.get("disableAuthResolutionFilter"),
250252
"strictSecurityChecks": obj.get("strictSecurityChecks"),
251253
"returnTransliteratedFields": obj.get("returnTransliteratedFields"),
252-
"bsiTr03135": BsiTr03135.from_dict(obj["bsiTr03135"]) if obj.get("bsiTr03135") is not None else None
254+
"bsiTr03135": BsiTr03135.from_dict(obj["bsiTr03135"]) if obj.get("bsiTr03135") is not None else None,
255+
"strictExpiryDate": obj.get("strictExpiryDate"),
256+
"checkVDS": obj.get("checkVDS")
253257
})
254258
return _obj
255259

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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, StrictBool
13+
from typing import Any, ClassVar, Dict, List, Optional
14+
from typing import Optional, Set
15+
from typing_extensions import Self
16+
from pydantic import SkipValidation, Field
17+
18+
class PropertiesParams(BaseModel):
19+
"""
20+
PropertiesParams
21+
""" # noqa: E501
22+
check_holders_signature: SkipValidation[Optional[bool]] = Field(alias="checkHoldersSignature", default=None, description="Set to true to enable detection of the document holder’s signature.")
23+
__properties: ClassVar[List[str]] = ["checkHoldersSignature"]
24+
25+
model_config = ConfigDict(
26+
populate_by_name=True,
27+
validate_assignment=True,
28+
protected_namespaces=(),
29+
arbitrary_types_allowed=True,
30+
use_enum_values=True
31+
)
32+
33+
34+
def to_str(self) -> str:
35+
"""Returns the string representation of the model using alias"""
36+
return pprint.pformat(self.model_dump(by_alias=True))
37+
38+
def to_json(self) -> str:
39+
"""Returns the JSON representation of the model using alias"""
40+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
41+
return json.dumps(self.to_dict())
42+
43+
@classmethod
44+
def from_json(cls, json_str: str) -> Optional[Self]:
45+
"""Create an instance of PropertiesParams from a JSON string"""
46+
return cls.from_dict(json.loads(json_str))
47+
48+
def to_dict(self) -> Dict[str, Any]:
49+
"""Return the dictionary representation of the model using alias.
50+
51+
This has the following differences from calling pydantic's
52+
`self.model_dump(by_alias=True)`:
53+
54+
* `None` is only added to the output dict for nullable fields that
55+
were set at model initialization. Other fields with value `None`
56+
are ignored.
57+
"""
58+
excluded_fields: Set[str] = set([
59+
])
60+
61+
_dict = self.model_dump(
62+
by_alias=True,
63+
exclude=excluded_fields,
64+
exclude_none=True,
65+
)
66+
return _dict
67+
68+
@classmethod
69+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
70+
"""Create an instance of PropertiesParams from a dict"""
71+
if obj is None:
72+
return None
73+
74+
if not isinstance(obj, dict):
75+
return cls.model_validate(obj)
76+
77+
_obj = cls.model_validate({
78+
"checkHoldersSignature": obj.get("checkHoldersSignature")
79+
})
80+
return _obj
81+
82+

regula/documentreader/webclient/gen/models/scenario.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Scenario(str, Enum):
3838
CAPTURE = 'Capture'
3939
DTC = 'DTC'
4040
RFID = 'RFID'
41+
MDL = 'mDL'
4142

4243
@classmethod
4344
def from_json(cls, json_str: str) -> Self:

regula/documentreader/webclient/gen/models/security_feature_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class SecurityFeatureType(int, Enum):
7979
PORTRAIT_COMPARISON_BARCODE_VS_GHOST = 59
8080
PORTRAIT_COMPARISON_GHOST_VS_LIVE = 60
8181
PORTRAIT_COMPARISON_EXT_VS_GHOST = 61
82+
SIGNATURE_PRESENCE = 62
8283

8384
@classmethod
8485
def from_json(cls, json_str: str) -> Self:

0 commit comments

Comments
 (0)