@regulaforensics/facesdk-webclient 5.1.0 → 5.2.0
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.
- package/.github/workflows/run-smoke-test.yml +0 -3
- package/.github/workflows/trivy-scan.yaml +24 -0
- package/dist/cjs-es5/api/diagnostics-api.js +199 -0
- package/dist/cjs-es5/api/group-api.js +60 -60
- package/dist/cjs-es5/api/liveness20-api.js +14 -245
- package/dist/cjs-es5/api/matching-api.js +21 -21
- package/dist/cjs-es5/api/person-api.js +96 -189
- package/dist/cjs-es5/api/search-api.js +10 -10
- package/dist/cjs-es5/api.js +3 -2
- package/dist/cjs-es5/base.js +1 -1
- package/dist/cjs-es5/common.js +1 -1
- package/dist/cjs-es5/configuration.js +1 -1
- package/dist/cjs-es5/ext/person-api.js +1 -4
- package/dist/cjs-es5/models/crop.js +1 -1
- package/dist/cjs-es5/models/detect-request-attributes.js +16 -0
- package/dist/cjs-es5/models/detect-request.js +1 -1
- package/dist/cjs-es5/models/detect-response-all-of.js +1 -1
- package/dist/cjs-es5/models/detect-response.js +1 -1
- package/dist/cjs-es5/models/detect-result.js +1 -1
- package/dist/cjs-es5/models/detection-face.js +1 -1
- package/dist/cjs-es5/models/detection-quality.js +1 -1
- package/dist/cjs-es5/models/detection.js +1 -1
- package/dist/cjs-es5/models/face-attribute.js +37 -0
- package/dist/cjs-es5/models/face-image-quality-align-type.js +1 -1
- package/dist/cjs-es5/models/face-image-quality-groups.js +1 -1
- package/dist/cjs-es5/models/face-image-quality-status.js +1 -1
- package/dist/cjs-es5/models/face-quality-config-name.js +5 -4
- package/dist/cjs-es5/models/face-quality-scenarios.js +2 -2
- package/dist/cjs-es5/models/face-sdkresult-code.js +27 -26
- package/dist/cjs-es5/models/face-sdkresult.js +1 -1
- package/dist/cjs-es5/models/faces-response-all-of.js +1 -1
- package/dist/cjs-es5/models/faces-response.js +1 -1
- package/dist/cjs-es5/models/group-all-of.js +1 -1
- package/dist/cjs-es5/models/group-page-all-of.js +1 -1
- package/dist/cjs-es5/models/group-page.js +1 -1
- package/dist/cjs-es5/models/group-to-create.js +1 -1
- package/dist/cjs-es5/models/group.js +1 -1
- package/dist/cjs-es5/models/image-fields-image.js +1 -1
- package/dist/cjs-es5/models/image-fields.js +1 -1
- package/dist/cjs-es5/models/image-page-all-of.js +1 -1
- package/dist/cjs-es5/models/image-page.js +1 -1
- package/dist/cjs-es5/models/image-source.js +2 -2
- package/dist/cjs-es5/models/image.js +1 -1
- package/dist/cjs-es5/models/index.js +9 -2
- package/dist/cjs-es5/models/match-and-search-request-all-of-images.js +1 -1
- package/dist/cjs-es5/models/match-and-search-request-all-of.js +1 -1
- package/dist/cjs-es5/models/match-and-search-request.js +1 -1
- package/dist/cjs-es5/models/match-and-search-response-all-of-detections.js +1 -1
- package/dist/cjs-es5/models/match-and-search-response-all-of.js +1 -1
- package/dist/cjs-es5/models/match-and-search-response.js +1 -1
- package/dist/cjs-es5/models/match-image-detection.js +1 -1
- package/dist/cjs-es5/models/match-image-result.js +1 -1
- package/dist/cjs-es5/models/match-image.js +1 -1
- package/dist/cjs-es5/models/match-request.js +1 -1
- package/dist/cjs-es5/models/match-response-all-of.js +1 -1
- package/dist/cjs-es5/models/match-response.js +1 -1
- package/dist/cjs-es5/models/operation-log.js +1 -1
- package/dist/cjs-es5/models/output-image-params.js +1 -1
- package/dist/cjs-es5/models/page.js +1 -1
- package/dist/cjs-es5/models/person-all-of.js +1 -1
- package/dist/cjs-es5/models/person-created-response.js +16 -0
- package/dist/cjs-es5/models/person-fields.js +1 -1
- package/dist/cjs-es5/models/person-with-images-all-of.js +1 -1
- package/dist/cjs-es5/models/person-with-images.js +1 -1
- package/dist/cjs-es5/models/person.js +1 -1
- package/dist/cjs-es5/models/persons-page-all-of.js +1 -1
- package/dist/cjs-es5/models/persons-page.js +1 -1
- package/dist/cjs-es5/models/process-param.js +1 -1
- package/dist/cjs-es5/models/quality-config.js +1 -1
- package/dist/cjs-es5/models/quality-detail.js +1 -1
- package/dist/cjs-es5/models/quality-details-groups.js +1 -1
- package/dist/cjs-es5/models/quality-request.js +1 -1
- package/dist/cjs-es5/models/recognize-image-all-of.js +1 -1
- package/dist/cjs-es5/models/recognize-image.js +1 -1
- package/dist/cjs-es5/models/resize-options.js +16 -0
- package/dist/cjs-es5/models/search-bad-params.js +16 -0
- package/dist/cjs-es5/models/search-detection.js +16 -0
- package/dist/cjs-es5/models/search-parameters-create-person.js +16 -0
- package/dist/cjs-es5/models/search-parameters.js +1 -1
- package/dist/cjs-es5/models/search-person-all-of.js +1 -1
- package/dist/cjs-es5/models/search-person.js +1 -1
- package/dist/cjs-es5/models/search-request.js +1 -1
- package/dist/cjs-es5/models/search-result.js +1 -1
- package/dist/cjs-es5/models/transaction-info.js +16 -0
- package/dist/cjs-es5/models/update-group.js +1 -1
- package/dist/esm-es5/api/diagnostics-api.js +196 -0
- package/dist/esm-es5/api/group-api.js +60 -60
- package/dist/esm-es5/api/liveness20-api.js +14 -245
- package/dist/esm-es5/api/matching-api.js +21 -21
- package/dist/esm-es5/api/person-api.js +96 -189
- package/dist/esm-es5/api/search-api.js +10 -10
- package/dist/esm-es5/api.js +3 -2
- package/dist/esm-es5/base.js +1 -1
- package/dist/esm-es5/common.js +1 -1
- package/dist/esm-es5/configuration.js +1 -1
- package/dist/esm-es5/ext/person-api.js +1 -4
- package/dist/esm-es5/models/crop.js +1 -1
- package/dist/esm-es5/models/detect-request-attributes.js +14 -0
- package/dist/esm-es5/models/detect-request.js +1 -1
- package/dist/esm-es5/models/detect-response-all-of.js +1 -1
- package/dist/esm-es5/models/detect-response.js +1 -1
- package/dist/esm-es5/models/detect-result.js +1 -1
- package/dist/esm-es5/models/detection-face.js +1 -1
- package/dist/esm-es5/models/detection-quality.js +1 -1
- package/dist/esm-es5/models/detection.js +1 -1
- package/dist/esm-es5/models/face-attribute.js +34 -0
- package/dist/esm-es5/models/face-image-quality-align-type.js +1 -1
- package/dist/esm-es5/models/face-image-quality-groups.js +1 -1
- package/dist/esm-es5/models/face-image-quality-status.js +1 -1
- package/dist/esm-es5/models/face-quality-config-name.js +5 -4
- package/dist/esm-es5/models/face-quality-scenarios.js +2 -2
- package/dist/esm-es5/models/face-sdkresult-code.js +27 -26
- package/dist/esm-es5/models/face-sdkresult.js +1 -1
- package/dist/esm-es5/models/faces-response-all-of.js +1 -1
- package/dist/esm-es5/models/faces-response.js +1 -1
- package/dist/esm-es5/models/group-all-of.js +1 -1
- package/dist/esm-es5/models/group-page-all-of.js +1 -1
- package/dist/esm-es5/models/group-page.js +1 -1
- package/dist/esm-es5/models/group-to-create.js +1 -1
- package/dist/esm-es5/models/group.js +1 -1
- package/dist/esm-es5/models/image-fields-image.js +1 -1
- package/dist/esm-es5/models/image-fields.js +1 -1
- package/dist/esm-es5/models/image-page-all-of.js +1 -1
- package/dist/esm-es5/models/image-page.js +1 -1
- package/dist/esm-es5/models/image-source.js +2 -2
- package/dist/esm-es5/models/image.js +1 -1
- package/dist/esm-es5/models/index.js +9 -2
- package/dist/esm-es5/models/match-and-search-request-all-of-images.js +1 -1
- package/dist/esm-es5/models/match-and-search-request-all-of.js +1 -1
- package/dist/esm-es5/models/match-and-search-request.js +1 -1
- package/dist/esm-es5/models/match-and-search-response-all-of-detections.js +1 -1
- package/dist/esm-es5/models/match-and-search-response-all-of.js +1 -1
- package/dist/esm-es5/models/match-and-search-response.js +1 -1
- package/dist/esm-es5/models/match-image-detection.js +1 -1
- package/dist/esm-es5/models/match-image-result.js +1 -1
- package/dist/esm-es5/models/match-image.js +1 -1
- package/dist/esm-es5/models/match-request.js +1 -1
- package/dist/esm-es5/models/match-response-all-of.js +1 -1
- package/dist/esm-es5/models/match-response.js +1 -1
- package/dist/esm-es5/models/operation-log.js +1 -1
- package/dist/esm-es5/models/output-image-params.js +1 -1
- package/dist/esm-es5/models/page.js +1 -1
- package/dist/esm-es5/models/person-all-of.js +1 -1
- package/dist/esm-es5/models/person-created-response.js +14 -0
- package/dist/esm-es5/models/person-fields.js +1 -1
- package/dist/esm-es5/models/person-with-images-all-of.js +1 -1
- package/dist/esm-es5/models/person-with-images.js +1 -1
- package/dist/esm-es5/models/person.js +1 -1
- package/dist/esm-es5/models/persons-page-all-of.js +1 -1
- package/dist/esm-es5/models/persons-page.js +1 -1
- package/dist/esm-es5/models/process-param.js +1 -1
- package/dist/esm-es5/models/quality-config.js +1 -1
- package/dist/esm-es5/models/quality-detail.js +1 -1
- package/dist/esm-es5/models/quality-details-groups.js +1 -1
- package/dist/esm-es5/models/quality-request.js +1 -1
- package/dist/esm-es5/models/recognize-image-all-of.js +1 -1
- package/dist/esm-es5/models/recognize-image.js +1 -1
- package/dist/esm-es5/models/resize-options.js +14 -0
- package/dist/esm-es5/models/search-bad-params.js +14 -0
- package/dist/esm-es5/models/search-detection.js +14 -0
- package/dist/esm-es5/models/search-parameters-create-person.js +14 -0
- package/dist/esm-es5/models/search-parameters.js +1 -1
- package/dist/esm-es5/models/search-person-all-of.js +1 -1
- package/dist/esm-es5/models/search-person.js +1 -1
- package/dist/esm-es5/models/search-request.js +1 -1
- package/dist/esm-es5/models/search-result.js +1 -1
- package/dist/esm-es5/models/transaction-info.js +14 -0
- package/dist/esm-es5/models/update-group.js +1 -1
- package/package.json +1 -1
- package/src/api/diagnostics-api.ts +126 -0
- package/src/api/group-api.ts +79 -79
- package/src/api/liveness20-api.ts +14 -224
- package/src/api/matching-api.ts +21 -21
- package/src/api/person-api.ts +127 -217
- package/src/api/search-api.ts +12 -10
- package/src/api.ts +2 -1
- package/src/base.ts +1 -1
- package/src/common.ts +1 -1
- package/src/configuration.ts +1 -1
- package/src/ext/group-api.ts +5 -5
- package/src/ext/person-api.ts +8 -11
- package/src/models/crop.ts +3 -3
- package/src/models/detect-request-attributes.ts +31 -0
- package/src/models/detect-request.ts +5 -10
- package/src/models/detect-response-all-of.ts +1 -1
- package/src/models/detect-response.ts +1 -1
- package/src/models/detect-result.ts +1 -1
- package/src/models/detection-face.ts +9 -3
- package/src/models/detection-quality.ts +1 -1
- package/src/models/detection.ts +2 -2
- package/src/models/face-attribute.ts +42 -0
- package/src/models/face-image-quality-align-type.ts +1 -1
- package/src/models/face-image-quality-groups.ts +1 -1
- package/src/models/face-image-quality-status.ts +1 -1
- package/src/models/face-quality-config-name.ts +4 -3
- package/src/models/face-quality-scenarios.ts +2 -2
- package/src/models/face-sdkresult-code.ts +26 -25
- package/src/models/face-sdkresult.ts +1 -1
- package/src/models/faces-response-all-of.ts +1 -1
- package/src/models/faces-response.ts +1 -1
- package/src/models/group-all-of.ts +5 -5
- package/src/models/group-page-all-of.ts +2 -2
- package/src/models/group-page.ts +1 -1
- package/src/models/group-to-create.ts +7 -1
- package/src/models/group.ts +1 -1
- package/src/models/image-fields-image.ts +17 -4
- package/src/models/image-fields.ts +33 -2
- package/src/models/image-page-all-of.ts +1 -1
- package/src/models/image-page.ts +1 -1
- package/src/models/image-source.ts +2 -2
- package/src/models/image.ts +10 -10
- package/src/models/index.ts +8 -1
- package/src/models/match-and-search-request-all-of-images.ts +1 -1
- package/src/models/match-and-search-request-all-of.ts +8 -2
- package/src/models/match-and-search-request.ts +2 -1
- package/src/models/match-and-search-response-all-of-detections.ts +2 -2
- package/src/models/match-and-search-response-all-of.ts +1 -1
- package/src/models/match-and-search-response.ts +1 -1
- package/src/models/match-image-detection.ts +3 -3
- package/src/models/match-image-result.ts +20 -20
- package/src/models/match-image.ts +8 -2
- package/src/models/match-request.ts +3 -3
- package/src/models/match-response-all-of.ts +7 -7
- package/src/models/match-response.ts +1 -1
- package/src/models/operation-log.ts +2 -2
- package/src/models/output-image-params.ts +2 -2
- package/src/models/page.ts +2 -2
- package/src/models/person-all-of.ts +12 -6
- package/src/models/person-created-response.ts +43 -0
- package/src/models/person-fields.ts +13 -1
- package/src/models/person-with-images-all-of.ts +1 -1
- package/src/models/person-with-images.ts +1 -1
- package/src/models/person.ts +1 -1
- package/src/models/persons-page-all-of.ts +1 -1
- package/src/models/persons-page.ts +1 -1
- package/src/models/process-param.ts +7 -1
- package/src/models/quality-config.ts +5 -5
- package/src/models/quality-detail.ts +1 -1
- package/src/models/quality-details-groups.ts +3 -4
- package/src/models/quality-request.ts +2 -2
- package/src/models/recognize-image-all-of.ts +3 -3
- package/src/models/recognize-image.ts +1 -1
- package/src/models/resize-options.ts +42 -0
- package/src/models/search-bad-params.ts +42 -0
- package/src/models/search-detection.ts +90 -0
- package/src/models/search-parameters-create-person.ts +36 -0
- package/src/models/search-parameters.ts +7 -12
- package/src/models/search-person-all-of.ts +9 -2
- package/src/models/search-person.ts +2 -1
- package/src/models/search-request.ts +3 -1
- package/src/models/search-result.ts +3 -3
- package/src/models/transaction-info.ts +78 -0
- package/src/models/update-group.ts +5 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Regula FaceSDK Web API
|
|
5
5
|
* 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
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 5.2.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,7 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { TransactionInfo } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
* Liveness20Api - axios parameter creator
|
|
27
27
|
* @export
|
|
@@ -30,14 +30,14 @@ export const Liveness20ApiAxiosParamCreator = function (configuration?: Configur
|
|
|
30
30
|
return {
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @summary
|
|
33
|
+
* @summary Liveness assessment
|
|
34
34
|
* @param {number} transactionId ID of the current liveness transaction.
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
getLivenessTransactionInfo: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
39
|
// verify required parameter 'transactionId' is not null or undefined
|
|
40
|
-
assertParamExists('
|
|
40
|
+
assertParamExists('getLivenessTransactionInfo', 'transactionId', transactionId)
|
|
41
41
|
const localVarPath = `/api/v2/liveness`;
|
|
42
42
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
43
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -56,117 +56,6 @@ export const Liveness20ApiAxiosParamCreator = function (configuration?: Configur
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62
|
-
|
|
63
|
-
return {
|
|
64
|
-
url: toPathString(localVarUrlObj),
|
|
65
|
-
options: localVarRequestOptions,
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @summary metadata
|
|
71
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
72
|
-
* @param {*} [options] Override http request option.
|
|
73
|
-
* @throws {RequiredError}
|
|
74
|
-
*/
|
|
75
|
-
livenessMetadata: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
76
|
-
// verify required parameter 'transactionId' is not null or undefined
|
|
77
|
-
assertParamExists('livenessMetadata', 'transactionId', transactionId)
|
|
78
|
-
const localVarPath = `/api/v2/liveness/metadata`;
|
|
79
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
81
|
-
let baseOptions;
|
|
82
|
-
if (configuration) {
|
|
83
|
-
baseOptions = configuration.baseOptions;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
87
|
-
const localVarHeaderParameter = {} as any;
|
|
88
|
-
const localVarQueryParameter = {} as any;
|
|
89
|
-
|
|
90
|
-
if (transactionId !== undefined) {
|
|
91
|
-
localVarQueryParameter['transactionId'] = transactionId;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
99
|
-
|
|
100
|
-
return {
|
|
101
|
-
url: toPathString(localVarUrlObj),
|
|
102
|
-
options: localVarRequestOptions,
|
|
103
|
-
};
|
|
104
|
-
},
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @summary portrait
|
|
108
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
109
|
-
* @param {*} [options] Override http request option.
|
|
110
|
-
* @throws {RequiredError}
|
|
111
|
-
*/
|
|
112
|
-
livenessPortrait: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
113
|
-
// verify required parameter 'transactionId' is not null or undefined
|
|
114
|
-
assertParamExists('livenessPortrait', 'transactionId', transactionId)
|
|
115
|
-
const localVarPath = `/api/v2/liveness/portrait`;
|
|
116
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
118
|
-
let baseOptions;
|
|
119
|
-
if (configuration) {
|
|
120
|
-
baseOptions = configuration.baseOptions;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
124
|
-
const localVarHeaderParameter = {} as any;
|
|
125
|
-
const localVarQueryParameter = {} as any;
|
|
126
|
-
|
|
127
|
-
if (transactionId !== undefined) {
|
|
128
|
-
localVarQueryParameter['transactionId'] = transactionId;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
-
|
|
137
|
-
return {
|
|
138
|
-
url: toPathString(localVarUrlObj),
|
|
139
|
-
options: localVarRequestOptions,
|
|
140
|
-
};
|
|
141
|
-
},
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @summary video
|
|
145
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
146
|
-
* @param {*} [options] Override http request option.
|
|
147
|
-
* @throws {RequiredError}
|
|
148
|
-
*/
|
|
149
|
-
livenessVideo: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
150
|
-
// verify required parameter 'transactionId' is not null or undefined
|
|
151
|
-
assertParamExists('livenessVideo', 'transactionId', transactionId)
|
|
152
|
-
const localVarPath = `/api/v2/liveness/video`;
|
|
153
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
-
let baseOptions;
|
|
156
|
-
if (configuration) {
|
|
157
|
-
baseOptions = configuration.baseOptions;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
161
|
-
const localVarHeaderParameter = {} as any;
|
|
162
|
-
const localVarQueryParameter = {} as any;
|
|
163
|
-
|
|
164
|
-
if (transactionId !== undefined) {
|
|
165
|
-
localVarQueryParameter['transactionId'] = transactionId;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
59
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
60
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
61
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -188,46 +77,13 @@ export const Liveness20ApiFp = function(configuration?: Configuration) {
|
|
|
188
77
|
return {
|
|
189
78
|
/**
|
|
190
79
|
*
|
|
191
|
-
* @summary
|
|
80
|
+
* @summary Liveness assessment
|
|
192
81
|
* @param {number} transactionId ID of the current liveness transaction.
|
|
193
82
|
* @param {*} [options] Override http request option.
|
|
194
83
|
* @throws {RequiredError}
|
|
195
84
|
*/
|
|
196
|
-
async
|
|
197
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
198
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
199
|
-
},
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* @summary metadata
|
|
203
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
204
|
-
* @param {*} [options] Override http request option.
|
|
205
|
-
* @throws {RequiredError}
|
|
206
|
-
*/
|
|
207
|
-
async livenessMetadata(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> {
|
|
208
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessMetadata(transactionId, options);
|
|
209
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
210
|
-
},
|
|
211
|
-
/**
|
|
212
|
-
*
|
|
213
|
-
* @summary portrait
|
|
214
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
215
|
-
* @param {*} [options] Override http request option.
|
|
216
|
-
* @throws {RequiredError}
|
|
217
|
-
*/
|
|
218
|
-
async livenessPortrait(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
219
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessPortrait(transactionId, options);
|
|
220
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
221
|
-
},
|
|
222
|
-
/**
|
|
223
|
-
*
|
|
224
|
-
* @summary video
|
|
225
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
226
|
-
* @param {*} [options] Override http request option.
|
|
227
|
-
* @throws {RequiredError}
|
|
228
|
-
*/
|
|
229
|
-
async livenessVideo(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
230
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessVideo(transactionId, options);
|
|
85
|
+
async getLivenessTransactionInfo(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionInfo>> {
|
|
86
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLivenessTransactionInfo(transactionId, options);
|
|
231
87
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
232
88
|
},
|
|
233
89
|
}
|
|
@@ -242,43 +98,13 @@ export const Liveness20ApiFactory = function (configuration?: Configuration, bas
|
|
|
242
98
|
return {
|
|
243
99
|
/**
|
|
244
100
|
*
|
|
245
|
-
* @summary
|
|
101
|
+
* @summary Liveness assessment
|
|
246
102
|
* @param {number} transactionId ID of the current liveness transaction.
|
|
247
103
|
* @param {*} [options] Override http request option.
|
|
248
104
|
* @throws {RequiredError}
|
|
249
105
|
*/
|
|
250
|
-
|
|
251
|
-
return localVarFp.
|
|
252
|
-
},
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
* @summary metadata
|
|
256
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
257
|
-
* @param {*} [options] Override http request option.
|
|
258
|
-
* @throws {RequiredError}
|
|
259
|
-
*/
|
|
260
|
-
livenessMetadata(transactionId: number, options?: any): AxiosPromise<{ [key: string]: object; }> {
|
|
261
|
-
return localVarFp.livenessMetadata(transactionId, options).then((request) => request(axios, basePath));
|
|
262
|
-
},
|
|
263
|
-
/**
|
|
264
|
-
*
|
|
265
|
-
* @summary portrait
|
|
266
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
267
|
-
* @param {*} [options] Override http request option.
|
|
268
|
-
* @throws {RequiredError}
|
|
269
|
-
*/
|
|
270
|
-
livenessPortrait(transactionId: number, options?: any): AxiosPromise<any> {
|
|
271
|
-
return localVarFp.livenessPortrait(transactionId, options).then((request) => request(axios, basePath));
|
|
272
|
-
},
|
|
273
|
-
/**
|
|
274
|
-
*
|
|
275
|
-
* @summary video
|
|
276
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
277
|
-
* @param {*} [options] Override http request option.
|
|
278
|
-
* @throws {RequiredError}
|
|
279
|
-
*/
|
|
280
|
-
livenessVideo(transactionId: number, options?: any): AxiosPromise<any> {
|
|
281
|
-
return localVarFp.livenessVideo(transactionId, options).then((request) => request(axios, basePath));
|
|
106
|
+
getLivenessTransactionInfo(transactionId: number, options?: any): AxiosPromise<TransactionInfo> {
|
|
107
|
+
return localVarFp.getLivenessTransactionInfo(transactionId, options).then((request) => request(axios, basePath));
|
|
282
108
|
},
|
|
283
109
|
};
|
|
284
110
|
};
|
|
@@ -292,49 +118,13 @@ export const Liveness20ApiFactory = function (configuration?: Configuration, bas
|
|
|
292
118
|
export class Liveness20Api extends BaseAPI {
|
|
293
119
|
/**
|
|
294
120
|
*
|
|
295
|
-
* @summary
|
|
296
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
297
|
-
* @param {*} [options] Override http request option.
|
|
298
|
-
* @throws {RequiredError}
|
|
299
|
-
* @memberof Liveness20Api
|
|
300
|
-
*/
|
|
301
|
-
public getLivenessTransaction(transactionId: number, options?: AxiosRequestConfig) {
|
|
302
|
-
return Liveness20ApiFp(this.configuration).getLivenessTransaction(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
*
|
|
307
|
-
* @summary metadata
|
|
308
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
309
|
-
* @param {*} [options] Override http request option.
|
|
310
|
-
* @throws {RequiredError}
|
|
311
|
-
* @memberof Liveness20Api
|
|
312
|
-
*/
|
|
313
|
-
public livenessMetadata(transactionId: number, options?: AxiosRequestConfig) {
|
|
314
|
-
return Liveness20ApiFp(this.configuration).livenessMetadata(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
*
|
|
319
|
-
* @summary portrait
|
|
320
|
-
* @param {number} transactionId ID of the current liveness transaction.
|
|
321
|
-
* @param {*} [options] Override http request option.
|
|
322
|
-
* @throws {RequiredError}
|
|
323
|
-
* @memberof Liveness20Api
|
|
324
|
-
*/
|
|
325
|
-
public livenessPortrait(transactionId: number, options?: AxiosRequestConfig) {
|
|
326
|
-
return Liveness20ApiFp(this.configuration).livenessPortrait(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
*
|
|
331
|
-
* @summary video
|
|
121
|
+
* @summary Liveness assessment
|
|
332
122
|
* @param {number} transactionId ID of the current liveness transaction.
|
|
333
123
|
* @param {*} [options] Override http request option.
|
|
334
124
|
* @throws {RequiredError}
|
|
335
125
|
* @memberof Liveness20Api
|
|
336
126
|
*/
|
|
337
|
-
public
|
|
338
|
-
return Liveness20ApiFp(this.configuration).
|
|
127
|
+
public getLivenessTransactionInfo(transactionId: number, options?: AxiosRequestConfig) {
|
|
128
|
+
return Liveness20ApiFp(this.configuration).getLivenessTransactionInfo(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
339
129
|
}
|
|
340
130
|
}
|
package/src/api/matching-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Regula FaceSDK Web API
|
|
5
5
|
* 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
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 5.2.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,9 +40,9 @@ export const MatchingApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @summary Detect
|
|
43
|
+
* @summary Detect face, evaluate attributes, assess the portrait quality
|
|
44
44
|
* @param {DetectRequest} detectRequest
|
|
45
|
-
* @param {string} [xRequestID]
|
|
45
|
+
* @param {string} [xRequestID] Request header label.
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
@@ -81,9 +81,9 @@ export const MatchingApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
81
81
|
},
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
|
-
* @summary Compare
|
|
84
|
+
* @summary Compare faces in all combinations
|
|
85
85
|
* @param {MatchRequest} matchRequest
|
|
86
|
-
* @param {string} [xRequestID]
|
|
86
|
+
* @param {string} [xRequestID] Request header label.
|
|
87
87
|
* @param {*} [options] Override http request option.
|
|
88
88
|
* @throws {RequiredError}
|
|
89
89
|
*/
|
|
@@ -124,7 +124,7 @@ export const MatchingApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
124
124
|
*
|
|
125
125
|
* @summary Match and Search in one request
|
|
126
126
|
* @param {MatchAndSearchRequest} matchAndSearchRequest
|
|
127
|
-
* @param {string} [xRequestID]
|
|
127
|
+
* @param {string} [xRequestID] Request header label.
|
|
128
128
|
* @param {*} [options] Override http request option.
|
|
129
129
|
* @throws {RequiredError}
|
|
130
130
|
*/
|
|
@@ -173,9 +173,9 @@ export const MatchingApiFp = function(configuration?: Configuration) {
|
|
|
173
173
|
return {
|
|
174
174
|
/**
|
|
175
175
|
*
|
|
176
|
-
* @summary Detect
|
|
176
|
+
* @summary Detect face, evaluate attributes, assess the portrait quality
|
|
177
177
|
* @param {DetectRequest} detectRequest
|
|
178
|
-
* @param {string} [xRequestID]
|
|
178
|
+
* @param {string} [xRequestID] Request header label.
|
|
179
179
|
* @param {*} [options] Override http request option.
|
|
180
180
|
* @throws {RequiredError}
|
|
181
181
|
*/
|
|
@@ -185,9 +185,9 @@ export const MatchingApiFp = function(configuration?: Configuration) {
|
|
|
185
185
|
},
|
|
186
186
|
/**
|
|
187
187
|
*
|
|
188
|
-
* @summary Compare
|
|
188
|
+
* @summary Compare faces in all combinations
|
|
189
189
|
* @param {MatchRequest} matchRequest
|
|
190
|
-
* @param {string} [xRequestID]
|
|
190
|
+
* @param {string} [xRequestID] Request header label.
|
|
191
191
|
* @param {*} [options] Override http request option.
|
|
192
192
|
* @throws {RequiredError}
|
|
193
193
|
*/
|
|
@@ -199,7 +199,7 @@ export const MatchingApiFp = function(configuration?: Configuration) {
|
|
|
199
199
|
*
|
|
200
200
|
* @summary Match and Search in one request
|
|
201
201
|
* @param {MatchAndSearchRequest} matchAndSearchRequest
|
|
202
|
-
* @param {string} [xRequestID]
|
|
202
|
+
* @param {string} [xRequestID] Request header label.
|
|
203
203
|
* @param {*} [options] Override http request option.
|
|
204
204
|
* @throws {RequiredError}
|
|
205
205
|
*/
|
|
@@ -219,9 +219,9 @@ export const MatchingApiFactory = function (configuration?: Configuration, baseP
|
|
|
219
219
|
return {
|
|
220
220
|
/**
|
|
221
221
|
*
|
|
222
|
-
* @summary Detect
|
|
222
|
+
* @summary Detect face, evaluate attributes, assess the portrait quality
|
|
223
223
|
* @param {DetectRequest} detectRequest
|
|
224
|
-
* @param {string} [xRequestID]
|
|
224
|
+
* @param {string} [xRequestID] Request header label.
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
@@ -230,9 +230,9 @@ export const MatchingApiFactory = function (configuration?: Configuration, baseP
|
|
|
230
230
|
},
|
|
231
231
|
/**
|
|
232
232
|
*
|
|
233
|
-
* @summary Compare
|
|
233
|
+
* @summary Compare faces in all combinations
|
|
234
234
|
* @param {MatchRequest} matchRequest
|
|
235
|
-
* @param {string} [xRequestID]
|
|
235
|
+
* @param {string} [xRequestID] Request header label.
|
|
236
236
|
* @param {*} [options] Override http request option.
|
|
237
237
|
* @throws {RequiredError}
|
|
238
238
|
*/
|
|
@@ -243,7 +243,7 @@ export const MatchingApiFactory = function (configuration?: Configuration, baseP
|
|
|
243
243
|
*
|
|
244
244
|
* @summary Match and Search in one request
|
|
245
245
|
* @param {MatchAndSearchRequest} matchAndSearchRequest
|
|
246
|
-
* @param {string} [xRequestID]
|
|
246
|
+
* @param {string} [xRequestID] Request header label.
|
|
247
247
|
* @param {*} [options] Override http request option.
|
|
248
248
|
* @throws {RequiredError}
|
|
249
249
|
*/
|
|
@@ -262,9 +262,9 @@ export const MatchingApiFactory = function (configuration?: Configuration, baseP
|
|
|
262
262
|
export class MatchingApi extends BaseAPI {
|
|
263
263
|
/**
|
|
264
264
|
*
|
|
265
|
-
* @summary Detect
|
|
265
|
+
* @summary Detect face, evaluate attributes, assess the portrait quality
|
|
266
266
|
* @param {DetectRequest} detectRequest
|
|
267
|
-
* @param {string} [xRequestID]
|
|
267
|
+
* @param {string} [xRequestID] Request header label.
|
|
268
268
|
* @param {*} [options] Override http request option.
|
|
269
269
|
* @throws {RequiredError}
|
|
270
270
|
* @memberof MatchingApi
|
|
@@ -275,9 +275,9 @@ export class MatchingApi extends BaseAPI {
|
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
277
|
*
|
|
278
|
-
* @summary Compare
|
|
278
|
+
* @summary Compare faces in all combinations
|
|
279
279
|
* @param {MatchRequest} matchRequest
|
|
280
|
-
* @param {string} [xRequestID]
|
|
280
|
+
* @param {string} [xRequestID] Request header label.
|
|
281
281
|
* @param {*} [options] Override http request option.
|
|
282
282
|
* @throws {RequiredError}
|
|
283
283
|
* @memberof MatchingApi
|
|
@@ -290,7 +290,7 @@ export class MatchingApi extends BaseAPI {
|
|
|
290
290
|
*
|
|
291
291
|
* @summary Match and Search in one request
|
|
292
292
|
* @param {MatchAndSearchRequest} matchAndSearchRequest
|
|
293
|
-
* @param {string} [xRequestID]
|
|
293
|
+
* @param {string} [xRequestID] Request header label.
|
|
294
294
|
* @param {*} [options] Override http request option.
|
|
295
295
|
* @throws {RequiredError}
|
|
296
296
|
* @memberof MatchingApi
|