regula-facesdk-webclient 6.4.198.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.

Potentially problematic release.


This version of regula-facesdk-webclient might be problematic. Click here for more details.

Files changed (133) hide show
  1. regula/__init__.py +0 -0
  2. regula/facesdk/__init__.py +0 -0
  3. regula/facesdk/webclient/__init__.py +15 -0
  4. regula/facesdk/webclient/ext/__init__.py +5 -0
  5. regula/facesdk/webclient/ext/api/__init__.py +3 -0
  6. regula/facesdk/webclient/ext/api/group_api.py +36 -0
  7. regula/facesdk/webclient/ext/api/match_api.py +46 -0
  8. regula/facesdk/webclient/ext/api/person_api.py +46 -0
  9. regula/facesdk/webclient/ext/api/sdk.py +28 -0
  10. regula/facesdk/webclient/ext/api/search_api.py +17 -0
  11. regula/facesdk/webclient/ext/common.py +7 -0
  12. regula/facesdk/webclient/ext/models/__init__.py +6 -0
  13. regula/facesdk/webclient/ext/models/detect_request.py +32 -0
  14. regula/facesdk/webclient/ext/models/match_image.py +19 -0
  15. regula/facesdk/webclient/ext/models/match_request.py +34 -0
  16. regula/facesdk/webclient/gen/__init__.py +27 -0
  17. regula/facesdk/webclient/gen/api/__init__.py +3 -0
  18. regula/facesdk/webclient/gen/api/diagnostics_api.py +162 -0
  19. regula/facesdk/webclient/gen/api/group_api.py +1040 -0
  20. regula/facesdk/webclient/gen/api/healthcheck_api.py +283 -0
  21. regula/facesdk/webclient/gen/api/liveness_2_0_api.py +168 -0
  22. regula/facesdk/webclient/gen/api/liveness_api.py +424 -0
  23. regula/facesdk/webclient/gen/api/match_api.py +463 -0
  24. regula/facesdk/webclient/gen/api/person_api.py +1345 -0
  25. regula/facesdk/webclient/gen/api/search_api.py +177 -0
  26. regula/facesdk/webclient/gen/api_client.py +695 -0
  27. regula/facesdk/webclient/gen/apis/__init__.py +22 -0
  28. regula/facesdk/webclient/gen/configuration.py +446 -0
  29. regula/facesdk/webclient/gen/exceptions.py +159 -0
  30. regula/facesdk/webclient/gen/model/__init__.py +5 -0
  31. regula/facesdk/webclient/gen/model/add_image_to_person_request.py +205 -0
  32. regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +204 -0
  33. regula/facesdk/webclient/gen/model/add_image_to_person_response.py +262 -0
  34. regula/facesdk/webclient/gen/model/attribute_config.py +120 -0
  35. regula/facesdk/webclient/gen/model/attribute_config_list.py +92 -0
  36. regula/facesdk/webclient/gen/model/crop.py +208 -0
  37. regula/facesdk/webclient/gen/model/detect_request.py +204 -0
  38. regula/facesdk/webclient/gen/model/detect_request_attributes.py +120 -0
  39. regula/facesdk/webclient/gen/model/detect_response.py +147 -0
  40. regula/facesdk/webclient/gen/model/detect_response_all_of.py +120 -0
  41. regula/facesdk/webclient/gen/model/detect_result.py +231 -0
  42. regula/facesdk/webclient/gen/model/detection.py +258 -0
  43. regula/facesdk/webclient/gen/model/detection_attributes.py +148 -0
  44. regula/facesdk/webclient/gen/model/detection_face.py +260 -0
  45. regula/facesdk/webclient/gen/model/detection_quality.py +234 -0
  46. regula/facesdk/webclient/gen/model/device_info.py +231 -0
  47. regula/facesdk/webclient/gen/model/face_align_type_quality.py +109 -0
  48. regula/facesdk/webclient/gen/model/face_attribute.py +133 -0
  49. regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +109 -0
  50. regula/facesdk/webclient/gen/model/face_image_quality_groups.py +118 -0
  51. regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +118 -0
  52. regula/facesdk/webclient/gen/model/face_image_quality_status.py +103 -0
  53. regula/facesdk/webclient/gen/model/face_quality_config_name.py +238 -0
  54. regula/facesdk/webclient/gen/model/face_quality_scenarios.py +121 -0
  55. regula/facesdk/webclient/gen/model/face_quality_status.py +103 -0
  56. regula/facesdk/webclient/gen/model/face_rectangular.py +92 -0
  57. regula/facesdk/webclient/gen/model/face_sdk_result.py +121 -0
  58. regula/facesdk/webclient/gen/model/face_sdk_result_code.py +217 -0
  59. regula/facesdk/webclient/gen/model/faces_response.py +286 -0
  60. regula/facesdk/webclient/gen/model/faces_response_all_of.py +148 -0
  61. regula/facesdk/webclient/gen/model/filter_op.py +100 -0
  62. regula/facesdk/webclient/gen/model/filter_search_request.py +176 -0
  63. regula/facesdk/webclient/gen/model/group.py +206 -0
  64. regula/facesdk/webclient/gen/model/group_all_of.py +150 -0
  65. regula/facesdk/webclient/gen/model/group_page.py +178 -0
  66. regula/facesdk/webclient/gen/model/group_page_all_of.py +122 -0
  67. regula/facesdk/webclient/gen/model/group_response.py +150 -0
  68. regula/facesdk/webclient/gen/model/group_to_create.py +180 -0
  69. regula/facesdk/webclient/gen/model/image.py +290 -0
  70. regula/facesdk/webclient/gen/model/image_fields.py +258 -0
  71. regula/facesdk/webclient/gen/model/image_fields_image.py +204 -0
  72. regula/facesdk/webclient/gen/model/image_page.py +176 -0
  73. regula/facesdk/webclient/gen/model/image_page_all_of.py +120 -0
  74. regula/facesdk/webclient/gen/model/image_source.py +115 -0
  75. regula/facesdk/webclient/gen/model/liveness_transaction.py +334 -0
  76. regula/facesdk/webclient/gen/model/liveness_type.py +100 -0
  77. regula/facesdk/webclient/gen/model/match_and_search_request.py +178 -0
  78. regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +178 -0
  79. regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +148 -0
  80. regula/facesdk/webclient/gen/model/match_and_search_response.py +233 -0
  81. regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +206 -0
  82. regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +176 -0
  83. regula/facesdk/webclient/gen/model/match_image.py +205 -0
  84. regula/facesdk/webclient/gen/model/match_image_detection.py +178 -0
  85. regula/facesdk/webclient/gen/model/match_image_result.py +316 -0
  86. regula/facesdk/webclient/gen/model/match_request.py +204 -0
  87. regula/facesdk/webclient/gen/model/match_request_output_image_params.py +148 -0
  88. regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +212 -0
  89. regula/facesdk/webclient/gen/model/match_response.py +205 -0
  90. regula/facesdk/webclient/gen/model/match_response_all_of.py +178 -0
  91. regula/facesdk/webclient/gen/model/operation_log.py +206 -0
  92. regula/facesdk/webclient/gen/model/output_image_params.py +146 -0
  93. regula/facesdk/webclient/gen/model/page.py +150 -0
  94. regula/facesdk/webclient/gen/model/person.py +318 -0
  95. regula/facesdk/webclient/gen/model/person_all_of.py +206 -0
  96. regula/facesdk/webclient/gen/model/person_created_response.py +178 -0
  97. regula/facesdk/webclient/gen/model/person_fields.py +234 -0
  98. regula/facesdk/webclient/gen/model/person_to_update_fields.py +206 -0
  99. regula/facesdk/webclient/gen/model/person_with_images.py +346 -0
  100. regula/facesdk/webclient/gen/model/person_with_images_all_of.py +122 -0
  101. regula/facesdk/webclient/gen/model/persons_page.py +176 -0
  102. regula/facesdk/webclient/gen/model/persons_page_all_of.py +120 -0
  103. regula/facesdk/webclient/gen/model/process_param.py +226 -0
  104. regula/facesdk/webclient/gen/model/process_param_attributes.py +120 -0
  105. regula/facesdk/webclient/gen/model/quality_config.py +154 -0
  106. regula/facesdk/webclient/gen/model/quality_config_list.py +92 -0
  107. regula/facesdk/webclient/gen/model/quality_detail.py +234 -0
  108. regula/facesdk/webclient/gen/model/quality_details_groups.py +202 -0
  109. regula/facesdk/webclient/gen/model/quality_request.py +146 -0
  110. regula/facesdk/webclient/gen/model/recognize_image.py +346 -0
  111. regula/facesdk/webclient/gen/model/recognize_image_all_of.py +150 -0
  112. regula/facesdk/webclient/gen/model/resize_options.py +178 -0
  113. regula/facesdk/webclient/gen/model/rgb.py +92 -0
  114. regula/facesdk/webclient/gen/model/search_bad_params.py +172 -0
  115. regula/facesdk/webclient/gen/model/search_detection.py +398 -0
  116. regula/facesdk/webclient/gen/model/search_parameters.py +174 -0
  117. regula/facesdk/webclient/gen/model/search_parameters_create_person.py +177 -0
  118. regula/facesdk/webclient/gen/model/search_person.py +372 -0
  119. regula/facesdk/webclient/gen/model/search_person_all_of.py +148 -0
  120. regula/facesdk/webclient/gen/model/search_request.py +338 -0
  121. regula/facesdk/webclient/gen/model/search_request_all_of.py +178 -0
  122. regula/facesdk/webclient/gen/model/search_result.py +313 -0
  123. regula/facesdk/webclient/gen/model/search_result_all_of.py +122 -0
  124. regula/facesdk/webclient/gen/model/transaction_config.py +92 -0
  125. regula/facesdk/webclient/gen/model/transaction_info.py +344 -0
  126. regula/facesdk/webclient/gen/model/update_group.py +150 -0
  127. regula/facesdk/webclient/gen/model_utils.py +2037 -0
  128. regula/facesdk/webclient/gen/models/__init__.py +96 -0
  129. regula/facesdk/webclient/gen/rest.py +346 -0
  130. regula_facesdk_webclient-6.4.198.dev0.dist-info/METADATA +73 -0
  131. regula_facesdk_webclient-6.4.198.dev0.dist-info/RECORD +133 -0
  132. regula_facesdk_webclient-6.4.198.dev0.dist-info/WHEEL +5 -0
  133. regula_facesdk_webclient-6.4.198.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,177 @@
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: 6.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 SearchParametersCreatePerson(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
+ 'name': 'str',
37
+ 'metadata': '{str: (bool, date, datetime, dict, float, int, list, str, none_type)}',
38
+ 'ttl': 'int, none_type',
39
+ }
40
+
41
+ attribute_map = {
42
+ 'name': 'name',
43
+ 'metadata': 'metadata',
44
+ 'ttl': 'ttl',
45
+ }
46
+
47
+ def __init__(self, name=None, metadata=None, ttl=None, local_vars_configuration=None): # noqa: E501
48
+ """SearchParametersCreatePerson - a model defined in OpenAPI""" # noqa: E501
49
+ if local_vars_configuration is None:
50
+ local_vars_configuration = Configuration()
51
+ self.local_vars_configuration = local_vars_configuration
52
+
53
+ self._name = None
54
+ self._metadata = None
55
+ self._ttl = None
56
+ self.discriminator = None
57
+
58
+ if name is not None:
59
+ self.name = name
60
+ if metadata is not None:
61
+ self.metadata = metadata
62
+ self.ttl = ttl
63
+
64
+ @property
65
+ def name(self):
66
+ """Gets the name of this SearchParametersCreatePerson. # noqa: E501
67
+
68
+ Person's name. # noqa: E501
69
+
70
+ :return: The name of this SearchParametersCreatePerson. # noqa: E501
71
+ :rtype: str
72
+ """
73
+ return self._name
74
+
75
+ @name.setter
76
+ def name(self, name):
77
+ """Sets the name of this SearchParametersCreatePerson.
78
+
79
+ Person's name. # noqa: E501
80
+
81
+ :param name: The name of this SearchParametersCreatePerson. # noqa: E501
82
+ :type name: str
83
+ """
84
+
85
+ self._name = name
86
+
87
+ @property
88
+ def metadata(self):
89
+ """Gets the metadata of this SearchParametersCreatePerson. # noqa: E501
90
+
91
+ A free-form object containing person's extended attributes. # noqa: E501
92
+
93
+ :return: The metadata of this SearchParametersCreatePerson. # noqa: E501
94
+ :rtype: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
95
+ """
96
+ return self._metadata
97
+
98
+ @metadata.setter
99
+ def metadata(self, metadata):
100
+ """Sets the metadata of this SearchParametersCreatePerson.
101
+
102
+ A free-form object containing person's extended attributes. # noqa: E501
103
+
104
+ :param metadata: The metadata of this SearchParametersCreatePerson. # noqa: E501
105
+ :type metadata: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
106
+ """
107
+
108
+ self._metadata = metadata
109
+
110
+ @property
111
+ def ttl(self):
112
+ """Gets the ttl of this SearchParametersCreatePerson. # noqa: E501
113
+
114
+ The lifespan of the Person's records, seconds. Optional. # noqa: E501
115
+
116
+ :return: The ttl of this SearchParametersCreatePerson. # noqa: E501
117
+ :rtype: int, none_type
118
+ """
119
+ return self._ttl
120
+
121
+ @ttl.setter
122
+ def ttl(self, ttl):
123
+ """Sets the ttl of this SearchParametersCreatePerson.
124
+
125
+ The lifespan of the Person's records, seconds. Optional. # noqa: E501
126
+
127
+ :param ttl: The ttl of this SearchParametersCreatePerson. # noqa: E501
128
+ :type ttl: int, none_type
129
+ """
130
+
131
+ self._ttl = ttl
132
+
133
+ def to_dict(self):
134
+ """Returns the model properties as a dict"""
135
+ result = {}
136
+
137
+ for attr, _ in six.iteritems(self.openapi_types):
138
+ value = getattr(self, attr)
139
+ if isinstance(value, list):
140
+ result[attr] = list(map(
141
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
142
+ value
143
+ ))
144
+ elif hasattr(value, "to_dict"):
145
+ result[attr] = value.to_dict()
146
+ elif isinstance(value, dict):
147
+ result[attr] = dict(map(
148
+ lambda item: (item[0], item[1].to_dict())
149
+ if hasattr(item[1], "to_dict") else item,
150
+ value.items()
151
+ ))
152
+ else:
153
+ result[attr] = value
154
+
155
+ return result
156
+
157
+ def to_str(self):
158
+ """Returns the string representation of the model"""
159
+ return pprint.pformat(self.to_dict())
160
+
161
+ def __repr__(self):
162
+ """For `print` and `pprint`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, SearchParametersCreatePerson):
168
+ return False
169
+
170
+ return self.to_dict() == other.to_dict()
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ if not isinstance(other, SearchParametersCreatePerson):
175
+ return True
176
+
177
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,372 @@
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: 6.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 SearchPerson(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
+ 'name': 'str',
37
+ 'external_id': 'str',
38
+ 'metadata': '{str: (bool, date, datetime, dict, float, int, list, str, none_type)}',
39
+ 'groups': '[str]',
40
+ 'ttl': 'int, none_type',
41
+ 'id': 'str',
42
+ 'created_at': 'str',
43
+ 'updated_at': 'str',
44
+ 'detection': 'SearchDetection',
45
+ 'images': '[RecognizeImage]',
46
+ }
47
+
48
+ attribute_map = {
49
+ 'name': 'name',
50
+ 'external_id': 'externalId',
51
+ 'metadata': 'metadata',
52
+ 'groups': 'groups',
53
+ 'ttl': 'ttl',
54
+ 'id': 'id',
55
+ 'created_at': 'createdAt',
56
+ 'updated_at': 'updatedAt',
57
+ 'detection': 'detection',
58
+ 'images': 'images',
59
+ }
60
+
61
+ def __init__(self, name=None, external_id=None, metadata=None, groups=None, ttl=None, id=None, created_at=None, updated_at=None, detection=None, images=None, local_vars_configuration=None): # noqa: E501
62
+ """SearchPerson - a model defined in OpenAPI""" # noqa: E501
63
+ if local_vars_configuration is None:
64
+ local_vars_configuration = Configuration()
65
+ self.local_vars_configuration = local_vars_configuration
66
+
67
+ self._name = None
68
+ self._external_id = None
69
+ self._metadata = None
70
+ self._groups = None
71
+ self._ttl = None
72
+ self._id = None
73
+ self._created_at = None
74
+ self._updated_at = None
75
+ self._detection = None
76
+ self._images = None
77
+ self.discriminator = None
78
+
79
+ self.name = name
80
+ if external_id is not None:
81
+ self.external_id = external_id
82
+ if metadata is not None:
83
+ self.metadata = metadata
84
+ if groups is not None:
85
+ self.groups = groups
86
+ self.ttl = ttl
87
+ if id is not None:
88
+ self.id = id
89
+ if created_at is not None:
90
+ self.created_at = created_at
91
+ if updated_at is not None:
92
+ self.updated_at = updated_at
93
+ if detection is not None:
94
+ self.detection = detection
95
+ if images is not None:
96
+ self.images = images
97
+
98
+ @property
99
+ def name(self):
100
+ """Gets the name of this SearchPerson. # noqa: E501
101
+
102
+ Person's name. # noqa: E501
103
+
104
+ :return: The name of this SearchPerson. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._name
108
+
109
+ @name.setter
110
+ def name(self, name):
111
+ """Sets the name of this SearchPerson.
112
+
113
+ Person's name. # noqa: E501
114
+
115
+ :param name: The name of this SearchPerson. # noqa: E501
116
+ :type name: str
117
+ """
118
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
119
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
120
+
121
+ self._name = name
122
+
123
+ @property
124
+ def external_id(self):
125
+ """Gets the external_id of this SearchPerson. # noqa: E501
126
+
127
+ Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional. # noqa: E501
128
+
129
+ :return: The external_id of this SearchPerson. # noqa: E501
130
+ :rtype: str
131
+ """
132
+ return self._external_id
133
+
134
+ @external_id.setter
135
+ def external_id(self, external_id):
136
+ """Sets the external_id of this SearchPerson.
137
+
138
+ Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional. # noqa: E501
139
+
140
+ :param external_id: The external_id of this SearchPerson. # noqa: E501
141
+ :type external_id: str
142
+ """
143
+
144
+ self._external_id = external_id
145
+
146
+ @property
147
+ def metadata(self):
148
+ """Gets the metadata of this SearchPerson. # noqa: E501
149
+
150
+ A free-form object containing person's extended attributes. # noqa: E501
151
+
152
+ :return: The metadata of this SearchPerson. # noqa: E501
153
+ :rtype: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
154
+ """
155
+ return self._metadata
156
+
157
+ @metadata.setter
158
+ def metadata(self, metadata):
159
+ """Sets the metadata of this SearchPerson.
160
+
161
+ A free-form object containing person's extended attributes. # noqa: E501
162
+
163
+ :param metadata: The metadata of this SearchPerson. # noqa: E501
164
+ :type metadata: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
165
+ """
166
+
167
+ self._metadata = metadata
168
+
169
+ @property
170
+ def groups(self):
171
+ """Gets the groups of this SearchPerson. # noqa: E501
172
+
173
+ List of groups this person belongs to. # noqa: E501
174
+
175
+ :return: The groups of this SearchPerson. # noqa: E501
176
+ :rtype: [str]
177
+ """
178
+ return self._groups
179
+
180
+ @groups.setter
181
+ def groups(self, groups):
182
+ """Sets the groups of this SearchPerson.
183
+
184
+ List of groups this person belongs to. # noqa: E501
185
+
186
+ :param groups: The groups of this SearchPerson. # noqa: E501
187
+ :type groups: [str]
188
+ """
189
+
190
+ self._groups = groups
191
+
192
+ @property
193
+ def ttl(self):
194
+ """Gets the ttl of this SearchPerson. # noqa: E501
195
+
196
+ The lifespan of the Person's records, seconds. Optional. # noqa: E501
197
+
198
+ :return: The ttl of this SearchPerson. # noqa: E501
199
+ :rtype: int, none_type
200
+ """
201
+ return self._ttl
202
+
203
+ @ttl.setter
204
+ def ttl(self, ttl):
205
+ """Sets the ttl of this SearchPerson.
206
+
207
+ The lifespan of the Person's records, seconds. Optional. # noqa: E501
208
+
209
+ :param ttl: The ttl of this SearchPerson. # noqa: E501
210
+ :type ttl: int, none_type
211
+ """
212
+
213
+ self._ttl = ttl
214
+
215
+ @property
216
+ def id(self):
217
+ """Gets the id of this SearchPerson. # noqa: E501
218
+
219
+ Person ID. The list of persons is sorted by decreasing ID value. # noqa: E501
220
+
221
+ :return: The id of this SearchPerson. # noqa: E501
222
+ :rtype: str
223
+ """
224
+ return self._id
225
+
226
+ @id.setter
227
+ def id(self, id):
228
+ """Sets the id of this SearchPerson.
229
+
230
+ Person ID. The list of persons is sorted by decreasing ID value. # noqa: E501
231
+
232
+ :param id: The id of this SearchPerson. # noqa: E501
233
+ :type id: str
234
+ """
235
+
236
+ self._id = id
237
+
238
+ @property
239
+ def created_at(self):
240
+ """Gets the created_at of this SearchPerson. # noqa: E501
241
+
242
+ Person creation date. # noqa: E501
243
+
244
+ :return: The created_at of this SearchPerson. # noqa: E501
245
+ :rtype: str
246
+ """
247
+ return self._created_at
248
+
249
+ @created_at.setter
250
+ def created_at(self, created_at):
251
+ """Sets the created_at of this SearchPerson.
252
+
253
+ Person creation date. # noqa: E501
254
+
255
+ :param created_at: The created_at of this SearchPerson. # noqa: E501
256
+ :type created_at: str
257
+ """
258
+
259
+ self._created_at = created_at
260
+
261
+ @property
262
+ def updated_at(self):
263
+ """Gets the updated_at of this SearchPerson. # noqa: E501
264
+
265
+ Person update date. # noqa: E501
266
+
267
+ :return: The updated_at of this SearchPerson. # noqa: E501
268
+ :rtype: str
269
+ """
270
+ return self._updated_at
271
+
272
+ @updated_at.setter
273
+ def updated_at(self, updated_at):
274
+ """Sets the updated_at of this SearchPerson.
275
+
276
+ Person update date. # noqa: E501
277
+
278
+ :param updated_at: The updated_at of this SearchPerson. # noqa: E501
279
+ :type updated_at: str
280
+ """
281
+
282
+ self._updated_at = updated_at
283
+
284
+ @property
285
+ def detection(self):
286
+ """Gets the detection of this SearchPerson. # noqa: E501
287
+
288
+
289
+ :return: The detection of this SearchPerson. # noqa: E501
290
+ :rtype: SearchDetection
291
+ """
292
+ return self._detection
293
+
294
+ @detection.setter
295
+ def detection(self, detection):
296
+ """Sets the detection of this SearchPerson.
297
+
298
+
299
+ :param detection: The detection of this SearchPerson. # noqa: E501
300
+ :type detection: SearchDetection
301
+ """
302
+
303
+ self._detection = detection
304
+
305
+ @property
306
+ def images(self):
307
+ """Gets the images of this SearchPerson. # noqa: E501
308
+
309
+ Array of Person images. # noqa: E501
310
+
311
+ :return: The images of this SearchPerson. # noqa: E501
312
+ :rtype: [RecognizeImage]
313
+ """
314
+ return self._images
315
+
316
+ @images.setter
317
+ def images(self, images):
318
+ """Sets the images of this SearchPerson.
319
+
320
+ Array of Person images. # noqa: E501
321
+
322
+ :param images: The images of this SearchPerson. # noqa: E501
323
+ :type images: [RecognizeImage]
324
+ """
325
+
326
+ self._images = images
327
+
328
+ def to_dict(self):
329
+ """Returns the model properties as a dict"""
330
+ result = {}
331
+
332
+ for attr, _ in six.iteritems(self.openapi_types):
333
+ value = getattr(self, attr)
334
+ if isinstance(value, list):
335
+ result[attr] = list(map(
336
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
337
+ value
338
+ ))
339
+ elif hasattr(value, "to_dict"):
340
+ result[attr] = value.to_dict()
341
+ elif isinstance(value, dict):
342
+ result[attr] = dict(map(
343
+ lambda item: (item[0], item[1].to_dict())
344
+ if hasattr(item[1], "to_dict") else item,
345
+ value.items()
346
+ ))
347
+ else:
348
+ result[attr] = value
349
+
350
+ return result
351
+
352
+ def to_str(self):
353
+ """Returns the string representation of the model"""
354
+ return pprint.pformat(self.to_dict())
355
+
356
+ def __repr__(self):
357
+ """For `print` and `pprint`"""
358
+ return self.to_str()
359
+
360
+ def __eq__(self, other):
361
+ """Returns true if both objects are equal"""
362
+ if not isinstance(other, SearchPerson):
363
+ return False
364
+
365
+ return self.to_dict() == other.to_dict()
366
+
367
+ def __ne__(self, other):
368
+ """Returns true if both objects are not equal"""
369
+ if not isinstance(other, SearchPerson):
370
+ return True
371
+
372
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,148 @@
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: 6.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 SearchPersonAllOf(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
+ 'detection': 'SearchDetection',
37
+ 'images': '[RecognizeImage]',
38
+ }
39
+
40
+ attribute_map = {
41
+ 'detection': 'detection',
42
+ 'images': 'images',
43
+ }
44
+
45
+ def __init__(self, detection=None, images=None, local_vars_configuration=None): # noqa: E501
46
+ """SearchPersonAllOf - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._detection = None
52
+ self._images = None
53
+ self.discriminator = None
54
+
55
+ if detection is not None:
56
+ self.detection = detection
57
+ if images is not None:
58
+ self.images = images
59
+
60
+ @property
61
+ def detection(self):
62
+ """Gets the detection of this SearchPersonAllOf. # noqa: E501
63
+
64
+
65
+ :return: The detection of this SearchPersonAllOf. # noqa: E501
66
+ :rtype: SearchDetection
67
+ """
68
+ return self._detection
69
+
70
+ @detection.setter
71
+ def detection(self, detection):
72
+ """Sets the detection of this SearchPersonAllOf.
73
+
74
+
75
+ :param detection: The detection of this SearchPersonAllOf. # noqa: E501
76
+ :type detection: SearchDetection
77
+ """
78
+
79
+ self._detection = detection
80
+
81
+ @property
82
+ def images(self):
83
+ """Gets the images of this SearchPersonAllOf. # noqa: E501
84
+
85
+ Array of Person images. # noqa: E501
86
+
87
+ :return: The images of this SearchPersonAllOf. # noqa: E501
88
+ :rtype: [RecognizeImage]
89
+ """
90
+ return self._images
91
+
92
+ @images.setter
93
+ def images(self, images):
94
+ """Sets the images of this SearchPersonAllOf.
95
+
96
+ Array of Person images. # noqa: E501
97
+
98
+ :param images: The images of this SearchPersonAllOf. # noqa: E501
99
+ :type images: [RecognizeImage]
100
+ """
101
+
102
+ self._images = images
103
+
104
+ def to_dict(self):
105
+ """Returns the model properties as a dict"""
106
+ result = {}
107
+
108
+ for attr, _ in six.iteritems(self.openapi_types):
109
+ value = getattr(self, attr)
110
+ if isinstance(value, list):
111
+ result[attr] = list(map(
112
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
113
+ value
114
+ ))
115
+ elif hasattr(value, "to_dict"):
116
+ result[attr] = value.to_dict()
117
+ elif isinstance(value, dict):
118
+ result[attr] = dict(map(
119
+ lambda item: (item[0], item[1].to_dict())
120
+ if hasattr(item[1], "to_dict") else item,
121
+ value.items()
122
+ ))
123
+ else:
124
+ result[attr] = value
125
+
126
+ return result
127
+
128
+ def to_str(self):
129
+ """Returns the string representation of the model"""
130
+ return pprint.pformat(self.to_dict())
131
+
132
+ def __repr__(self):
133
+ """For `print` and `pprint`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, SearchPersonAllOf):
139
+ return False
140
+
141
+ return self.to_dict() == other.to_dict()
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ if not isinstance(other, SearchPersonAllOf):
146
+ return True
147
+
148
+ return self.to_dict() != other.to_dict()