regula-facesdk-webclient 7.2.388.dev0__py3-none-any.whl → 8.1.433.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.
- regula/facesdk/webclient/__init__.py +5 -5
- regula/facesdk/webclient/ext/api/group_api.py +2 -27
- regula/facesdk/webclient/ext/api/match_api.py +3 -29
- regula/facesdk/webclient/ext/api/person_api.py +8 -34
- regula/facesdk/webclient/ext/api/sdk.py +5 -3
- regula/facesdk/webclient/ext/api/search_api.py +2 -6
- regula/facesdk/webclient/ext/models/detect_request.py +6 -5
- regula/facesdk/webclient/ext/models/match_image.py +3 -3
- regula/facesdk/webclient/ext/models/match_request.py +7 -5
- regula/facesdk/webclient/gen/__init__.py +349 -18
- regula/facesdk/webclient/gen/api/__init__.py +30 -3
- regula/facesdk/webclient/gen/api/group_api.py +1854 -799
- regula/facesdk/webclient/gen/api/healthcheck_api.py +475 -215
- regula/facesdk/webclient/gen/api/liveness20_api.py +565 -0
- regula/facesdk/webclient/gen/api/match_api.py +801 -355
- regula/facesdk/webclient/gen/api/person_api.py +2399 -1039
- regula/facesdk/webclient/gen/api/search_api.py +286 -130
- regula/facesdk/webclient/gen/api_client.py +577 -476
- regula/facesdk/webclient/gen/api_response.py +21 -0
- regula/facesdk/webclient/gen/configuration.py +231 -105
- regula/facesdk/webclient/gen/exceptions.py +82 -33
- regula/facesdk/webclient/gen/models/__init__.py +202 -95
- regula/facesdk/webclient/gen/models/add_image_to_person_request.py +96 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_request_data.py +92 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_request_image.py +92 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_response.py +92 -0
- regula/facesdk/webclient/gen/models/attribute_config.py +83 -0
- regula/facesdk/webclient/gen/models/attributes_data.py +82 -0
- regula/facesdk/webclient/gen/models/crop.py +88 -0
- regula/facesdk/webclient/gen/models/detail_item.py +136 -0
- regula/facesdk/webclient/gen/models/detect_attributes_details.py +84 -0
- regula/facesdk/webclient/gen/models/detect_details_meta.py +86 -0
- regula/facesdk/webclient/gen/models/detect_meta_data.py +84 -0
- regula/facesdk/webclient/gen/models/detect_request.py +94 -0
- regula/facesdk/webclient/gen/models/detect_request_data.py +90 -0
- regula/facesdk/webclient/gen/models/detect_response.py +89 -0
- regula/facesdk/webclient/gen/models/detect_response_results.py +86 -0
- regula/facesdk/webclient/gen/models/detect_result.py +98 -0
- regula/facesdk/webclient/gen/models/detection.py +98 -0
- regula/facesdk/webclient/gen/models/detection_attributes.py +92 -0
- regula/facesdk/webclient/gen/models/detection_attributes_details_inner.py +132 -0
- regula/facesdk/webclient/gen/models/detection_face.py +90 -0
- regula/facesdk/webclient/gen/models/detection_quality.py +107 -0
- regula/facesdk/webclient/gen/models/device_info.py +111 -0
- regula/facesdk/webclient/gen/models/face_attribute.py +40 -0
- regula/facesdk/webclient/gen/models/face_image_quality_align_type.py +32 -0
- regula/facesdk/webclient/gen/models/face_image_quality_groups.py +35 -0
- regula/facesdk/webclient/gen/models/face_image_quality_groups_strings.py +35 -0
- regula/facesdk/webclient/gen/models/face_image_quality_status.py +30 -0
- regula/facesdk/webclient/gen/models/face_quality_config_name.py +75 -0
- regula/facesdk/webclient/gen/models/face_quality_scenarios.py +37 -0
- regula/facesdk/webclient/gen/models/face_sdk_result.py +83 -0
- regula/facesdk/webclient/gen/models/face_sdk_result_code.py +68 -0
- regula/facesdk/webclient/gen/models/faces_response.py +100 -0
- regula/facesdk/webclient/gen/models/faces_response_data.py +90 -0
- regula/facesdk/webclient/gen/models/filter_op.py +29 -0
- regula/facesdk/webclient/gen/models/filter_search_request.py +87 -0
- regula/facesdk/webclient/gen/models/group.py +89 -0
- regula/facesdk/webclient/gen/models/group_data.py +85 -0
- regula/facesdk/webclient/gen/models/group_page.py +94 -0
- regula/facesdk/webclient/gen/models/group_page_items.py +90 -0
- regula/facesdk/webclient/gen/models/group_response.py +84 -0
- regula/facesdk/webclient/gen/models/group_to_create.py +86 -0
- regula/facesdk/webclient/gen/models/image.py +96 -0
- regula/facesdk/webclient/gen/models/image_fields.py +100 -0
- regula/facesdk/webclient/gen/models/image_fields_image.py +92 -0
- regula/facesdk/webclient/gen/models/image_page.py +94 -0
- regula/facesdk/webclient/gen/models/image_page_items.py +90 -0
- regula/facesdk/webclient/gen/models/image_source.py +34 -0
- regula/facesdk/webclient/gen/models/liveness_type.py +29 -0
- regula/facesdk/webclient/gen/models/match_and_search_request.py +103 -0
- regula/facesdk/webclient/gen/models/match_and_search_request_images_item.py +87 -0
- regula/facesdk/webclient/gen/models/match_and_search_response.py +107 -0
- regula/facesdk/webclient/gen/models/match_and_search_response_data.py +104 -0
- regula/facesdk/webclient/gen/models/match_and_search_response_data_detections_item.py +95 -0
- regula/facesdk/webclient/gen/models/match_image.py +89 -0
- regula/facesdk/webclient/gen/models/match_image_detection.py +95 -0
- regula/facesdk/webclient/gen/models/match_image_result.py +97 -0
- regula/facesdk/webclient/gen/models/match_request.py +102 -0
- regula/facesdk/webclient/gen/models/match_request_data.py +98 -0
- regula/facesdk/webclient/gen/models/match_response.py +105 -0
- regula/facesdk/webclient/gen/models/match_response_data.py +102 -0
- regula/facesdk/webclient/gen/models/operation_log.py +88 -0
- regula/facesdk/webclient/gen/models/output_image_params.py +89 -0
- regula/facesdk/webclient/gen/models/page.py +84 -0
- regula/facesdk/webclient/gen/models/person.py +97 -0
- regula/facesdk/webclient/gen/models/person_data.py +87 -0
- regula/facesdk/webclient/gen/models/person_fields.py +91 -0
- regula/facesdk/webclient/gen/models/person_items.py +90 -0
- regula/facesdk/webclient/gen/models/person_to_update_fields.py +89 -0
- regula/facesdk/webclient/gen/models/person_with_images.py +107 -0
- regula/facesdk/webclient/gen/models/person_with_images_data.py +90 -0
- regula/facesdk/webclient/gen/models/persons_page.py +94 -0
- regula/facesdk/webclient/gen/models/process_param.py +103 -0
- regula/facesdk/webclient/gen/models/process_param_attributes.py +90 -0
- regula/facesdk/webclient/gen/models/quality_config.py +86 -0
- regula/facesdk/webclient/gen/models/quality_detail.py +94 -0
- regula/facesdk/webclient/gen/models/quality_details_groups.py +90 -0
- regula/facesdk/webclient/gen/models/quality_request.py +93 -0
- regula/facesdk/webclient/gen/models/recognize_image.py +100 -0
- regula/facesdk/webclient/gen/models/recognize_image_data.py +84 -0
- regula/facesdk/webclient/gen/models/resize_options.py +86 -0
- regula/facesdk/webclient/gen/models/search_bad_params.py +86 -0
- regula/facesdk/webclient/gen/models/search_detection.py +102 -0
- regula/facesdk/webclient/gen/models/search_parameters.py +95 -0
- regula/facesdk/webclient/gen/models/search_parameters_create_person.py +86 -0
- regula/facesdk/webclient/gen/models/search_person.py +113 -0
- regula/facesdk/webclient/gen/models/search_person_data.py +96 -0
- regula/facesdk/webclient/gen/models/search_request.py +119 -0
- regula/facesdk/webclient/gen/models/search_result.py +92 -0
- regula/facesdk/webclient/gen/models/transaction_info.py +99 -0
- regula/facesdk/webclient/gen/models/transaction_labels.py +84 -0
- regula/facesdk/webclient/gen/models/update_group.py +85 -0
- regula/facesdk/webclient/gen/py.typed +0 -0
- regula/facesdk/webclient/gen/rest.py +136 -232
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/METADATA +7 -4
- regula_facesdk_webclient-8.1.433.dev0.dist-info/RECORD +125 -0
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/WHEEL +1 -1
- regula/facesdk/webclient/gen/api/diagnostics_api.py +0 -162
- regula/facesdk/webclient/gen/api/liveness_2_0_api.py +0 -306
- regula/facesdk/webclient/gen/api/liveness_api.py +0 -424
- regula/facesdk/webclient/gen/apis/__init__.py +0 -22
- regula/facesdk/webclient/gen/model/__init__.py +0 -5
- regula/facesdk/webclient/gen/model/add_image_to_person_request.py +0 -261
- regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +0 -204
- regula/facesdk/webclient/gen/model/add_image_to_person_response.py +0 -262
- regula/facesdk/webclient/gen/model/attribute_config.py +0 -120
- regula/facesdk/webclient/gen/model/attribute_config_list.py +0 -92
- regula/facesdk/webclient/gen/model/crop.py +0 -180
- regula/facesdk/webclient/gen/model/detect_attributes_details.py +0 -150
- regula/facesdk/webclient/gen/model/detect_details_meta.py +0 -178
- regula/facesdk/webclient/gen/model/detect_request.py +0 -232
- regula/facesdk/webclient/gen/model/detect_request_attributes.py +0 -120
- regula/facesdk/webclient/gen/model/detect_response.py +0 -147
- regula/facesdk/webclient/gen/model/detect_response_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/detect_result.py +0 -235
- regula/facesdk/webclient/gen/model/detection.py +0 -230
- regula/facesdk/webclient/gen/model/detection_attributes.py +0 -150
- regula/facesdk/webclient/gen/model/detection_face.py +0 -232
- regula/facesdk/webclient/gen/model/detection_quality.py +0 -234
- regula/facesdk/webclient/gen/model/device_info.py +0 -231
- regula/facesdk/webclient/gen/model/face_align_type_quality.py +0 -109
- regula/facesdk/webclient/gen/model/face_attribute.py +0 -133
- regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +0 -109
- regula/facesdk/webclient/gen/model/face_image_quality_groups.py +0 -118
- regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +0 -118
- regula/facesdk/webclient/gen/model/face_image_quality_status.py +0 -103
- regula/facesdk/webclient/gen/model/face_quality_config_name.py +0 -238
- regula/facesdk/webclient/gen/model/face_quality_scenarios.py +0 -124
- regula/facesdk/webclient/gen/model/face_quality_status.py +0 -103
- regula/facesdk/webclient/gen/model/face_rectangular.py +0 -92
- regula/facesdk/webclient/gen/model/face_sdk_result.py +0 -121
- regula/facesdk/webclient/gen/model/face_sdk_result_code.py +0 -217
- regula/facesdk/webclient/gen/model/faces_response.py +0 -258
- regula/facesdk/webclient/gen/model/faces_response_all_of.py +0 -148
- regula/facesdk/webclient/gen/model/filter_op.py +0 -100
- regula/facesdk/webclient/gen/model/filter_search_request.py +0 -176
- regula/facesdk/webclient/gen/model/group.py +0 -206
- regula/facesdk/webclient/gen/model/group_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/group_page.py +0 -178
- regula/facesdk/webclient/gen/model/group_page_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/group_response.py +0 -150
- regula/facesdk/webclient/gen/model/group_to_create.py +0 -180
- regula/facesdk/webclient/gen/model/image.py +0 -318
- regula/facesdk/webclient/gen/model/image_fields.py +0 -258
- regula/facesdk/webclient/gen/model/image_fields_image.py +0 -204
- regula/facesdk/webclient/gen/model/image_page.py +0 -176
- regula/facesdk/webclient/gen/model/image_page_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/image_source.py +0 -115
- regula/facesdk/webclient/gen/model/liveness_transaction.py +0 -334
- regula/facesdk/webclient/gen/model/liveness_type.py +0 -100
- regula/facesdk/webclient/gen/model/match_and_search_request.py +0 -290
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +0 -234
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +0 -148
- regula/facesdk/webclient/gen/model/match_and_search_request_images.py +0 -176
- regula/facesdk/webclient/gen/model/match_and_search_response.py +0 -233
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +0 -206
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +0 -176
- regula/facesdk/webclient/gen/model/match_image.py +0 -205
- regula/facesdk/webclient/gen/model/match_image_detection.py +0 -178
- regula/facesdk/webclient/gen/model/match_image_result.py +0 -316
- regula/facesdk/webclient/gen/model/match_request.py +0 -233
- regula/facesdk/webclient/gen/model/match_request_output_image_params.py +0 -148
- regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +0 -212
- regula/facesdk/webclient/gen/model/match_response.py +0 -205
- regula/facesdk/webclient/gen/model/match_response_all_of.py +0 -178
- regula/facesdk/webclient/gen/model/operation_log.py +0 -206
- regula/facesdk/webclient/gen/model/output_image_params.py +0 -146
- regula/facesdk/webclient/gen/model/page.py +0 -150
- regula/facesdk/webclient/gen/model/person.py +0 -319
- regula/facesdk/webclient/gen/model/person_all_of.py +0 -206
- regula/facesdk/webclient/gen/model/person_created_response.py +0 -178
- regula/facesdk/webclient/gen/model/person_fields.py +0 -235
- regula/facesdk/webclient/gen/model/person_to_update_fields.py +0 -206
- regula/facesdk/webclient/gen/model/person_with_images.py +0 -347
- regula/facesdk/webclient/gen/model/person_with_images_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/persons_page.py +0 -176
- regula/facesdk/webclient/gen/model/persons_page_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/persons_request.py +0 -291
- regula/facesdk/webclient/gen/model/persons_request_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/process_param.py +0 -226
- regula/facesdk/webclient/gen/model/process_param_attributes.py +0 -120
- regula/facesdk/webclient/gen/model/quality_config.py +0 -154
- regula/facesdk/webclient/gen/model/quality_config_list.py +0 -92
- regula/facesdk/webclient/gen/model/quality_detail.py +0 -234
- regula/facesdk/webclient/gen/model/quality_details_groups.py +0 -202
- regula/facesdk/webclient/gen/model/quality_request.py +0 -146
- regula/facesdk/webclient/gen/model/recognize_image.py +0 -374
- regula/facesdk/webclient/gen/model/recognize_image_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/resize_options.py +0 -178
- regula/facesdk/webclient/gen/model/rgb.py +0 -92
- regula/facesdk/webclient/gen/model/search_bad_params.py +0 -172
- regula/facesdk/webclient/gen/model/search_detection.py +0 -398
- regula/facesdk/webclient/gen/model/search_parameters.py +0 -174
- regula/facesdk/webclient/gen/model/search_parameters_create_person.py +0 -177
- regula/facesdk/webclient/gen/model/search_person.py +0 -373
- regula/facesdk/webclient/gen/model/search_person_all_of.py +0 -148
- regula/facesdk/webclient/gen/model/search_request.py +0 -394
- regula/facesdk/webclient/gen/model/search_request_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/search_result.py +0 -150
- regula/facesdk/webclient/gen/model/search_result_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/transaction_config.py +0 -92
- regula/facesdk/webclient/gen/model/transaction_info.py +0 -344
- regula/facesdk/webclient/gen/model/update_group.py +0 -150
- regula/facesdk/webclient/gen/model_utils.py +0 -2037
- regula_facesdk_webclient-7.2.388.dev0.dist-info/RECORD +0 -138
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/top_level.txt +0 -0
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Regula FaceSDK Web API
|
|
5
|
-
|
|
6
|
-
Regula FaceSDK Web API # Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 4.1.3
|
|
9
|
-
Generated by: https://openapi-generator.tech
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import pprint
|
|
14
|
-
import re # noqa: F401
|
|
15
|
-
|
|
16
|
-
import six
|
|
17
|
-
|
|
18
|
-
from regula.facesdk.webclient.gen.configuration import Configuration
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class LivenessTransaction(object):
|
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
-
Ref: https://openapi-generator.tech
|
|
24
|
-
|
|
25
|
-
Do not edit the class manually.
|
|
26
|
-
"""
|
|
27
|
-
|
|
28
|
-
"""
|
|
29
|
-
Attributes:
|
|
30
|
-
openapi_types (dict): The key is attribute name
|
|
31
|
-
and the value is attribute type.
|
|
32
|
-
attribute_map (dict): The key is attribute name
|
|
33
|
-
and the value is json key in definition.
|
|
34
|
-
"""
|
|
35
|
-
openapi_types = {
|
|
36
|
-
'code': 'int',
|
|
37
|
-
'config': 'TransactionConfig',
|
|
38
|
-
'elapsed': 'int',
|
|
39
|
-
'portrait': 'str',
|
|
40
|
-
'session_id': 'str',
|
|
41
|
-
'status': 'int',
|
|
42
|
-
'transaction_id': 'str',
|
|
43
|
-
'video': 'str',
|
|
44
|
-
'metadata': '{str: (bool, date, datetime, dict, float, int, list, str, none_type)}',
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
attribute_map = {
|
|
48
|
-
'code': 'code',
|
|
49
|
-
'config': 'config',
|
|
50
|
-
'elapsed': 'elapsed',
|
|
51
|
-
'portrait': 'portrait',
|
|
52
|
-
'session_id': 'sessionId',
|
|
53
|
-
'status': 'status',
|
|
54
|
-
'transaction_id': 'transactionId',
|
|
55
|
-
'video': 'video',
|
|
56
|
-
'metadata': 'metadata',
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
def __init__(self, code=None, config=None, elapsed=None, portrait=None, session_id=None, status=None, transaction_id=None, video=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
|
60
|
-
"""LivenessTransaction - a model defined in OpenAPI""" # noqa: E501
|
|
61
|
-
if local_vars_configuration is None:
|
|
62
|
-
local_vars_configuration = Configuration()
|
|
63
|
-
self.local_vars_configuration = local_vars_configuration
|
|
64
|
-
|
|
65
|
-
self._code = None
|
|
66
|
-
self._config = None
|
|
67
|
-
self._elapsed = None
|
|
68
|
-
self._portrait = None
|
|
69
|
-
self._session_id = None
|
|
70
|
-
self._status = None
|
|
71
|
-
self._transaction_id = None
|
|
72
|
-
self._video = None
|
|
73
|
-
self._metadata = None
|
|
74
|
-
self.discriminator = None
|
|
75
|
-
|
|
76
|
-
if code is not None:
|
|
77
|
-
self.code = code
|
|
78
|
-
if config is not None:
|
|
79
|
-
self.config = config
|
|
80
|
-
if elapsed is not None:
|
|
81
|
-
self.elapsed = elapsed
|
|
82
|
-
if portrait is not None:
|
|
83
|
-
self.portrait = portrait
|
|
84
|
-
if session_id is not None:
|
|
85
|
-
self.session_id = session_id
|
|
86
|
-
if status is not None:
|
|
87
|
-
self.status = status
|
|
88
|
-
if transaction_id is not None:
|
|
89
|
-
self.transaction_id = transaction_id
|
|
90
|
-
if video is not None:
|
|
91
|
-
self.video = video
|
|
92
|
-
if metadata is not None:
|
|
93
|
-
self.metadata = metadata
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
def code(self):
|
|
97
|
-
"""Gets the code of this LivenessTransaction. # noqa: E501
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
:return: The code of this LivenessTransaction. # noqa: E501
|
|
101
|
-
:rtype: int
|
|
102
|
-
"""
|
|
103
|
-
return self._code
|
|
104
|
-
|
|
105
|
-
@code.setter
|
|
106
|
-
def code(self, code):
|
|
107
|
-
"""Sets the code of this LivenessTransaction.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
:param code: The code of this LivenessTransaction. # noqa: E501
|
|
111
|
-
:type code: int
|
|
112
|
-
"""
|
|
113
|
-
|
|
114
|
-
self._code = code
|
|
115
|
-
|
|
116
|
-
@property
|
|
117
|
-
def config(self):
|
|
118
|
-
"""Gets the config of this LivenessTransaction. # noqa: E501
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
:return: The config of this LivenessTransaction. # noqa: E501
|
|
122
|
-
:rtype: TransactionConfig
|
|
123
|
-
"""
|
|
124
|
-
return self._config
|
|
125
|
-
|
|
126
|
-
@config.setter
|
|
127
|
-
def config(self, config):
|
|
128
|
-
"""Sets the config of this LivenessTransaction.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
:param config: The config of this LivenessTransaction. # noqa: E501
|
|
132
|
-
:type config: TransactionConfig
|
|
133
|
-
"""
|
|
134
|
-
|
|
135
|
-
self._config = config
|
|
136
|
-
|
|
137
|
-
@property
|
|
138
|
-
def elapsed(self):
|
|
139
|
-
"""Gets the elapsed of this LivenessTransaction. # noqa: E501
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
:return: The elapsed of this LivenessTransaction. # noqa: E501
|
|
143
|
-
:rtype: int
|
|
144
|
-
"""
|
|
145
|
-
return self._elapsed
|
|
146
|
-
|
|
147
|
-
@elapsed.setter
|
|
148
|
-
def elapsed(self, elapsed):
|
|
149
|
-
"""Sets the elapsed of this LivenessTransaction.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
:param elapsed: The elapsed of this LivenessTransaction. # noqa: E501
|
|
153
|
-
:type elapsed: int
|
|
154
|
-
"""
|
|
155
|
-
|
|
156
|
-
self._elapsed = elapsed
|
|
157
|
-
|
|
158
|
-
@property
|
|
159
|
-
def portrait(self):
|
|
160
|
-
"""Gets the portrait of this LivenessTransaction. # noqa: E501
|
|
161
|
-
|
|
162
|
-
URL for portrait image # noqa: E501
|
|
163
|
-
|
|
164
|
-
:return: The portrait of this LivenessTransaction. # noqa: E501
|
|
165
|
-
:rtype: str
|
|
166
|
-
"""
|
|
167
|
-
return self._portrait
|
|
168
|
-
|
|
169
|
-
@portrait.setter
|
|
170
|
-
def portrait(self, portrait):
|
|
171
|
-
"""Sets the portrait of this LivenessTransaction.
|
|
172
|
-
|
|
173
|
-
URL for portrait image # noqa: E501
|
|
174
|
-
|
|
175
|
-
:param portrait: The portrait of this LivenessTransaction. # noqa: E501
|
|
176
|
-
:type portrait: str
|
|
177
|
-
"""
|
|
178
|
-
|
|
179
|
-
self._portrait = portrait
|
|
180
|
-
|
|
181
|
-
@property
|
|
182
|
-
def session_id(self):
|
|
183
|
-
"""Gets the session_id of this LivenessTransaction. # noqa: E501
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
:return: The session_id of this LivenessTransaction. # noqa: E501
|
|
187
|
-
:rtype: str
|
|
188
|
-
"""
|
|
189
|
-
return self._session_id
|
|
190
|
-
|
|
191
|
-
@session_id.setter
|
|
192
|
-
def session_id(self, session_id):
|
|
193
|
-
"""Sets the session_id of this LivenessTransaction.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
:param session_id: The session_id of this LivenessTransaction. # noqa: E501
|
|
197
|
-
:type session_id: str
|
|
198
|
-
"""
|
|
199
|
-
|
|
200
|
-
self._session_id = session_id
|
|
201
|
-
|
|
202
|
-
@property
|
|
203
|
-
def status(self):
|
|
204
|
-
"""Gets the status of this LivenessTransaction. # noqa: E501
|
|
205
|
-
|
|
206
|
-
Whether the liveness detection is confirmed (0) or not (1) # noqa: E501
|
|
207
|
-
|
|
208
|
-
:return: The status of this LivenessTransaction. # noqa: E501
|
|
209
|
-
:rtype: int
|
|
210
|
-
"""
|
|
211
|
-
return self._status
|
|
212
|
-
|
|
213
|
-
@status.setter
|
|
214
|
-
def status(self, status):
|
|
215
|
-
"""Sets the status of this LivenessTransaction.
|
|
216
|
-
|
|
217
|
-
Whether the liveness detection is confirmed (0) or not (1) # noqa: E501
|
|
218
|
-
|
|
219
|
-
:param status: The status of this LivenessTransaction. # noqa: E501
|
|
220
|
-
:type status: int
|
|
221
|
-
"""
|
|
222
|
-
|
|
223
|
-
self._status = status
|
|
224
|
-
|
|
225
|
-
@property
|
|
226
|
-
def transaction_id(self):
|
|
227
|
-
"""Gets the transaction_id of this LivenessTransaction. # noqa: E501
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
:return: The transaction_id of this LivenessTransaction. # noqa: E501
|
|
231
|
-
:rtype: str
|
|
232
|
-
"""
|
|
233
|
-
return self._transaction_id
|
|
234
|
-
|
|
235
|
-
@transaction_id.setter
|
|
236
|
-
def transaction_id(self, transaction_id):
|
|
237
|
-
"""Sets the transaction_id of this LivenessTransaction.
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
:param transaction_id: The transaction_id of this LivenessTransaction. # noqa: E501
|
|
241
|
-
:type transaction_id: str
|
|
242
|
-
"""
|
|
243
|
-
|
|
244
|
-
self._transaction_id = transaction_id
|
|
245
|
-
|
|
246
|
-
@property
|
|
247
|
-
def video(self):
|
|
248
|
-
"""Gets the video of this LivenessTransaction. # noqa: E501
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
:return: The video of this LivenessTransaction. # noqa: E501
|
|
252
|
-
:rtype: str
|
|
253
|
-
"""
|
|
254
|
-
return self._video
|
|
255
|
-
|
|
256
|
-
@video.setter
|
|
257
|
-
def video(self, video):
|
|
258
|
-
"""Sets the video of this LivenessTransaction.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
:param video: The video of this LivenessTransaction. # noqa: E501
|
|
262
|
-
:type video: str
|
|
263
|
-
"""
|
|
264
|
-
|
|
265
|
-
self._video = video
|
|
266
|
-
|
|
267
|
-
@property
|
|
268
|
-
def metadata(self):
|
|
269
|
-
"""Gets the metadata of this LivenessTransaction. # noqa: E501
|
|
270
|
-
|
|
271
|
-
A free-form object containing the request information (server time, client IP, etc.). # noqa: E501
|
|
272
|
-
|
|
273
|
-
:return: The metadata of this LivenessTransaction. # noqa: E501
|
|
274
|
-
:rtype: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
275
|
-
"""
|
|
276
|
-
return self._metadata
|
|
277
|
-
|
|
278
|
-
@metadata.setter
|
|
279
|
-
def metadata(self, metadata):
|
|
280
|
-
"""Sets the metadata of this LivenessTransaction.
|
|
281
|
-
|
|
282
|
-
A free-form object containing the request information (server time, client IP, etc.). # noqa: E501
|
|
283
|
-
|
|
284
|
-
:param metadata: The metadata of this LivenessTransaction. # noqa: E501
|
|
285
|
-
:type metadata: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
286
|
-
"""
|
|
287
|
-
|
|
288
|
-
self._metadata = metadata
|
|
289
|
-
|
|
290
|
-
def to_dict(self):
|
|
291
|
-
"""Returns the model properties as a dict"""
|
|
292
|
-
result = {}
|
|
293
|
-
|
|
294
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
295
|
-
value = getattr(self, attr)
|
|
296
|
-
if isinstance(value, list):
|
|
297
|
-
result[attr] = list(map(
|
|
298
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
299
|
-
value
|
|
300
|
-
))
|
|
301
|
-
elif hasattr(value, "to_dict"):
|
|
302
|
-
result[attr] = value.to_dict()
|
|
303
|
-
elif isinstance(value, dict):
|
|
304
|
-
result[attr] = dict(map(
|
|
305
|
-
lambda item: (item[0], item[1].to_dict())
|
|
306
|
-
if hasattr(item[1], "to_dict") else item,
|
|
307
|
-
value.items()
|
|
308
|
-
))
|
|
309
|
-
else:
|
|
310
|
-
result[attr] = value
|
|
311
|
-
|
|
312
|
-
return result
|
|
313
|
-
|
|
314
|
-
def to_str(self):
|
|
315
|
-
"""Returns the string representation of the model"""
|
|
316
|
-
return pprint.pformat(self.to_dict())
|
|
317
|
-
|
|
318
|
-
def __repr__(self):
|
|
319
|
-
"""For `print` and `pprint`"""
|
|
320
|
-
return self.to_str()
|
|
321
|
-
|
|
322
|
-
def __eq__(self, other):
|
|
323
|
-
"""Returns true if both objects are equal"""
|
|
324
|
-
if not isinstance(other, LivenessTransaction):
|
|
325
|
-
return False
|
|
326
|
-
|
|
327
|
-
return self.to_dict() == other.to_dict()
|
|
328
|
-
|
|
329
|
-
def __ne__(self, other):
|
|
330
|
-
"""Returns true if both objects are not equal"""
|
|
331
|
-
if not isinstance(other, LivenessTransaction):
|
|
332
|
-
return True
|
|
333
|
-
|
|
334
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Regula Face SDK Web API
|
|
5
|
-
|
|
6
|
-
<a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 7.2.0
|
|
9
|
-
Generated by: https://openapi-generator.tech
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import pprint
|
|
14
|
-
import re # noqa: F401
|
|
15
|
-
|
|
16
|
-
import six
|
|
17
|
-
|
|
18
|
-
from regula.facesdk.webclient.gen.configuration import Configuration
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class LivenessType(object):
|
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
-
Ref: https://openapi-generator.tech
|
|
24
|
-
|
|
25
|
-
Do not edit the class manually.
|
|
26
|
-
"""
|
|
27
|
-
|
|
28
|
-
""
|
|
29
|
-
ACTIVE = int(0)
|
|
30
|
-
|
|
31
|
-
""
|
|
32
|
-
PASSIVE = int(1)
|
|
33
|
-
|
|
34
|
-
allowable_values = [ACTIVE, PASSIVE] # noqa: E501
|
|
35
|
-
|
|
36
|
-
"""
|
|
37
|
-
Attributes:
|
|
38
|
-
openapi_types (dict): The key is attribute name
|
|
39
|
-
and the value is attribute type.
|
|
40
|
-
attribute_map (dict): The key is attribute name
|
|
41
|
-
and the value is json key in definition.
|
|
42
|
-
"""
|
|
43
|
-
openapi_types = {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
attribute_map = {
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
50
|
-
"""LivenessType - a model defined in OpenAPI""" # noqa: E501
|
|
51
|
-
if local_vars_configuration is None:
|
|
52
|
-
local_vars_configuration = Configuration()
|
|
53
|
-
self.local_vars_configuration = local_vars_configuration
|
|
54
|
-
self.discriminator = None
|
|
55
|
-
|
|
56
|
-
def to_dict(self):
|
|
57
|
-
"""Returns the model properties as a dict"""
|
|
58
|
-
result = {}
|
|
59
|
-
|
|
60
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
61
|
-
value = getattr(self, attr)
|
|
62
|
-
if isinstance(value, list):
|
|
63
|
-
result[attr] = list(map(
|
|
64
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
65
|
-
value
|
|
66
|
-
))
|
|
67
|
-
elif hasattr(value, "to_dict"):
|
|
68
|
-
result[attr] = value.to_dict()
|
|
69
|
-
elif isinstance(value, dict):
|
|
70
|
-
result[attr] = dict(map(
|
|
71
|
-
lambda item: (item[0], item[1].to_dict())
|
|
72
|
-
if hasattr(item[1], "to_dict") else item,
|
|
73
|
-
value.items()
|
|
74
|
-
))
|
|
75
|
-
else:
|
|
76
|
-
result[attr] = value
|
|
77
|
-
|
|
78
|
-
return result
|
|
79
|
-
|
|
80
|
-
def to_str(self):
|
|
81
|
-
"""Returns the string representation of the model"""
|
|
82
|
-
return pprint.pformat(self.to_dict())
|
|
83
|
-
|
|
84
|
-
def __repr__(self):
|
|
85
|
-
"""For `print` and `pprint`"""
|
|
86
|
-
return self.to_str()
|
|
87
|
-
|
|
88
|
-
def __eq__(self, other):
|
|
89
|
-
"""Returns true if both objects are equal"""
|
|
90
|
-
if not isinstance(other, LivenessType):
|
|
91
|
-
return False
|
|
92
|
-
|
|
93
|
-
return self.to_dict() == other.to_dict()
|
|
94
|
-
|
|
95
|
-
def __ne__(self, other):
|
|
96
|
-
"""Returns true if both objects are not equal"""
|
|
97
|
-
if not isinstance(other, LivenessType):
|
|
98
|
-
return True
|
|
99
|
-
|
|
100
|
-
return self.to_dict() != other.to_dict()
|