Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ regula/facesdk/webclient/gen/model/person_with_images.py
regula/facesdk/webclient/gen/model/person_with_images_all_of.py
regula/facesdk/webclient/gen/model/persons_page.py
regula/facesdk/webclient/gen/model/persons_page_all_of.py
regula/facesdk/webclient/gen/model/persons_request.py
regula/facesdk/webclient/gen/model/persons_request_all_of.py
regula/facesdk/webclient/gen/model/process_param.py
regula/facesdk/webclient/gen/model/process_param_attributes.py
regula/facesdk/webclient/gen/model/quality_config.py
Expand All @@ -98,6 +96,7 @@ regula/facesdk/webclient/gen/model/search_parameters_create_person.py
regula/facesdk/webclient/gen/model/search_person.py
regula/facesdk/webclient/gen/model/search_person_all_of.py
regula/facesdk/webclient/gen/model/search_request.py
regula/facesdk/webclient/gen/model/search_request_all_of.py
regula/facesdk/webclient/gen/model/search_result.py
regula/facesdk/webclient/gen/model/transaction_info.py
regula/facesdk/webclient/gen/model/update_group.py
Expand Down
3 changes: 1 addition & 2 deletions regula/facesdk/webclient/ext/api/person_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from regula.facesdk.webclient.gen.model.image_page import ImagePage
from regula.facesdk.webclient.gen.model.person import Person
from regula.facesdk.webclient.gen.model.person_fields import PersonFields
from regula.facesdk.webclient.gen.model.persons_request import PersonsRequest


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

def create_person(self, person_fields: PersonsRequest, **kwargs) -> Person:
def create_person(self, person_fields: PersonFields, **kwargs) -> Person:
if person_fields.metadata is None:
person_fields.metadata = {}
return super().create_person(person_fields, **kwargs)
Expand Down
32 changes: 16 additions & 16 deletions regula/facesdk/webclient/gen/api/person_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,17 @@ def add_image_to_person_with_http_info(self, person_id, add_image_to_person_requ
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))

def create_person(self, persons_request, **kwargs): # noqa: E501
def create_person(self, person_fields, **kwargs): # noqa: E501
"""Create person # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.create_person(persons_request, async_req=True)
>>> thread = api.create_person(person_fields, async_req=True)
>>> result = thread.get()

:param persons_request: (required)
:type persons_request: PersonsRequest
:param person_fields: (required)
:type person_fields: PersonFields
:param x_request_id: Request header label.
:type x_request_id: str
:param async_req: Whether to execute the request asynchronously.
Expand All @@ -216,19 +216,19 @@ def create_person(self, persons_request, **kwargs): # noqa: E501
:rtype: Person
"""
kwargs['_return_http_data_only'] = True
return self.create_person_with_http_info(persons_request, **kwargs) # noqa: E501
return self.create_person_with_http_info(person_fields, **kwargs) # noqa: E501

def create_person_with_http_info(self, persons_request, **kwargs): # noqa: E501
def create_person_with_http_info(self, person_fields, **kwargs): # noqa: E501
"""Create person # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.create_person_with_http_info(persons_request, async_req=True)
>>> thread = api.create_person_with_http_info(person_fields, async_req=True)
>>> result = thread.get()

:param persons_request: (required)
:type persons_request: PersonsRequest
:param person_fields: (required)
:type person_fields: PersonFields
:param x_request_id: Request header label.
:type x_request_id: str
:param async_req: Whether to execute the request asynchronously.
Expand Down Expand Up @@ -257,7 +257,7 @@ def create_person_with_http_info(self, persons_request, **kwargs): # noqa: E501
local_var_params = locals()

all_params = [
'persons_request',
'person_fields',
'x_request_id',
]
all_params.extend(
Expand All @@ -278,10 +278,10 @@ def create_person_with_http_info(self, persons_request, **kwargs): # noqa: E501
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'persons_request' is set
if self.api_client.client_side_validation and ('persons_request' not in local_var_params or # noqa: E501
local_var_params['persons_request'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `persons_request` when calling `create_person`") # noqa: E501
# verify the required parameter 'person_fields' is set
if self.api_client.client_side_validation and ('person_fields' not in local_var_params or # noqa: E501
local_var_params['person_fields'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `person_fields` when calling `create_person`") # noqa: E501

collection_formats = {}

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

body_params = None
if 'persons_request' in local_var_params:
body_params = local_var_params['persons_request']
if 'person_fields' in local_var_params:
body_params = local_var_params['person_fields']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,20 @@ class AddImageToPersonRequest(object):
'image': 'AddImageToPersonRequestImage',
'threshold': 'float',
'limit': 'int',
'tenant': 'str',
'env': 'str',
}

attribute_map = {
'tag': 'tag',
'image': 'image',
'threshold': 'threshold',
'limit': 'limit',
'tenant': 'tenant',
'env': 'env',
}

def __init__(self, tag=None, image=None, threshold=None, limit=None, local_vars_configuration=None): # noqa: E501
def __init__(self, tag=None, image=None, threshold=None, limit=None, tenant=None, env=None, local_vars_configuration=None): # noqa: E501
"""AddImageToPersonRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
Expand All @@ -56,6 +60,8 @@ def __init__(self, tag=None, image=None, threshold=None, limit=None, local_vars_
self._image = None
self._threshold = None
self._limit = None
self._tenant = None
self._env = None
self.discriminator = None

if tag is not None:
Expand All @@ -65,6 +71,10 @@ def __init__(self, tag=None, image=None, threshold=None, limit=None, local_vars_
self.threshold = threshold
if limit is not None:
self.limit = limit
if tenant is not None:
self.tenant = tenant
if env is not None:
self.env = env

@property
def tag(self):
Expand Down Expand Up @@ -158,6 +168,52 @@ def limit(self, limit):

self._limit = limit

@property
def tenant(self):
"""Gets the tenant of this AddImageToPersonRequest. # noqa: E501

A label used to group transactions by customers, applications, or other criteria. # noqa: E501

:return: The tenant of this AddImageToPersonRequest. # noqa: E501
:rtype: str
"""
return self._tenant

@tenant.setter
def tenant(self, tenant):
"""Sets the tenant of this AddImageToPersonRequest.

A label used to group transactions by customers, applications, or other criteria. # noqa: E501

:param tenant: The tenant of this AddImageToPersonRequest. # noqa: E501
:type tenant: str
"""

self._tenant = tenant

@property
def env(self):
"""Gets the env of this AddImageToPersonRequest. # noqa: E501

A label used to differentiate transactions by development stages. # noqa: E501

:return: The env of this AddImageToPersonRequest. # noqa: E501
:rtype: str
"""
return self._env

@env.setter
def env(self, env):
"""Sets the env of this AddImageToPersonRequest.

A label used to differentiate transactions by development stages. # noqa: E501

:param env: The env of this AddImageToPersonRequest. # noqa: E501
:type env: str
"""

self._env = env

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
108 changes: 40 additions & 68 deletions regula/facesdk/webclient/gen/model/search_request_all_of.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8

"""
Regula FaceSDK Web API
Regula Face SDK Web API

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
<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

The version of the OpenAPI document: 4.1.3
The version of the OpenAPI document: 7.2.0
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -33,103 +33,75 @@ class SearchRequestAllOf(object):
and the value is json key in definition.
"""
openapi_types = {
'limit': 'int',
'threshold': 'float',
'group_ids': '[int]',
'tenant': 'str',
'env': 'str',
}

attribute_map = {
'limit': 'limit',
'threshold': 'threshold',
'group_ids': 'group_ids',
'tenant': 'tenant',
'env': 'env',
}

def __init__(self, limit=100, threshold=None, group_ids=None, local_vars_configuration=None): # noqa: E501
def __init__(self, tenant=None, env=None, local_vars_configuration=None): # noqa: E501
"""SearchRequestAllOf - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration

self._limit = None
self._threshold = None
self._group_ids = None
self._tenant = None
self._env = None
self.discriminator = None

if limit is not None:
self.limit = limit
if threshold is not None:
self.threshold = threshold
if group_ids is not None:
self.group_ids = group_ids
if tenant is not None:
self.tenant = tenant
if env is not None:
self.env = env

@property
def limit(self):
"""Gets the limit of this SearchRequestAllOf. # noqa: E501
def tenant(self):
"""Gets the tenant of this SearchRequestAllOf. # noqa: E501

The number of returned Persons limit. # noqa: E501
A label used to group transactions by customers, applications, or other criteria. # noqa: E501

:return: The limit of this SearchRequestAllOf. # noqa: E501
:rtype: int
:return: The tenant of this SearchRequestAllOf. # noqa: E501
:rtype: str
"""
return self._limit
return self._tenant

@limit.setter
def limit(self, limit):
"""Sets the limit of this SearchRequestAllOf.
@tenant.setter
def tenant(self, tenant):
"""Sets the tenant of this SearchRequestAllOf.

The number of returned Persons limit. # noqa: E501
A label used to group transactions by customers, applications, or other criteria. # noqa: E501

:param limit: The limit of this SearchRequestAllOf. # noqa: E501
:type limit: int
:param tenant: The tenant of this SearchRequestAllOf. # noqa: E501
:type tenant: str
"""

self._limit = limit
self._tenant = tenant

@property
def threshold(self):
"""Gets the threshold of this SearchRequestAllOf. # noqa: E501
def env(self):
"""Gets the env of this SearchRequestAllOf. # noqa: E501

Similarity threshold. # noqa: E501
A label used to differentiate transactions by development stages. # noqa: E501

:return: The threshold of this SearchRequestAllOf. # noqa: E501
:rtype: float
:return: The env of this SearchRequestAllOf. # noqa: E501
:rtype: str
"""
return self._threshold
return self._env

@threshold.setter
def threshold(self, threshold):
"""Sets the threshold of this SearchRequestAllOf.
@env.setter
def env(self, env):
"""Sets the env of this SearchRequestAllOf.

Similarity threshold. # noqa: E501
A label used to differentiate transactions by development stages. # noqa: E501

:param threshold: The threshold of this SearchRequestAllOf. # noqa: E501
:type threshold: float
:param env: The env of this SearchRequestAllOf. # noqa: E501
:type env: str
"""

self._threshold = threshold

@property
def group_ids(self):
"""Gets the group_ids of this SearchRequestAllOf. # noqa: E501

The IDs of the groups in which the search is performed. # noqa: E501

:return: The group_ids of this SearchRequestAllOf. # noqa: E501
:rtype: [int]
"""
return self._group_ids

@group_ids.setter
def group_ids(self, group_ids):
"""Sets the group_ids of this SearchRequestAllOf.

The IDs of the groups in which the search is performed. # noqa: E501

:param group_ids: The group_ids of this SearchRequestAllOf. # noqa: E501
:type group_ids: [int]
"""

self._group_ids = group_ids
self._env = env

def to_dict(self):
"""Returns the model properties as a dict"""
Expand Down
3 changes: 1 addition & 2 deletions regula/facesdk/webclient/gen/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@
from regula.facesdk.webclient.gen.model.person_with_images_all_of import PersonWithImagesAllOf
from regula.facesdk.webclient.gen.model.persons_page import PersonsPage
from regula.facesdk.webclient.gen.model.persons_page_all_of import PersonsPageAllOf
from regula.facesdk.webclient.gen.model.persons_request import PersonsRequest
from regula.facesdk.webclient.gen.model.persons_request_all_of import PersonsRequestAllOf
from regula.facesdk.webclient.gen.model.process_param import ProcessParam
from regula.facesdk.webclient.gen.model.process_param_attributes import ProcessParamAttributes
from regula.facesdk.webclient.gen.model.quality_config import QualityConfig
Expand All @@ -94,6 +92,7 @@
from regula.facesdk.webclient.gen.model.search_person import SearchPerson
from regula.facesdk.webclient.gen.model.search_person_all_of import SearchPersonAllOf
from regula.facesdk.webclient.gen.model.search_request import SearchRequest
from regula.facesdk.webclient.gen.model.search_request_all_of import SearchRequestAllOf
from regula.facesdk.webclient.gen.model.search_result import SearchResult
from regula.facesdk.webclient.gen.model.transaction_info import TransactionInfo
from regula.facesdk.webclient.gen.model.update_group import UpdateGroup