@regulaforensics/facesdk-webclient 5.2.2 → 5.2.3

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.
@@ -90,7 +90,7 @@ exports.Liveness20ApiAxiosParamCreator = function (configuration) {
90
90
  /**
91
91
  *
92
92
  * @summary Liveness assessment
93
- * @param {number} transactionId ID of the current liveness transaction.
93
+ * @param {string} transactionId ID of the current liveness transaction.
94
94
  * @param {*} [options] Override http request option.
95
95
  * @throws {RequiredError}
96
96
  */
@@ -134,7 +134,7 @@ exports.Liveness20ApiFp = function (configuration) {
134
134
  /**
135
135
  *
136
136
  * @summary Liveness assessment
137
- * @param {number} transactionId ID of the current liveness transaction.
137
+ * @param {string} transactionId ID of the current liveness transaction.
138
138
  * @param {*} [options] Override http request option.
139
139
  * @throws {RequiredError}
140
140
  */
@@ -163,7 +163,7 @@ exports.Liveness20ApiFactory = function (configuration, basePath, axios) {
163
163
  /**
164
164
  *
165
165
  * @summary Liveness assessment
166
- * @param {number} transactionId ID of the current liveness transaction.
166
+ * @param {string} transactionId ID of the current liveness transaction.
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
@@ -186,7 +186,7 @@ var Liveness20Api = /** @class */ (function (_super) {
186
186
  /**
187
187
  *
188
188
  * @summary Liveness assessment
189
- * @param {number} transactionId ID of the current liveness transaction.
189
+ * @param {string} transactionId ID of the current liveness transaction.
190
190
  * @param {*} [options] Override http request option.
191
191
  * @throws {RequiredError}
192
192
  * @memberof Liveness20Api
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Regula FaceSDK Web API
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
7
+ *
8
+ * The version of the OpenAPI document: 5.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MatchRequestOutputImageParamsCropTypeEnum = void 0;
17
+ exports.MatchRequestOutputImageParamsCropTypeEnum = {
18
+ NUMBER_0: 0,
19
+ NUMBER_1: 1,
20
+ NUMBER_2: 2,
21
+ NUMBER_3: 3,
22
+ NUMBER_4: 4
23
+ };
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0Y2gtcmVxdWVzdC1vdXRwdXQtaW1hZ2UtcGFyYW1zLWNyb3AuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWxzL21hdGNoLXJlcXVlc3Qtb3V0cHV0LWltYWdlLXBhcmFtcy1jcm9wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7OztBQW9DVSxRQUFBLHlDQUF5QyxHQUFHO0lBQ3JELFFBQVEsRUFBRSxDQUFDO0lBQ1gsUUFBUSxFQUFFLENBQUM7SUFDWCxRQUFRLEVBQUUsQ0FBQztJQUNYLFFBQVEsRUFBRSxDQUFDO0lBQ1gsUUFBUSxFQUFFLENBQUM7Q0FDTCxDQUFDIn0=
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Regula FaceSDK Web API
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
7
+ *
8
+ * The version of the OpenAPI document: 5.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0Y2gtcmVxdWVzdC1vdXRwdXQtaW1hZ2UtcGFyYW1zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZGVscy9tYXRjaC1yZXF1ZXN0LW91dHB1dC1pbWFnZS1wYXJhbXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRyJ9
@@ -87,7 +87,7 @@ export var Liveness20ApiAxiosParamCreator = function (configuration) {
87
87
  /**
88
88
  *
89
89
  * @summary Liveness assessment
90
- * @param {number} transactionId ID of the current liveness transaction.
90
+ * @param {string} transactionId ID of the current liveness transaction.
91
91
  * @param {*} [options] Override http request option.
92
92
  * @throws {RequiredError}
93
93
  */
@@ -131,7 +131,7 @@ export var Liveness20ApiFp = function (configuration) {
131
131
  /**
132
132
  *
133
133
  * @summary Liveness assessment
134
- * @param {number} transactionId ID of the current liveness transaction.
134
+ * @param {string} transactionId ID of the current liveness transaction.
135
135
  * @param {*} [options] Override http request option.
136
136
  * @throws {RequiredError}
137
137
  */
@@ -160,7 +160,7 @@ export var Liveness20ApiFactory = function (configuration, basePath, axios) {
160
160
  /**
161
161
  *
162
162
  * @summary Liveness assessment
163
- * @param {number} transactionId ID of the current liveness transaction.
163
+ * @param {string} transactionId ID of the current liveness transaction.
164
164
  * @param {*} [options] Override http request option.
165
165
  * @throws {RequiredError}
166
166
  */
@@ -183,7 +183,7 @@ var Liveness20Api = /** @class */ (function (_super) {
183
183
  /**
184
184
  *
185
185
  * @summary Liveness assessment
186
- * @param {number} transactionId ID of the current liveness transaction.
186
+ * @param {string} transactionId ID of the current liveness transaction.
187
187
  * @param {*} [options] Override http request option.
188
188
  * @throws {RequiredError}
189
189
  * @memberof Liveness20Api
@@ -0,0 +1,21 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
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
+ *
7
+ * The version of the OpenAPI document: 5.2.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export var MatchRequestOutputImageParamsCropTypeEnum = {
15
+ NUMBER_0: 0,
16
+ NUMBER_1: 1,
17
+ NUMBER_2: 2,
18
+ NUMBER_3: 3,
19
+ NUMBER_4: 4
20
+ };
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0Y2gtcmVxdWVzdC1vdXRwdXQtaW1hZ2UtcGFyYW1zLWNyb3AuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWxzL21hdGNoLXJlcXVlc3Qtb3V0cHV0LWltYWdlLXBhcmFtcy1jcm9wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRztBQW9DSCxNQUFNLENBQUMsSUFBTSx5Q0FBeUMsR0FBRztJQUNyRCxRQUFRLEVBQUUsQ0FBQztJQUNYLFFBQVEsRUFBRSxDQUFDO0lBQ1gsUUFBUSxFQUFFLENBQUM7SUFDWCxRQUFRLEVBQUUsQ0FBQztJQUNYLFFBQVEsRUFBRSxDQUFDO0NBQ0wsQ0FBQyJ9
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
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
+ *
7
+ * The version of the OpenAPI document: 5.2.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0Y2gtcmVxdWVzdC1vdXRwdXQtaW1hZ2UtcGFyYW1zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZGVscy9tYXRjaC1yZXF1ZXN0LW91dHB1dC1pbWFnZS1wYXJhbXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/facesdk-webclient",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "description": "JS client for facesdk web service",
5
5
  "author": "Regula Forensics, Inc.",
6
6
  "keywords": [
@@ -31,11 +31,11 @@ export const Liveness20ApiAxiosParamCreator = function (configuration?: Configur
31
31
  /**
32
32
  *
33
33
  * @summary Liveness assessment
34
- * @param {number} transactionId ID of the current liveness transaction.
34
+ * @param {string} transactionId ID of the current liveness transaction.
35
35
  * @param {*} [options] Override http request option.
36
36
  * @throws {RequiredError}
37
37
  */
38
- getLivenessTransactionInfo: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ getLivenessTransactionInfo: async (transactionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
39
  // verify required parameter 'transactionId' is not null or undefined
40
40
  assertParamExists('getLivenessTransactionInfo', 'transactionId', transactionId)
41
41
  const localVarPath = `/api/v2/liveness`;
@@ -78,11 +78,11 @@ export const Liveness20ApiFp = function(configuration?: Configuration) {
78
78
  /**
79
79
  *
80
80
  * @summary Liveness assessment
81
- * @param {number} transactionId ID of the current liveness transaction.
81
+ * @param {string} transactionId ID of the current liveness transaction.
82
82
  * @param {*} [options] Override http request option.
83
83
  * @throws {RequiredError}
84
84
  */
85
- async getLivenessTransactionInfo(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionInfo>> {
85
+ async getLivenessTransactionInfo(transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionInfo>> {
86
86
  const localVarAxiosArgs = await localVarAxiosParamCreator.getLivenessTransactionInfo(transactionId, options);
87
87
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
88
88
  },
@@ -99,11 +99,11 @@ export const Liveness20ApiFactory = function (configuration?: Configuration, bas
99
99
  /**
100
100
  *
101
101
  * @summary Liveness assessment
102
- * @param {number} transactionId ID of the current liveness transaction.
102
+ * @param {string} transactionId ID of the current liveness transaction.
103
103
  * @param {*} [options] Override http request option.
104
104
  * @throws {RequiredError}
105
105
  */
106
- getLivenessTransactionInfo(transactionId: number, options?: any): AxiosPromise<TransactionInfo> {
106
+ getLivenessTransactionInfo(transactionId: string, options?: any): AxiosPromise<TransactionInfo> {
107
107
  return localVarFp.getLivenessTransactionInfo(transactionId, options).then((request) => request(axios, basePath));
108
108
  },
109
109
  };
@@ -119,12 +119,12 @@ export class Liveness20Api extends BaseAPI {
119
119
  /**
120
120
  *
121
121
  * @summary Liveness assessment
122
- * @param {number} transactionId ID of the current liveness transaction.
122
+ * @param {string} transactionId ID of the current liveness transaction.
123
123
  * @param {*} [options] Override http request option.
124
124
  * @throws {RequiredError}
125
125
  * @memberof Liveness20Api
126
126
  */
127
- public getLivenessTransactionInfo(transactionId: number, options?: AxiosRequestConfig) {
127
+ public getLivenessTransactionInfo(transactionId: string, options?: AxiosRequestConfig) {
128
128
  return Liveness20ApiFp(this.configuration).getLivenessTransactionInfo(transactionId, options).then((request) => request(this.axios, this.basePath));
129
129
  }
130
130
  }
@@ -22,10 +22,10 @@
22
22
  export interface Image {
23
23
  /**
24
24
  * Response image ID. The list is sorted by decreasing ID value.
25
- * @type {number}
25
+ * @type {string}
26
26
  * @memberof Image
27
27
  */
28
- 'id'?: number;
28
+ 'id'?: string;
29
29
  /**
30
30
  * Original media type of the returned image.
31
31
  * @type {string}
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
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
+ *
7
+ * The version of the OpenAPI document: 5.2.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Whether to return the Base64 of an aligned and cropped portrait in the crop field.
19
+ * @export
20
+ * @interface MatchRequestOutputImageParamsCrop
21
+ */
22
+ export interface MatchRequestOutputImageParamsCrop {
23
+ /**
24
+ * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
25
+ * @type {Array<number>}
26
+ * @memberof MatchRequestOutputImageParamsCrop
27
+ */
28
+ 'padColor'?: Array<number>;
29
+ /**
30
+ * Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop.
31
+ * @type {boolean}
32
+ * @memberof MatchRequestOutputImageParamsCrop
33
+ */
34
+ 'returnOriginalRect'?: boolean;
35
+ /**
36
+ * The resize value in case type matches this value. If it doesn\'t, no resize is done.
37
+ * @type {Array<number>}
38
+ * @memberof MatchRequestOutputImageParamsCrop
39
+ */
40
+ 'size'?: Array<number>;
41
+ /**
42
+ * The aspect ratio according to which face alignment is performed during face detection.
43
+ * @type {number}
44
+ * @memberof MatchRequestOutputImageParamsCrop
45
+ */
46
+ 'type'?: MatchRequestOutputImageParamsCropTypeEnum;
47
+ }
48
+
49
+ export const MatchRequestOutputImageParamsCropTypeEnum = {
50
+ NUMBER_0: 0,
51
+ NUMBER_1: 1,
52
+ NUMBER_2: 2,
53
+ NUMBER_3: 3,
54
+ NUMBER_4: 4
55
+ } as const;
56
+
57
+ export type MatchRequestOutputImageParamsCropTypeEnum = typeof MatchRequestOutputImageParamsCropTypeEnum[keyof typeof MatchRequestOutputImageParamsCropTypeEnum];
58
+
59
+
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
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
+ *
7
+ * The version of the OpenAPI document: 5.2.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { MatchRequestOutputImageParamsCrop } from './match-request-output-image-params-crop';
17
+
18
+ /**
19
+ * Whether to process the uploaded image according to the indicated settings.
20
+ * @export
21
+ * @interface MatchRequestOutputImageParams
22
+ */
23
+ export interface MatchRequestOutputImageParams {
24
+ /**
25
+ * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
26
+ * @type {Array<number>}
27
+ * @memberof MatchRequestOutputImageParams
28
+ */
29
+ 'backgroundColor'?: Array<number>;
30
+ /**
31
+ *
32
+ * @type {MatchRequestOutputImageParamsCrop}
33
+ * @memberof MatchRequestOutputImageParams
34
+ */
35
+ 'crop'?: MatchRequestOutputImageParamsCrop;
36
+ }
37
+