Skip to content

Commit 52477a7

Browse files
Merge pull request #142 from regulaforensics/28cdf117
Update clients
2 parents c0db56e + 300745e commit 52477a7

File tree

6 files changed

+116
-91
lines changed

6 files changed

+116
-91
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ regula/facesdk/webclient/gen/model/person_with_images.py
7878
regula/facesdk/webclient/gen/model/person_with_images_all_of.py
7979
regula/facesdk/webclient/gen/model/persons_page.py
8080
regula/facesdk/webclient/gen/model/persons_page_all_of.py
81-
regula/facesdk/webclient/gen/model/persons_request.py
82-
regula/facesdk/webclient/gen/model/persons_request_all_of.py
8381
regula/facesdk/webclient/gen/model/process_param.py
8482
regula/facesdk/webclient/gen/model/process_param_attributes.py
8583
regula/facesdk/webclient/gen/model/quality_config.py
@@ -98,6 +96,7 @@ regula/facesdk/webclient/gen/model/search_parameters_create_person.py
9896
regula/facesdk/webclient/gen/model/search_person.py
9997
regula/facesdk/webclient/gen/model/search_person_all_of.py
10098
regula/facesdk/webclient/gen/model/search_request.py
99+
regula/facesdk/webclient/gen/model/search_request_all_of.py
101100
regula/facesdk/webclient/gen/model/search_result.py
102101
regula/facesdk/webclient/gen/model/transaction_info.py
103102
regula/facesdk/webclient/gen/model/update_group.py

regula/facesdk/webclient/ext/api/person_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from regula.facesdk.webclient.gen.model.image_page import ImagePage
99
from regula.facesdk.webclient.gen.model.person import Person
1010
from regula.facesdk.webclient.gen.model.person_fields import PersonFields
11-
from regula.facesdk.webclient.gen.model.persons_request import PersonsRequest
1211

1312

1413
class PersonApi(GenPersonApi):
@@ -20,7 +19,7 @@ def add_image_to_person(self, person_id: str, content: bytes, content_type: str
2019
image = ImageFields(image=ImageFieldsImage(content_type, base_image))
2120
return super().add_image_to_person(person_id, image, **kwargs)
2221

23-
def create_person(self, person_fields: PersonsRequest, **kwargs) -> Person:
22+
def create_person(self, person_fields: PersonFields, **kwargs) -> Person:
2423
if person_fields.metadata is None:
2524
person_fields.metadata = {}
2625
return super().create_person(person_fields, **kwargs)

regula/facesdk/webclient/gen/api/person_api.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,17 @@ def add_image_to_person_with_http_info(self, person_id, add_image_to_person_requ
187187
collection_formats=collection_formats,
188188
_request_auth=local_var_params.get('_request_auth'))
189189

190-
def create_person(self, persons_request, **kwargs): # noqa: E501
190+
def create_person(self, person_fields, **kwargs): # noqa: E501
191191
"""Create person # noqa: E501
192192
193193
This method makes a synchronous HTTP request by default. To make an
194194
asynchronous HTTP request, please pass async_req=True
195195
196-
>>> thread = api.create_person(persons_request, async_req=True)
196+
>>> thread = api.create_person(person_fields, async_req=True)
197197
>>> result = thread.get()
198198
199-
:param persons_request: (required)
200-
:type persons_request: PersonsRequest
199+
:param person_fields: (required)
200+
:type person_fields: PersonFields
201201
:param x_request_id: Request header label.
202202
:type x_request_id: str
203203
:param async_req: Whether to execute the request asynchronously.
@@ -216,19 +216,19 @@ def create_person(self, persons_request, **kwargs): # noqa: E501
216216
:rtype: Person
217217
"""
218218
kwargs['_return_http_data_only'] = True
219-
return self.create_person_with_http_info(persons_request, **kwargs) # noqa: E501
219+
return self.create_person_with_http_info(person_fields, **kwargs) # noqa: E501
220220

221-
def create_person_with_http_info(self, persons_request, **kwargs): # noqa: E501
221+
def create_person_with_http_info(self, person_fields, **kwargs): # noqa: E501
222222
"""Create person # noqa: E501
223223
224224
This method makes a synchronous HTTP request by default. To make an
225225
asynchronous HTTP request, please pass async_req=True
226226
227-
>>> thread = api.create_person_with_http_info(persons_request, async_req=True)
227+
>>> thread = api.create_person_with_http_info(person_fields, async_req=True)
228228
>>> result = thread.get()
229229
230-
:param persons_request: (required)
231-
:type persons_request: PersonsRequest
230+
:param person_fields: (required)
231+
:type person_fields: PersonFields
232232
:param x_request_id: Request header label.
233233
:type x_request_id: str
234234
:param async_req: Whether to execute the request asynchronously.
@@ -257,7 +257,7 @@ def create_person_with_http_info(self, persons_request, **kwargs): # noqa: E501
257257
local_var_params = locals()
258258

259259
all_params = [
260-
'persons_request',
260+
'person_fields',
261261
'x_request_id',
262262
]
263263
all_params.extend(
@@ -278,10 +278,10 @@ def create_person_with_http_info(self, persons_request, **kwargs): # noqa: E501
278278
)
279279
local_var_params[key] = val
280280
del local_var_params['kwargs']
281-
# verify the required parameter 'persons_request' is set
282-
if self.api_client.client_side_validation and ('persons_request' not in local_var_params or # noqa: E501
283-
local_var_params['persons_request'] is None): # noqa: E501
284-
raise ApiValueError("Missing the required parameter `persons_request` when calling `create_person`") # noqa: E501
281+
# verify the required parameter 'person_fields' is set
282+
if self.api_client.client_side_validation and ('person_fields' not in local_var_params or # noqa: E501
283+
local_var_params['person_fields'] is None): # noqa: E501
284+
raise ApiValueError("Missing the required parameter `person_fields` when calling `create_person`") # noqa: E501
285285

286286
collection_formats = {}
287287

@@ -297,8 +297,8 @@ def create_person_with_http_info(self, persons_request, **kwargs): # noqa: E501
297297
local_var_files = {}
298298

299299
body_params = None
300-
if 'persons_request' in local_var_params:
301-
body_params = local_var_params['persons_request']
300+
if 'person_fields' in local_var_params:
301+
body_params = local_var_params['person_fields']
302302
# HTTP header `Accept`
303303
header_params['Accept'] = self.api_client.select_header_accept(
304304
['application/json']) # noqa: E501

regula/facesdk/webclient/gen/model/add_image_to_person_request.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,20 @@ class AddImageToPersonRequest(object):
3737
'image': 'AddImageToPersonRequestImage',
3838
'threshold': 'float',
3939
'limit': 'int',
40+
'tenant': 'str',
41+
'env': 'str',
4042
}
4143

4244
attribute_map = {
4345
'tag': 'tag',
4446
'image': 'image',
4547
'threshold': 'threshold',
4648
'limit': 'limit',
49+
'tenant': 'tenant',
50+
'env': 'env',
4751
}
4852

49-
def __init__(self, tag=None, image=None, threshold=None, limit=None, local_vars_configuration=None): # noqa: E501
53+
def __init__(self, tag=None, image=None, threshold=None, limit=None, tenant=None, env=None, local_vars_configuration=None): # noqa: E501
5054
"""AddImageToPersonRequest - a model defined in OpenAPI""" # noqa: E501
5155
if local_vars_configuration is None:
5256
local_vars_configuration = Configuration()
@@ -56,6 +60,8 @@ def __init__(self, tag=None, image=None, threshold=None, limit=None, local_vars_
5660
self._image = None
5761
self._threshold = None
5862
self._limit = None
63+
self._tenant = None
64+
self._env = None
5965
self.discriminator = None
6066

6167
if tag is not None:
@@ -65,6 +71,10 @@ def __init__(self, tag=None, image=None, threshold=None, limit=None, local_vars_
6571
self.threshold = threshold
6672
if limit is not None:
6773
self.limit = limit
74+
if tenant is not None:
75+
self.tenant = tenant
76+
if env is not None:
77+
self.env = env
6878

6979
@property
7080
def tag(self):
@@ -158,6 +168,52 @@ def limit(self, limit):
158168

159169
self._limit = limit
160170

171+
@property
172+
def tenant(self):
173+
"""Gets the tenant of this AddImageToPersonRequest. # noqa: E501
174+
175+
A label used to group transactions by customers, applications, or other criteria. # noqa: E501
176+
177+
:return: The tenant of this AddImageToPersonRequest. # noqa: E501
178+
:rtype: str
179+
"""
180+
return self._tenant
181+
182+
@tenant.setter
183+
def tenant(self, tenant):
184+
"""Sets the tenant of this AddImageToPersonRequest.
185+
186+
A label used to group transactions by customers, applications, or other criteria. # noqa: E501
187+
188+
:param tenant: The tenant of this AddImageToPersonRequest. # noqa: E501
189+
:type tenant: str
190+
"""
191+
192+
self._tenant = tenant
193+
194+
@property
195+
def env(self):
196+
"""Gets the env of this AddImageToPersonRequest. # noqa: E501
197+
198+
A label used to differentiate transactions by development stages. # noqa: E501
199+
200+
:return: The env of this AddImageToPersonRequest. # noqa: E501
201+
:rtype: str
202+
"""
203+
return self._env
204+
205+
@env.setter
206+
def env(self, env):
207+
"""Sets the env of this AddImageToPersonRequest.
208+
209+
A label used to differentiate transactions by development stages. # noqa: E501
210+
211+
:param env: The env of this AddImageToPersonRequest. # noqa: E501
212+
:type env: str
213+
"""
214+
215+
self._env = env
216+
161217
def to_dict(self):
162218
"""Returns the model properties as a dict"""
163219
result = {}

regula/facesdk/webclient/gen/model/search_request_all_of.py

Lines changed: 40 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# coding: utf-8
22

33
"""
4-
Regula FaceSDK Web API
4+
Regula Face SDK Web API
55
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
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
77
8-
The version of the OpenAPI document: 4.1.3
8+
The version of the OpenAPI document: 7.2.0
99
Generated by: https://openapi-generator.tech
1010
"""
1111

@@ -33,103 +33,75 @@ class SearchRequestAllOf(object):
3333
and the value is json key in definition.
3434
"""
3535
openapi_types = {
36-
'limit': 'int',
37-
'threshold': 'float',
38-
'group_ids': '[int]',
36+
'tenant': 'str',
37+
'env': 'str',
3938
}
4039

4140
attribute_map = {
42-
'limit': 'limit',
43-
'threshold': 'threshold',
44-
'group_ids': 'group_ids',
41+
'tenant': 'tenant',
42+
'env': 'env',
4543
}
4644

47-
def __init__(self, limit=100, threshold=None, group_ids=None, local_vars_configuration=None): # noqa: E501
45+
def __init__(self, tenant=None, env=None, local_vars_configuration=None): # noqa: E501
4846
"""SearchRequestAllOf - a model defined in OpenAPI""" # noqa: E501
4947
if local_vars_configuration is None:
5048
local_vars_configuration = Configuration()
5149
self.local_vars_configuration = local_vars_configuration
5250

53-
self._limit = None
54-
self._threshold = None
55-
self._group_ids = None
51+
self._tenant = None
52+
self._env = None
5653
self.discriminator = None
5754

58-
if limit is not None:
59-
self.limit = limit
60-
if threshold is not None:
61-
self.threshold = threshold
62-
if group_ids is not None:
63-
self.group_ids = group_ids
55+
if tenant is not None:
56+
self.tenant = tenant
57+
if env is not None:
58+
self.env = env
6459

6560
@property
66-
def limit(self):
67-
"""Gets the limit of this SearchRequestAllOf. # noqa: E501
61+
def tenant(self):
62+
"""Gets the tenant of this SearchRequestAllOf. # noqa: E501
6863
69-
The number of returned Persons limit. # noqa: E501
64+
A label used to group transactions by customers, applications, or other criteria. # noqa: E501
7065
71-
:return: The limit of this SearchRequestAllOf. # noqa: E501
72-
:rtype: int
66+
:return: The tenant of this SearchRequestAllOf. # noqa: E501
67+
:rtype: str
7368
"""
74-
return self._limit
69+
return self._tenant
7570

76-
@limit.setter
77-
def limit(self, limit):
78-
"""Sets the limit of this SearchRequestAllOf.
71+
@tenant.setter
72+
def tenant(self, tenant):
73+
"""Sets the tenant of this SearchRequestAllOf.
7974
80-
The number of returned Persons limit. # noqa: E501
75+
A label used to group transactions by customers, applications, or other criteria. # noqa: E501
8176
82-
:param limit: The limit of this SearchRequestAllOf. # noqa: E501
83-
:type limit: int
77+
:param tenant: The tenant of this SearchRequestAllOf. # noqa: E501
78+
:type tenant: str
8479
"""
8580

86-
self._limit = limit
81+
self._tenant = tenant
8782

8883
@property
89-
def threshold(self):
90-
"""Gets the threshold of this SearchRequestAllOf. # noqa: E501
84+
def env(self):
85+
"""Gets the env of this SearchRequestAllOf. # noqa: E501
9186
92-
Similarity threshold. # noqa: E501
87+
A label used to differentiate transactions by development stages. # noqa: E501
9388
94-
:return: The threshold of this SearchRequestAllOf. # noqa: E501
95-
:rtype: float
89+
:return: The env of this SearchRequestAllOf. # noqa: E501
90+
:rtype: str
9691
"""
97-
return self._threshold
92+
return self._env
9893

99-
@threshold.setter
100-
def threshold(self, threshold):
101-
"""Sets the threshold of this SearchRequestAllOf.
94+
@env.setter
95+
def env(self, env):
96+
"""Sets the env of this SearchRequestAllOf.
10297
103-
Similarity threshold. # noqa: E501
98+
A label used to differentiate transactions by development stages. # noqa: E501
10499
105-
:param threshold: The threshold of this SearchRequestAllOf. # noqa: E501
106-
:type threshold: float
100+
:param env: The env of this SearchRequestAllOf. # noqa: E501
101+
:type env: str
107102
"""
108103

109-
self._threshold = threshold
110-
111-
@property
112-
def group_ids(self):
113-
"""Gets the group_ids of this SearchRequestAllOf. # noqa: E501
114-
115-
The IDs of the groups in which the search is performed. # noqa: E501
116-
117-
:return: The group_ids of this SearchRequestAllOf. # noqa: E501
118-
:rtype: [int]
119-
"""
120-
return self._group_ids
121-
122-
@group_ids.setter
123-
def group_ids(self, group_ids):
124-
"""Sets the group_ids of this SearchRequestAllOf.
125-
126-
The IDs of the groups in which the search is performed. # noqa: E501
127-
128-
:param group_ids: The group_ids of this SearchRequestAllOf. # noqa: E501
129-
:type group_ids: [int]
130-
"""
131-
132-
self._group_ids = group_ids
104+
self._env = env
133105

134106
def to_dict(self):
135107
"""Returns the model properties as a dict"""

regula/facesdk/webclient/gen/models/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@
7474
from regula.facesdk.webclient.gen.model.person_with_images_all_of import PersonWithImagesAllOf
7575
from regula.facesdk.webclient.gen.model.persons_page import PersonsPage
7676
from regula.facesdk.webclient.gen.model.persons_page_all_of import PersonsPageAllOf
77-
from regula.facesdk.webclient.gen.model.persons_request import PersonsRequest
78-
from regula.facesdk.webclient.gen.model.persons_request_all_of import PersonsRequestAllOf
7977
from regula.facesdk.webclient.gen.model.process_param import ProcessParam
8078
from regula.facesdk.webclient.gen.model.process_param_attributes import ProcessParamAttributes
8179
from regula.facesdk.webclient.gen.model.quality_config import QualityConfig
@@ -94,6 +92,7 @@
9492
from regula.facesdk.webclient.gen.model.search_person import SearchPerson
9593
from regula.facesdk.webclient.gen.model.search_person_all_of import SearchPersonAllOf
9694
from regula.facesdk.webclient.gen.model.search_request import SearchRequest
95+
from regula.facesdk.webclient.gen.model.search_request_all_of import SearchRequestAllOf
9796
from regula.facesdk.webclient.gen.model.search_result import SearchResult
9897
from regula.facesdk.webclient.gen.model.transaction_info import TransactionInfo
9998
from regula.facesdk.webclient.gen.model.update_group import UpdateGroup

0 commit comments

Comments
 (0)