diff --git a/examples/doc_scan/app.py b/examples/doc_scan/app.py index 3de18b4d..86400d27 100644 --- a/examples/doc_scan/app.py +++ b/examples/doc_scan/app.py @@ -53,32 +53,32 @@ def create_session(): session_spec = ( SessionSpecBuilder() .with_client_session_token_ttl(600) - .with_resources_ttl(90000) + .with_resources_ttl(604800) .with_user_tracking_id("some-user-tracking-id") .with_requested_check( RequestedDocumentAuthenticityCheckBuilder() - .with_manual_check_always() + .with_manual_check_fallback() .build() ) .with_requested_check( RequestedLivenessCheckBuilder() - .for_zoom_liveness() - .with_max_retries(1) + .for_static_liveness() + .with_max_retries(3) .build() ) .with_requested_check( - RequestedFaceMatchCheckBuilder().with_manual_check_always().build() + RequestedFaceMatchCheckBuilder().with_manual_check_fallback().build() ) .with_requested_check(RequestedIDDocumentComparisonCheckBuilder().build()) .with_requested_task( RequestedTextExtractionTaskBuilder() - .with_manual_check_always() + .with_manual_check_fallback() .with_chip_data_desired() .build() ) .with_requested_task( RequestedSupplementaryDocTextExtractionTaskBuilder() - .with_manual_check_always() + .with_manual_check_fallback() .build() ) .with_sdk_config(sdk_config) diff --git a/requirements.in b/requirements.in index d7235772..f25ecb5c 100644 --- a/requirements.in +++ b/requirements.in @@ -4,7 +4,7 @@ cffi==1.14.3 future==0.18.2 itsdangerous==1.1.0 pbr==1.10.0 -protobuf==3.13.0 +protobuf==4.21.12 pyopenssl==19.1.0 PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4 pytz==2022.1 diff --git a/requirements.txt b/requirements.txt index 7d09771c..ac3a5451 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ itsdangerous==1.1.0 # via -r requirements.in pbr==1.10.0 # via -r requirements.in -protobuf==3.13.0 +protobuf==4.21.12 # via -r requirements.in pycparser==2.18 # via cffi diff --git a/setup.py b/setup.py index 5f11c781..1564e16e 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ install_requires=[ "deprecated==1.2.10", "cryptography>=2.2.1", - "protobuf==3.13.0", + "protobuf==3.20.1", "requests>=2.11.1", "future>=0.11.0", "asn1==2.2.0", diff --git a/sonar-project.properties b/sonar-project.properties index e85e5860..1adb1c05 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,7 +2,7 @@ sonar.host.url = https://sonarcloud.io sonar.organization = getyoti sonar.projectKey = getyoti:python sonar.projectName = Python SDK -sonar.projectVersion = 2.14.1 +sonar.projectVersion = 2.14.2 sonar.exclusions = yoti_python_sdk/tests/**,examples/**,yoti_python_sdk/protobuf/**/* sonar.python.pylint.reportPath = coverage.out diff --git a/yoti_python_sdk/version.py b/yoti_python_sdk/version.py index e8cf2158..072a54c4 100644 --- a/yoti_python_sdk/version.py +++ b/yoti_python_sdk/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = "2.14.1" +__version__ = "2.14.2"