@regulaforensics/facesdk-webclient 4.1.5 → 5.1.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.
Files changed (31) hide show
  1. package/dist/cjs-es5/api/liveness-api.js +355 -0
  2. package/dist/cjs-es5/api/liveness20-api.js +432 -0
  3. package/dist/cjs-es5/api.js +2 -1
  4. package/dist/cjs-es5/models/face-quality-scenarios.js +2 -1
  5. package/dist/cjs-es5/models/faces-response-all-of.js +16 -0
  6. package/dist/cjs-es5/models/faces-response.js +16 -0
  7. package/dist/cjs-es5/models/image-source.js +3 -2
  8. package/dist/cjs-es5/models/index.js +4 -1
  9. package/dist/cjs-es5/models/liveness-transaction.js +16 -0
  10. package/dist/esm-es5/api/liveness-api.js +352 -0
  11. package/dist/esm-es5/api/liveness20-api.js +429 -0
  12. package/dist/esm-es5/api.js +2 -1
  13. package/dist/esm-es5/models/face-quality-scenarios.js +2 -1
  14. package/dist/esm-es5/models/faces-response-all-of.js +14 -0
  15. package/dist/esm-es5/models/faces-response.js +14 -0
  16. package/dist/esm-es5/models/image-source.js +3 -2
  17. package/dist/esm-es5/models/index.js +4 -1
  18. package/dist/esm-es5/models/liveness-transaction.js +14 -0
  19. package/package.json +1 -1
  20. package/src/api/liveness-api.ts +268 -0
  21. package/src/api/liveness20-api.ts +340 -0
  22. package/src/api.ts +1 -0
  23. package/src/models/face-quality-scenarios.ts +1 -0
  24. package/src/models/faces-response-all-of.ts +37 -0
  25. package/src/models/faces-response.ts +26 -0
  26. package/src/models/image-source.ts +2 -1
  27. package/src/models/index.ts +3 -0
  28. package/src/models/liveness-transaction.ts +78 -0
  29. package/src/models/match-and-search-response-all-of-detections.ts +3 -4
  30. package/src/models/match-and-search-response-all-of.ts +8 -8
  31. package/src/models/search-parameters.ts +1 -1
@@ -0,0 +1,26 @@
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: 4.1.3
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 { DetectionFace } from './detection-face';
17
+ import { FacesResponseAllOf } from './faces-response-all-of';
18
+ import { PersonWithImages } from './person-with-images';
19
+
20
+ /**
21
+ * @type FacesResponse
22
+ * @export
23
+ */
24
+ export type FacesResponse = DetectionFace & FacesResponseAllOf;
25
+
26
+
@@ -25,7 +25,8 @@ export const ImageSource = {
25
25
  DOCUMENT_RFID: 2,
26
26
  LIVE: 3,
27
27
  DOCUMENT_WITH_LIVE: 4,
28
- EXTERNAL: 5
28
+ EXTERNAL: 5,
29
+ GHOST: 6
29
30
  } as const;
30
31
 
31
32
  export type ImageSource = typeof ImageSource[keyof typeof ImageSource];
@@ -13,6 +13,8 @@ export * from './face-quality-config-name';
13
13
  export * from './face-quality-scenarios';
14
14
  export * from './face-sdkresult';
15
15
  export * from './face-sdkresult-code';
16
+ export * from './faces-response';
17
+ export * from './faces-response-all-of';
16
18
  export * from './group';
17
19
  export * from './group-all-of';
18
20
  export * from './group-page';
@@ -24,6 +26,7 @@ export * from './image-fields-image';
24
26
  export * from './image-page';
25
27
  export * from './image-page-all-of';
26
28
  export * from './image-source';
29
+ export * from './liveness-transaction';
27
30
  export * from './match-and-search-request';
28
31
  export * from './match-and-search-request-all-of';
29
32
  export * from './match-and-search-request-all-of-images';
@@ -0,0 +1,78 @@
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: 4.1.3
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
+ *
19
+ * @export
20
+ * @interface LivenessTransaction
21
+ */
22
+ export interface LivenessTransaction {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof LivenessTransaction
27
+ */
28
+ 'code'?: number;
29
+ /**
30
+ * A free-form object containing additional transaction attributes.
31
+ * @type {{ [key: string]: object; }}
32
+ * @memberof LivenessTransaction
33
+ */
34
+ 'config'?: { [key: string]: object; };
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof LivenessTransaction
39
+ */
40
+ 'elapsed'?: number;
41
+ /**
42
+ * URL for portrait image
43
+ * @type {string}
44
+ * @memberof LivenessTransaction
45
+ */
46
+ 'portrait'?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof LivenessTransaction
51
+ */
52
+ 'sessionId'?: string;
53
+ /**
54
+ * Whether the liveness detection is confirmed (0) or not (1)
55
+ * @type {number}
56
+ * @memberof LivenessTransaction
57
+ */
58
+ 'status'?: number;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof LivenessTransaction
63
+ */
64
+ 'transactionId'?: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof LivenessTransaction
69
+ */
70
+ 'video'?: string;
71
+ /**
72
+ * A free-form object containing the request information (server time, client IP, etc.).
73
+ * @type {{ [key: string]: object; }}
74
+ * @memberof LivenessTransaction
75
+ */
76
+ 'metadata'?: { [key: string]: object; };
77
+ }
78
+
@@ -13,9 +13,8 @@
13
13
  */
14
14
 
15
15
 
16
- import { DetectionFace } from './detection-face';
17
16
  import { FaceSDKResultCode } from './face-sdkresult-code';
18
- import { PersonWithImages } from './person-with-images';
17
+ import { FacesResponse } from './faces-response';
19
18
 
20
19
  /**
21
20
  *
@@ -25,10 +24,10 @@ import { PersonWithImages } from './person-with-images';
25
24
  export interface MatchAndSearchResponseAllOfDetections {
26
25
  /**
27
26
  *
28
- * @type {Array<DetectionFace & object>}
27
+ * @type {Array<FacesResponse>}
29
28
  * @memberof MatchAndSearchResponseAllOfDetections
30
29
  */
31
- 'faces'?: Array<DetectionFace & object>;
30
+ 'faces'?: Array<FacesResponse>;
32
31
  /**
33
32
  * Image index used to identify input photos between themselves. If not specified, than input list index is used.
34
33
  * @type {number}
@@ -24,16 +24,10 @@ import { MatchImageResult } from './match-image-result';
24
24
  export interface MatchAndSearchResponseAllOf {
25
25
  /**
26
26
  *
27
- * @type {Array<MatchAndSearchResponseAllOfDetections>}
28
- * @memberof MatchAndSearchResponseAllOf
29
- */
30
- 'detections'?: Array<MatchAndSearchResponseAllOfDetections>;
31
- /**
32
- *
33
- * @type {MatchImageResult}
27
+ * @type {Array<MatchImageResult>}
34
28
  * @memberof MatchAndSearchResponseAllOf
35
29
  */
36
- 'results'?: MatchImageResult;
30
+ 'results'?: Array<MatchImageResult>;
37
31
  /**
38
32
  *
39
33
  * @type {number}
@@ -46,5 +40,11 @@ export interface MatchAndSearchResponseAllOf {
46
40
  * @memberof MatchAndSearchResponseAllOf
47
41
  */
48
42
  'metadata'?: { [key: string]: object; };
43
+ /**
44
+ *
45
+ * @type {Array<MatchAndSearchResponseAllOfDetections>}
46
+ * @memberof MatchAndSearchResponseAllOf
47
+ */
48
+ 'detections'?: Array<MatchAndSearchResponseAllOfDetections>;
49
49
  }
50
50
 
@@ -27,7 +27,7 @@ export interface SearchParameters {
27
27
  */
28
28
  'limit'?: number;
29
29
  /**
30
- * The similarity distance threshold.
30
+ * The similarity distance threshold, should be between 0.0 and 2.0, where 0.0 is for returning results for only the most similar persons and 2.0 is for all the persons, even the dissimilar ones. If not set, the default 1.0 value is used.
31
31
  * @type {number}
32
32
  * @memberof SearchParameters
33
33
  */