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,122 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Regula FaceSDK Web API
|
|
5
|
-
|
|
6
|
-
Regula FaceSDK Web API # noqa: E501
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 3.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 SearchResultAllOf(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
|
-
}
|
|
38
|
-
|
|
39
|
-
attribute_map = {
|
|
40
|
-
'code': 'code',
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
def __init__(self, code=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
-
"""SearchResultAllOf - a model defined in OpenAPI""" # noqa: E501
|
|
45
|
-
if local_vars_configuration is None:
|
|
46
|
-
local_vars_configuration = Configuration()
|
|
47
|
-
self.local_vars_configuration = local_vars_configuration
|
|
48
|
-
|
|
49
|
-
self._code = None
|
|
50
|
-
self.discriminator = None
|
|
51
|
-
|
|
52
|
-
if code is not None:
|
|
53
|
-
self.code = code
|
|
54
|
-
|
|
55
|
-
@property
|
|
56
|
-
def code(self):
|
|
57
|
-
"""Gets the code of this SearchResultAllOf. # noqa: E501
|
|
58
|
-
|
|
59
|
-
The search result code. # noqa: E501
|
|
60
|
-
|
|
61
|
-
:return: The code of this SearchResultAllOf. # noqa: E501
|
|
62
|
-
:rtype: int
|
|
63
|
-
"""
|
|
64
|
-
return self._code
|
|
65
|
-
|
|
66
|
-
@code.setter
|
|
67
|
-
def code(self, code):
|
|
68
|
-
"""Sets the code of this SearchResultAllOf.
|
|
69
|
-
|
|
70
|
-
The search result code. # noqa: E501
|
|
71
|
-
|
|
72
|
-
:param code: The code of this SearchResultAllOf. # noqa: E501
|
|
73
|
-
:type code: int
|
|
74
|
-
"""
|
|
75
|
-
|
|
76
|
-
self._code = code
|
|
77
|
-
|
|
78
|
-
def to_dict(self):
|
|
79
|
-
"""Returns the model properties as a dict"""
|
|
80
|
-
result = {}
|
|
81
|
-
|
|
82
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
83
|
-
value = getattr(self, attr)
|
|
84
|
-
if isinstance(value, list):
|
|
85
|
-
result[attr] = list(map(
|
|
86
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
87
|
-
value
|
|
88
|
-
))
|
|
89
|
-
elif hasattr(value, "to_dict"):
|
|
90
|
-
result[attr] = value.to_dict()
|
|
91
|
-
elif isinstance(value, dict):
|
|
92
|
-
result[attr] = dict(map(
|
|
93
|
-
lambda item: (item[0], item[1].to_dict())
|
|
94
|
-
if hasattr(item[1], "to_dict") else item,
|
|
95
|
-
value.items()
|
|
96
|
-
))
|
|
97
|
-
else:
|
|
98
|
-
result[attr] = value
|
|
99
|
-
|
|
100
|
-
return result
|
|
101
|
-
|
|
102
|
-
def to_str(self):
|
|
103
|
-
"""Returns the string representation of the model"""
|
|
104
|
-
return pprint.pformat(self.to_dict())
|
|
105
|
-
|
|
106
|
-
def __repr__(self):
|
|
107
|
-
"""For `print` and `pprint`"""
|
|
108
|
-
return self.to_str()
|
|
109
|
-
|
|
110
|
-
def __eq__(self, other):
|
|
111
|
-
"""Returns true if both objects are equal"""
|
|
112
|
-
if not isinstance(other, SearchResultAllOf):
|
|
113
|
-
return False
|
|
114
|
-
|
|
115
|
-
return self.to_dict() == other.to_dict()
|
|
116
|
-
|
|
117
|
-
def __ne__(self, other):
|
|
118
|
-
"""Returns true if both objects are not equal"""
|
|
119
|
-
if not isinstance(other, SearchResultAllOf):
|
|
120
|
-
return True
|
|
121
|
-
|
|
122
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,92 +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 TransactionConfig(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
|
-
}
|
|
37
|
-
|
|
38
|
-
attribute_map = {
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
42
|
-
"""TransactionConfig - a model defined in OpenAPI""" # noqa: E501
|
|
43
|
-
if local_vars_configuration is None:
|
|
44
|
-
local_vars_configuration = Configuration()
|
|
45
|
-
self.local_vars_configuration = local_vars_configuration
|
|
46
|
-
self.discriminator = None
|
|
47
|
-
|
|
48
|
-
def to_dict(self):
|
|
49
|
-
"""Returns the model properties as a dict"""
|
|
50
|
-
result = {}
|
|
51
|
-
|
|
52
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
53
|
-
value = getattr(self, attr)
|
|
54
|
-
if isinstance(value, list):
|
|
55
|
-
result[attr] = list(map(
|
|
56
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
57
|
-
value
|
|
58
|
-
))
|
|
59
|
-
elif hasattr(value, "to_dict"):
|
|
60
|
-
result[attr] = value.to_dict()
|
|
61
|
-
elif isinstance(value, dict):
|
|
62
|
-
result[attr] = dict(map(
|
|
63
|
-
lambda item: (item[0], item[1].to_dict())
|
|
64
|
-
if hasattr(item[1], "to_dict") else item,
|
|
65
|
-
value.items()
|
|
66
|
-
))
|
|
67
|
-
else:
|
|
68
|
-
result[attr] = value
|
|
69
|
-
|
|
70
|
-
return result
|
|
71
|
-
|
|
72
|
-
def to_str(self):
|
|
73
|
-
"""Returns the string representation of the model"""
|
|
74
|
-
return pprint.pformat(self.to_dict())
|
|
75
|
-
|
|
76
|
-
def __repr__(self):
|
|
77
|
-
"""For `print` and `pprint`"""
|
|
78
|
-
return self.to_str()
|
|
79
|
-
|
|
80
|
-
def __eq__(self, other):
|
|
81
|
-
"""Returns true if both objects are equal"""
|
|
82
|
-
if not isinstance(other, TransactionConfig):
|
|
83
|
-
return False
|
|
84
|
-
|
|
85
|
-
return self.to_dict() == other.to_dict()
|
|
86
|
-
|
|
87
|
-
def __ne__(self, other):
|
|
88
|
-
"""Returns true if both objects are not equal"""
|
|
89
|
-
if not isinstance(other, TransactionConfig):
|
|
90
|
-
return True
|
|
91
|
-
|
|
92
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,344 +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 TransactionInfo(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
|
-
'status': 'int',
|
|
38
|
-
'tag': 'str',
|
|
39
|
-
'transaction_id': 'str',
|
|
40
|
-
'video': 'str',
|
|
41
|
-
'age': '[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]',
|
|
42
|
-
'portrait': 'str',
|
|
43
|
-
'metadata': '{str: (bool, date, datetime, dict, float, int, list, str, none_type)}',
|
|
44
|
-
'type': 'LivenessType',
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
attribute_map = {
|
|
48
|
-
'code': 'code',
|
|
49
|
-
'status': 'status',
|
|
50
|
-
'tag': 'tag',
|
|
51
|
-
'transaction_id': 'transactionId',
|
|
52
|
-
'video': 'video',
|
|
53
|
-
'age': 'age',
|
|
54
|
-
'portrait': 'portrait',
|
|
55
|
-
'metadata': 'metadata',
|
|
56
|
-
'type': 'type',
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
def __init__(self, code=None, status=None, tag=None, transaction_id=None, video=None, age=None, portrait=None, metadata=None, type=None, local_vars_configuration=None): # noqa: E501
|
|
60
|
-
"""TransactionInfo - 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._status = None
|
|
67
|
-
self._tag = None
|
|
68
|
-
self._transaction_id = None
|
|
69
|
-
self._video = None
|
|
70
|
-
self._age = None
|
|
71
|
-
self._portrait = None
|
|
72
|
-
self._metadata = None
|
|
73
|
-
self._type = None
|
|
74
|
-
self.discriminator = None
|
|
75
|
-
|
|
76
|
-
if code is not None:
|
|
77
|
-
self.code = code
|
|
78
|
-
if status is not None:
|
|
79
|
-
self.status = status
|
|
80
|
-
if tag is not None:
|
|
81
|
-
self.tag = tag
|
|
82
|
-
if transaction_id is not None:
|
|
83
|
-
self.transaction_id = transaction_id
|
|
84
|
-
if video is not None:
|
|
85
|
-
self.video = video
|
|
86
|
-
if age is not None:
|
|
87
|
-
self.age = age
|
|
88
|
-
if portrait is not None:
|
|
89
|
-
self.portrait = portrait
|
|
90
|
-
if metadata is not None:
|
|
91
|
-
self.metadata = metadata
|
|
92
|
-
if type is not None:
|
|
93
|
-
self.type = type
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
def code(self):
|
|
97
|
-
"""Gets the code of this TransactionInfo. # noqa: E501
|
|
98
|
-
|
|
99
|
-
Result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/). # noqa: E501
|
|
100
|
-
|
|
101
|
-
:return: The code of this TransactionInfo. # noqa: E501
|
|
102
|
-
:rtype: int
|
|
103
|
-
"""
|
|
104
|
-
return self._code
|
|
105
|
-
|
|
106
|
-
@code.setter
|
|
107
|
-
def code(self, code):
|
|
108
|
-
"""Sets the code of this TransactionInfo.
|
|
109
|
-
|
|
110
|
-
Result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/). # noqa: E501
|
|
111
|
-
|
|
112
|
-
:param code: The code of this TransactionInfo. # noqa: E501
|
|
113
|
-
:type code: int
|
|
114
|
-
"""
|
|
115
|
-
|
|
116
|
-
self._code = code
|
|
117
|
-
|
|
118
|
-
@property
|
|
119
|
-
def status(self):
|
|
120
|
-
"""Gets the status of this TransactionInfo. # noqa: E501
|
|
121
|
-
|
|
122
|
-
Whether the liveness detection is confirmed `0` or not `1`. # noqa: E501
|
|
123
|
-
|
|
124
|
-
:return: The status of this TransactionInfo. # noqa: E501
|
|
125
|
-
:rtype: int
|
|
126
|
-
"""
|
|
127
|
-
return self._status
|
|
128
|
-
|
|
129
|
-
@status.setter
|
|
130
|
-
def status(self, status):
|
|
131
|
-
"""Sets the status of this TransactionInfo.
|
|
132
|
-
|
|
133
|
-
Whether the liveness detection is confirmed `0` or not `1`. # noqa: E501
|
|
134
|
-
|
|
135
|
-
:param status: The status of this TransactionInfo. # noqa: E501
|
|
136
|
-
:type status: int
|
|
137
|
-
"""
|
|
138
|
-
|
|
139
|
-
self._status = status
|
|
140
|
-
|
|
141
|
-
@property
|
|
142
|
-
def tag(self):
|
|
143
|
-
"""Gets the tag of this TransactionInfo. # noqa: E501
|
|
144
|
-
|
|
145
|
-
Session identificator, should be unique for each session. # noqa: E501
|
|
146
|
-
|
|
147
|
-
:return: The tag of this TransactionInfo. # noqa: E501
|
|
148
|
-
:rtype: str
|
|
149
|
-
"""
|
|
150
|
-
return self._tag
|
|
151
|
-
|
|
152
|
-
@tag.setter
|
|
153
|
-
def tag(self, tag):
|
|
154
|
-
"""Sets the tag of this TransactionInfo.
|
|
155
|
-
|
|
156
|
-
Session identificator, should be unique for each session. # noqa: E501
|
|
157
|
-
|
|
158
|
-
:param tag: The tag of this TransactionInfo. # noqa: E501
|
|
159
|
-
:type tag: str
|
|
160
|
-
"""
|
|
161
|
-
|
|
162
|
-
self._tag = tag
|
|
163
|
-
|
|
164
|
-
@property
|
|
165
|
-
def transaction_id(self):
|
|
166
|
-
"""Gets the transaction_id of this TransactionInfo. # noqa: E501
|
|
167
|
-
|
|
168
|
-
Transaction ID, there can be several transactions within one session. # noqa: E501
|
|
169
|
-
|
|
170
|
-
:return: The transaction_id of this TransactionInfo. # noqa: E501
|
|
171
|
-
:rtype: str
|
|
172
|
-
"""
|
|
173
|
-
return self._transaction_id
|
|
174
|
-
|
|
175
|
-
@transaction_id.setter
|
|
176
|
-
def transaction_id(self, transaction_id):
|
|
177
|
-
"""Sets the transaction_id of this TransactionInfo.
|
|
178
|
-
|
|
179
|
-
Transaction ID, there can be several transactions within one session. # noqa: E501
|
|
180
|
-
|
|
181
|
-
:param transaction_id: The transaction_id of this TransactionInfo. # noqa: E501
|
|
182
|
-
:type transaction_id: str
|
|
183
|
-
"""
|
|
184
|
-
|
|
185
|
-
self._transaction_id = transaction_id
|
|
186
|
-
|
|
187
|
-
@property
|
|
188
|
-
def video(self):
|
|
189
|
-
"""Gets the video of this TransactionInfo. # noqa: E501
|
|
190
|
-
|
|
191
|
-
Link to the session video, depends on the selected storage type. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/storage/) # noqa: E501
|
|
192
|
-
|
|
193
|
-
:return: The video of this TransactionInfo. # noqa: E501
|
|
194
|
-
:rtype: str
|
|
195
|
-
"""
|
|
196
|
-
return self._video
|
|
197
|
-
|
|
198
|
-
@video.setter
|
|
199
|
-
def video(self, video):
|
|
200
|
-
"""Sets the video of this TransactionInfo.
|
|
201
|
-
|
|
202
|
-
Link to the session video, depends on the selected storage type. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/storage/) # noqa: E501
|
|
203
|
-
|
|
204
|
-
:param video: The video of this TransactionInfo. # noqa: E501
|
|
205
|
-
:type video: str
|
|
206
|
-
"""
|
|
207
|
-
|
|
208
|
-
self._video = video
|
|
209
|
-
|
|
210
|
-
@property
|
|
211
|
-
def age(self):
|
|
212
|
-
"""Gets the age of this TransactionInfo. # noqa: E501
|
|
213
|
-
|
|
214
|
-
Approximate age with an accuracy of +/-3 years. # noqa: E501
|
|
215
|
-
|
|
216
|
-
:return: The age of this TransactionInfo. # noqa: E501
|
|
217
|
-
:rtype: [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]
|
|
218
|
-
"""
|
|
219
|
-
return self._age
|
|
220
|
-
|
|
221
|
-
@age.setter
|
|
222
|
-
def age(self, age):
|
|
223
|
-
"""Sets the age of this TransactionInfo.
|
|
224
|
-
|
|
225
|
-
Approximate age with an accuracy of +/-3 years. # noqa: E501
|
|
226
|
-
|
|
227
|
-
:param age: The age of this TransactionInfo. # noqa: E501
|
|
228
|
-
:type age: [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]
|
|
229
|
-
"""
|
|
230
|
-
|
|
231
|
-
self._age = age
|
|
232
|
-
|
|
233
|
-
@property
|
|
234
|
-
def portrait(self):
|
|
235
|
-
"""Gets the portrait of this TransactionInfo. # noqa: E501
|
|
236
|
-
|
|
237
|
-
Link to the portrait, depends on the selected storage type. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/storage/) # noqa: E501
|
|
238
|
-
|
|
239
|
-
:return: The portrait of this TransactionInfo. # noqa: E501
|
|
240
|
-
:rtype: str
|
|
241
|
-
"""
|
|
242
|
-
return self._portrait
|
|
243
|
-
|
|
244
|
-
@portrait.setter
|
|
245
|
-
def portrait(self, portrait):
|
|
246
|
-
"""Sets the portrait of this TransactionInfo.
|
|
247
|
-
|
|
248
|
-
Link to the portrait, depends on the selected storage type. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/storage/) # noqa: E501
|
|
249
|
-
|
|
250
|
-
:param portrait: The portrait of this TransactionInfo. # noqa: E501
|
|
251
|
-
:type portrait: str
|
|
252
|
-
"""
|
|
253
|
-
|
|
254
|
-
self._portrait = portrait
|
|
255
|
-
|
|
256
|
-
@property
|
|
257
|
-
def metadata(self):
|
|
258
|
-
"""Gets the metadata of this TransactionInfo. # noqa: E501
|
|
259
|
-
|
|
260
|
-
A free-form object containing person's extended attributes. # noqa: E501
|
|
261
|
-
|
|
262
|
-
:return: The metadata of this TransactionInfo. # noqa: E501
|
|
263
|
-
:rtype: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
264
|
-
"""
|
|
265
|
-
return self._metadata
|
|
266
|
-
|
|
267
|
-
@metadata.setter
|
|
268
|
-
def metadata(self, metadata):
|
|
269
|
-
"""Sets the metadata of this TransactionInfo.
|
|
270
|
-
|
|
271
|
-
A free-form object containing person's extended attributes. # noqa: E501
|
|
272
|
-
|
|
273
|
-
:param metadata: The metadata of this TransactionInfo. # noqa: E501
|
|
274
|
-
:type metadata: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
275
|
-
"""
|
|
276
|
-
|
|
277
|
-
self._metadata = metadata
|
|
278
|
-
|
|
279
|
-
@property
|
|
280
|
-
def type(self):
|
|
281
|
-
"""Gets the type of this TransactionInfo. # noqa: E501
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
:return: The type of this TransactionInfo. # noqa: E501
|
|
285
|
-
:rtype: LivenessType
|
|
286
|
-
"""
|
|
287
|
-
return self._type
|
|
288
|
-
|
|
289
|
-
@type.setter
|
|
290
|
-
def type(self, type):
|
|
291
|
-
"""Sets the type of this TransactionInfo.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
:param type: The type of this TransactionInfo. # noqa: E501
|
|
295
|
-
:type type: LivenessType
|
|
296
|
-
"""
|
|
297
|
-
|
|
298
|
-
self._type = type
|
|
299
|
-
|
|
300
|
-
def to_dict(self):
|
|
301
|
-
"""Returns the model properties as a dict"""
|
|
302
|
-
result = {}
|
|
303
|
-
|
|
304
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
305
|
-
value = getattr(self, attr)
|
|
306
|
-
if isinstance(value, list):
|
|
307
|
-
result[attr] = list(map(
|
|
308
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
309
|
-
value
|
|
310
|
-
))
|
|
311
|
-
elif hasattr(value, "to_dict"):
|
|
312
|
-
result[attr] = value.to_dict()
|
|
313
|
-
elif isinstance(value, dict):
|
|
314
|
-
result[attr] = dict(map(
|
|
315
|
-
lambda item: (item[0], item[1].to_dict())
|
|
316
|
-
if hasattr(item[1], "to_dict") else item,
|
|
317
|
-
value.items()
|
|
318
|
-
))
|
|
319
|
-
else:
|
|
320
|
-
result[attr] = value
|
|
321
|
-
|
|
322
|
-
return result
|
|
323
|
-
|
|
324
|
-
def to_str(self):
|
|
325
|
-
"""Returns the string representation of the model"""
|
|
326
|
-
return pprint.pformat(self.to_dict())
|
|
327
|
-
|
|
328
|
-
def __repr__(self):
|
|
329
|
-
"""For `print` and `pprint`"""
|
|
330
|
-
return self.to_str()
|
|
331
|
-
|
|
332
|
-
def __eq__(self, other):
|
|
333
|
-
"""Returns true if both objects are equal"""
|
|
334
|
-
if not isinstance(other, TransactionInfo):
|
|
335
|
-
return False
|
|
336
|
-
|
|
337
|
-
return self.to_dict() == other.to_dict()
|
|
338
|
-
|
|
339
|
-
def __ne__(self, other):
|
|
340
|
-
"""Returns true if both objects are not equal"""
|
|
341
|
-
if not isinstance(other, TransactionInfo):
|
|
342
|
-
return True
|
|
343
|
-
|
|
344
|
-
return self.to_dict() != other.to_dict()
|