From 153c7d51345ab7d9299ee49405e81eddb2a8b00a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 30 Sep 2022 09:38:09 +0000 Subject: [PATCH] update-clients --- .../webclient/gen/configuration.py | 2 +- .../gen/models/authenticity_check_list.py | 30 +++++++++++++++- .../webclient/gen/models/check_diagnose.py | 4 ++- .../gen/models/graphic_field_type.py | 8 ++++- .../webclient/gen/models/ident_result.py | 6 ++-- .../gen/models/ident_result_all_of.py | 6 ++-- .../webclient/gen/models/process_params.py | 34 +++++++++++++++++-- .../gen/models/security_feature_result.py | 6 ++-- .../models/security_feature_result_all_of.py | 6 ++-- 9 files changed, 83 insertions(+), 19 deletions(-) diff --git a/regula/documentreader/webclient/gen/configuration.py b/regula/documentreader/webclient/gen/configuration.py index aa977c4..cc9977e 100755 --- a/regula/documentreader/webclient/gen/configuration.py +++ b/regula/documentreader/webclient/gen/configuration.py @@ -374,7 +374,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 6.3.0\n"\ + "Version of the API: 6.5.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/regula/documentreader/webclient/gen/models/authenticity_check_list.py b/regula/documentreader/webclient/gen/models/authenticity_check_list.py index b03219d..c66ae51 100644 --- a/regula/documentreader/webclient/gen/models/authenticity_check_list.py +++ b/regula/documentreader/webclient/gen/models/authenticity_check_list.py @@ -32,24 +32,52 @@ class AuthenticityCheckList(object): and the value is json key in definition. """ openapi_types = { + 'count': 'int', 'list': 'list[AuthenticityCheckResult]' } attribute_map = { + 'count': 'Count', 'list': 'List' } - def __init__(self, list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, count=None, list=None, local_vars_configuration=None): # noqa: E501 """AuthenticityCheckList - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._count = None self._list = None self.discriminator = None + if count is not None: + self.count = count self.list = list + @property + def count(self): + """Gets the count of this AuthenticityCheckList. # noqa: E501 + + Count of items in List # noqa: E501 + + :return: The count of this AuthenticityCheckList. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this AuthenticityCheckList. + + Count of items in List # noqa: E501 + + :param count: The count of this AuthenticityCheckList. # noqa: E501 + :type count: int + """ + + self._count = count + @property def list(self): """Gets the list of this AuthenticityCheckList. # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/check_diagnose.py b/regula/documentreader/webclient/gen/models/check_diagnose.py index ae9d418..7d0cf30 100644 --- a/regula/documentreader/webclient/gen/models/check_diagnose.py +++ b/regula/documentreader/webclient/gen/models/check_diagnose.py @@ -182,7 +182,9 @@ class CheckDiagnose(object): LAST_DIAGNOSE_VALUE = int("157") - allowable_values = [UNKNOWN, PASS, INVALID_INPUT_DATA, INTERNAL_ERROR, EXCEPTION_IN_MODULE, UNCERTAIN_VERIFICATION, NECESSARY_IMAGE_NOT_FOUND, PHOTO_SIDES_NOT_FOUND, INVALID_CHECKSUM, SYNTAX_ERROR, LOGIC_ERROR, SOURCES_COMPARISON_ERROR, FIELDS_COMPARISON_LOGIC_ERROR, INVALID_FIELD_FORMAT, TRUE_LUMINESCENCE_ERROR, FALSE_LUMINESCENCE_ERROR, FIXED_PATTERN_ERROR, LOW_CONTRAST_IN_IR_LIGHT, INCORRECT_BACKGROUND_LIGHT, BACKGROUND_COMPARISON_ERROR, INCORRECT_TEXT_COLOR, PHOTO_FALSE_LUMINESCENCE, TOO_MUCH_SHIFT, FIBERS_NOT_FOUND, TOO_MANY_OBJECTS, SPECKS_IN_UV, TOO_LOW_RESOLUTION, INVISIBLE_ELEMENT_PRESENT, VISIBLE_ELEMENT_ABSENT, ELEMENT_SHOULD_BE_COLORED, ELEMENT_SHOULD_BE_GRAYSCALE, PHOTO_WHITE_IR_DONT_MATCH, UV_DULL_PAPER_MRZ, FALSE_LUMINESCENCE_IN_MRZ, UV_DULL_PAPER_PHOTO, UV_DULL_PAPER_BLANK, UV_DULL_PAPER_ERROR, FALSE_LUMINESCENCE_IN_BLANK, BAD_AREA_IN_AXIAL, FALSE_IP_PARAMETERS, FIELD_POS_CORRECTOR_HIGHLIGHT_IR, OVI_IR_INVISIBLE, OVI_INSUFFICIENT_AREA, OVI_COLOR_INVARIABLE, OVI_BAD_COLOR_FRONT, OVI_BAD_COLOR_SIDE, OVI_WIDE_COLOR_SPREAD, OVI_BAD_COLOR_PERCENT, HOLOGRAM_ELEMENT_ABSENT, HOLOGRAM_SIDE_TOP_IMAGES_ABSENT, HOLOGRAM_ELEMENT_PRESENT, PHOTO_PATTERN_INTERRUPTED, PHOTO_PATTERN_SHIFTED, PHOTO_PATTERN_DIFFERENT_COLORS, PHOTO_PATTERN_IR_VISIBLE, PHOTO_PATTERN_NOT_INTERSECT, PHOTO_SIZE_IS_WRONG, PHOTO_PATTERN_INVALID_COLOR, PHOTO_PATTERN_SHIFTED_VERT, PHOTO_PATTERN_PATTERN_NOT_FOUND, PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS, PHOTO_IS_NOT_RECTANGLE, PHOTO_CORNERS_IS_WRONG, TEXT_COLOR_SHOULD_BE_BLUE, TEXT_COLOR_SHOULD_BE_GREEN, TEXT_COLOR_SHOULD_BE_RED, TEXT_SHOULD_BE_BLACK, BARCODE_WAS_READ_WITH_ERRORS, BARCODE_DATA_FORMAT_ERROR, BARCODE_SIZE_PARAMS_ERROR, NOT_ALL_BARCODES_READ, PORTRAIT_COMPARISON_PORTRAITS_DIFFER, PORTRAIT_COMPARISON_NO_SERVICE_REPLY, PORTRAIT_COMPARISON_SERVICE_ERROR, PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES, PORTRAIT_COMPARISON_NO_LIVE_PHOTO, PORTRAIT_COMPARISON_NO_SERVICE_LICENSE, PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED, LAST_DIAGNOSE_VALUE] # noqa: E501 + FIELD_POS_CORRECTOR_PHOTO_REPLACED = int("82") + + allowable_values = [UNKNOWN, PASS, INVALID_INPUT_DATA, INTERNAL_ERROR, EXCEPTION_IN_MODULE, UNCERTAIN_VERIFICATION, NECESSARY_IMAGE_NOT_FOUND, PHOTO_SIDES_NOT_FOUND, INVALID_CHECKSUM, SYNTAX_ERROR, LOGIC_ERROR, SOURCES_COMPARISON_ERROR, FIELDS_COMPARISON_LOGIC_ERROR, INVALID_FIELD_FORMAT, TRUE_LUMINESCENCE_ERROR, FALSE_LUMINESCENCE_ERROR, FIXED_PATTERN_ERROR, LOW_CONTRAST_IN_IR_LIGHT, INCORRECT_BACKGROUND_LIGHT, BACKGROUND_COMPARISON_ERROR, INCORRECT_TEXT_COLOR, PHOTO_FALSE_LUMINESCENCE, TOO_MUCH_SHIFT, FIBERS_NOT_FOUND, TOO_MANY_OBJECTS, SPECKS_IN_UV, TOO_LOW_RESOLUTION, INVISIBLE_ELEMENT_PRESENT, VISIBLE_ELEMENT_ABSENT, ELEMENT_SHOULD_BE_COLORED, ELEMENT_SHOULD_BE_GRAYSCALE, PHOTO_WHITE_IR_DONT_MATCH, UV_DULL_PAPER_MRZ, FALSE_LUMINESCENCE_IN_MRZ, UV_DULL_PAPER_PHOTO, UV_DULL_PAPER_BLANK, UV_DULL_PAPER_ERROR, FALSE_LUMINESCENCE_IN_BLANK, BAD_AREA_IN_AXIAL, FALSE_IP_PARAMETERS, FIELD_POS_CORRECTOR_HIGHLIGHT_IR, OVI_IR_INVISIBLE, OVI_INSUFFICIENT_AREA, OVI_COLOR_INVARIABLE, OVI_BAD_COLOR_FRONT, OVI_BAD_COLOR_SIDE, OVI_WIDE_COLOR_SPREAD, OVI_BAD_COLOR_PERCENT, HOLOGRAM_ELEMENT_ABSENT, HOLOGRAM_SIDE_TOP_IMAGES_ABSENT, HOLOGRAM_ELEMENT_PRESENT, PHOTO_PATTERN_INTERRUPTED, PHOTO_PATTERN_SHIFTED, PHOTO_PATTERN_DIFFERENT_COLORS, PHOTO_PATTERN_IR_VISIBLE, PHOTO_PATTERN_NOT_INTERSECT, PHOTO_SIZE_IS_WRONG, PHOTO_PATTERN_INVALID_COLOR, PHOTO_PATTERN_SHIFTED_VERT, PHOTO_PATTERN_PATTERN_NOT_FOUND, PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS, PHOTO_IS_NOT_RECTANGLE, PHOTO_CORNERS_IS_WRONG, TEXT_COLOR_SHOULD_BE_BLUE, TEXT_COLOR_SHOULD_BE_GREEN, TEXT_COLOR_SHOULD_BE_RED, TEXT_SHOULD_BE_BLACK, BARCODE_WAS_READ_WITH_ERRORS, BARCODE_DATA_FORMAT_ERROR, BARCODE_SIZE_PARAMS_ERROR, NOT_ALL_BARCODES_READ, PORTRAIT_COMPARISON_PORTRAITS_DIFFER, PORTRAIT_COMPARISON_NO_SERVICE_REPLY, PORTRAIT_COMPARISON_SERVICE_ERROR, PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES, PORTRAIT_COMPARISON_NO_LIVE_PHOTO, PORTRAIT_COMPARISON_NO_SERVICE_LICENSE, PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED, LAST_DIAGNOSE_VALUE, FIELD_POS_CORRECTOR_PHOTO_REPLACED] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/graphic_field_type.py b/regula/documentreader/webclient/gen/models/graphic_field_type.py index dee7b70..4875dc2 100755 --- a/regula/documentreader/webclient/gen/models/graphic_field_type.py +++ b/regula/documentreader/webclient/gen/models/graphic_field_type.py @@ -68,7 +68,13 @@ class GraphicFieldType(object): FINGER_RIGHT_LITTLE = int("309") - allowable_values = [PORTRAIT, FINGERPRINT, EYE, SIGNATURE, BAR_CODE, PROOF_OF_CITIZENSHIP, DOCUMENT_FRONT, DOCUMENT_REAR, COLOR_DYNAMIC, GHOST_PORTRAIT, STAMP, OTHER, FINGER_LEFT_THUMB, FINGER_LEFT_INDEX, FINGER_LEFT_MIDDLE, FINGER_LEFT_RING, FINGER_LEFT_LITTLE, FINGER_RIGHT_THUMB, FINGER_RIGHT_INDEX, FINGER_RIGHT_MIDDLE, FINGER_RIGHT_RING, FINGER_RIGHT_LITTLE] # noqa: E501 + FINGER_RIGHT_FOUR_FINGERS = int("313") + + FINGER_LEFT_FOUR_FINGERS = int("314") + + FINGER_TWO_THUMBS = int("315") + + allowable_values = [PORTRAIT, FINGERPRINT, EYE, SIGNATURE, BAR_CODE, PROOF_OF_CITIZENSHIP, DOCUMENT_FRONT, DOCUMENT_REAR, COLOR_DYNAMIC, GHOST_PORTRAIT, STAMP, OTHER, FINGER_LEFT_THUMB, FINGER_LEFT_INDEX, FINGER_LEFT_MIDDLE, FINGER_LEFT_RING, FINGER_LEFT_LITTLE, FINGER_RIGHT_THUMB, FINGER_RIGHT_INDEX, FINGER_RIGHT_MIDDLE, FINGER_RIGHT_RING, FINGER_RIGHT_LITTLE, FINGER_RIGHT_FOUR_FINGERS, FINGER_LEFT_FOUR_FINGERS, FINGER_TWO_THUMBS] # noqa: E501 """ Attributes: diff --git a/regula/documentreader/webclient/gen/models/ident_result.py b/regula/documentreader/webclient/gen/models/ident_result.py index 23bafba..b032480 100644 --- a/regula/documentreader/webclient/gen/models/ident_result.py +++ b/regula/documentreader/webclient/gen/models/ident_result.py @@ -41,7 +41,7 @@ class IdentResult(object): 'image': 'ImageData', 'etalon_image': 'ImageData', 'percent_value': 'int', - 'area_list': 'list[AreaContainer]' + 'area_list': 'AreaContainer' } attribute_map = { @@ -296,7 +296,7 @@ def area_list(self): :return: The area_list of this IdentResult. # noqa: E501 - :rtype: list[AreaContainer] + :rtype: AreaContainer """ return self._area_list @@ -306,7 +306,7 @@ def area_list(self, area_list): :param area_list: The area_list of this IdentResult. # noqa: E501 - :type area_list: list[AreaContainer] + :type area_list: AreaContainer """ self._area_list = area_list diff --git a/regula/documentreader/webclient/gen/models/ident_result_all_of.py b/regula/documentreader/webclient/gen/models/ident_result_all_of.py index cbd7824..63bbd7a 100644 --- a/regula/documentreader/webclient/gen/models/ident_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/ident_result_all_of.py @@ -38,7 +38,7 @@ class IdentResultAllOf(object): 'image': 'ImageData', 'etalon_image': 'ImageData', 'percent_value': 'int', - 'area_list': 'list[AreaContainer]' + 'area_list': 'AreaContainer' } attribute_map = { @@ -215,7 +215,7 @@ def area_list(self): :return: The area_list of this IdentResultAllOf. # noqa: E501 - :rtype: list[AreaContainer] + :rtype: AreaContainer """ return self._area_list @@ -225,7 +225,7 @@ def area_list(self, area_list): :param area_list: The area_list of this IdentResultAllOf. # noqa: E501 - :type area_list: list[AreaContainer] + :type area_list: AreaContainer """ self._area_list = area_list diff --git a/regula/documentreader/webclient/gen/models/process_params.py b/regula/documentreader/webclient/gen/models/process_params.py index ab7e725..ed596b9 100755 --- a/regula/documentreader/webclient/gen/models/process_params.py +++ b/regula/documentreader/webclient/gen/models/process_params.py @@ -67,7 +67,8 @@ class ProcessParams(object): 'convert_case': 'TextPostProcessing', 'split_names': 'bool', 'disable_perforation_ocr': 'bool', - 'document_group_filter': 'list[DocumentType]' + 'document_group_filter': 'list[DocumentType]', + 'process_auth': 'list[AuthenticityResultType]' } attribute_map = { @@ -106,10 +107,11 @@ class ProcessParams(object): 'convert_case': 'convertCase', 'split_names': 'splitNames', 'disable_perforation_ocr': 'disablePerforationOCR', - 'document_group_filter': 'documentGroupFilter' + 'document_group_filter': 'documentGroupFilter', + 'process_auth': 'processAuth' } - def __init__(self, scenario=None, result_type_output=None, double_page_spread=None, generate_double_page_spread_image=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, config=None, log=None, log_level=None, force_doc_id=None, match_text_field_mask=None, fast_doc_detect=None, update_ocr_validity_by_glare=None, check_required_text_fields=None, return_cropped_barcode=None, image_qa=None, respect_image_quality=None, force_doc_format=None, no_graphics=None, document_area_min=None, depersonalize_log=None, multi_doc_on_image=None, shift_expiry_date=None, minimal_holder_age=None, return_uncropped_image=None, mrz_formats_filter=None, force_read_mrz_before_locate=None, parse_barcodes=None, convert_case=None, split_names=None, disable_perforation_ocr=None, document_group_filter=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, scenario=None, result_type_output=None, double_page_spread=None, generate_double_page_spread_image=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, config=None, log=None, log_level=None, force_doc_id=None, match_text_field_mask=None, fast_doc_detect=None, update_ocr_validity_by_glare=None, check_required_text_fields=None, return_cropped_barcode=None, image_qa=None, respect_image_quality=None, force_doc_format=None, no_graphics=None, document_area_min=None, depersonalize_log=None, multi_doc_on_image=None, shift_expiry_date=None, minimal_holder_age=None, return_uncropped_image=None, mrz_formats_filter=None, force_read_mrz_before_locate=None, parse_barcodes=None, convert_case=None, split_names=None, disable_perforation_ocr=None, document_group_filter=None, process_auth=None, local_vars_configuration=None): # noqa: E501 """ProcessParams - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -151,6 +153,7 @@ def __init__(self, scenario=None, result_type_output=None, double_page_spread=No self._split_names = None self._disable_perforation_ocr = None self._document_group_filter = None + self._process_auth = None self.discriminator = None self.scenario = scenario @@ -224,6 +227,8 @@ def __init__(self, scenario=None, result_type_output=None, double_page_spread=No self.disable_perforation_ocr = disable_perforation_ocr if document_group_filter is not None: self.document_group_filter = document_group_filter + if process_auth is not None: + self.process_auth = process_auth @property def scenario(self): @@ -1043,6 +1048,29 @@ def document_group_filter(self, document_group_filter): self._document_group_filter = document_group_filter + @property + def process_auth(self): + """Gets the process_auth of this ProcessParams. # noqa: E501 + + Authenticity checks that should be performed regardless of the document type. The available checks are listed in the eRPRM_Authenticity enum. Note that only supported by your license checks can be added. # noqa: E501 + + :return: The process_auth of this ProcessParams. # noqa: E501 + :rtype: list[AuthenticityResultType] + """ + return self._process_auth + + @process_auth.setter + def process_auth(self, process_auth): + """Sets the process_auth of this ProcessParams. + + Authenticity checks that should be performed regardless of the document type. The available checks are listed in the eRPRM_Authenticity enum. Note that only supported by your license checks can be added. # noqa: E501 + + :param process_auth: The process_auth of this ProcessParams. # noqa: E501 + :type process_auth: list[AuthenticityResultType] + """ + + self._process_auth = process_auth + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/security_feature_result.py b/regula/documentreader/webclient/gen/models/security_feature_result.py index 041b2a5..55b84b3 100644 --- a/regula/documentreader/webclient/gen/models/security_feature_result.py +++ b/regula/documentreader/webclient/gen/models/security_feature_result.py @@ -39,7 +39,7 @@ class SecurityFeatureResult(object): 'element_rect': 'RectangleCoordinates', 'visibility': 'Visibility', 'critical_flag': 'Critical', - 'area_list': 'list[AreaContainer]', + 'area_list': 'AreaContainer', 'reserved2': 'int' } @@ -247,7 +247,7 @@ def area_list(self): :return: The area_list of this SecurityFeatureResult. # noqa: E501 - :rtype: list[AreaContainer] + :rtype: AreaContainer """ return self._area_list @@ -257,7 +257,7 @@ def area_list(self, area_list): :param area_list: The area_list of this SecurityFeatureResult. # noqa: E501 - :type area_list: list[AreaContainer] + :type area_list: AreaContainer """ self._area_list = area_list diff --git a/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py b/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py index ba6671d..eb0e081 100644 --- a/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py +++ b/regula/documentreader/webclient/gen/models/security_feature_result_all_of.py @@ -36,7 +36,7 @@ class SecurityFeatureResultAllOf(object): 'element_rect': 'RectangleCoordinates', 'visibility': 'Visibility', 'critical_flag': 'Critical', - 'area_list': 'list[AreaContainer]', + 'area_list': 'AreaContainer', 'reserved2': 'int' } @@ -166,7 +166,7 @@ def area_list(self): :return: The area_list of this SecurityFeatureResultAllOf. # noqa: E501 - :rtype: list[AreaContainer] + :rtype: AreaContainer """ return self._area_list @@ -176,7 +176,7 @@ def area_list(self, area_list): :param area_list: The area_list of this SecurityFeatureResultAllOf. # noqa: E501 - :type area_list: list[AreaContainer] + :type area_list: AreaContainer """ self._area_list = area_list