@regulaforensics/facesdk-webclient 3.1.2 → 4.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 (189) hide show
  1. package/dist/cjs-es5/api/group-api.js +695 -0
  2. package/dist/cjs-es5/api/matching-api.js +101 -127
  3. package/dist/cjs-es5/api/person-api.js +952 -0
  4. package/dist/cjs-es5/api/search-api.js +200 -0
  5. package/dist/cjs-es5/api.js +4 -1
  6. package/dist/cjs-es5/base.js +1 -1
  7. package/dist/cjs-es5/common.js +235 -0
  8. package/dist/cjs-es5/configuration.js +16 -1
  9. package/dist/cjs-es5/ext/face-sdk.js +7 -1
  10. package/dist/cjs-es5/ext/group-api.js +47 -0
  11. package/dist/cjs-es5/ext/index.js +1 -2
  12. package/dist/cjs-es5/ext/matching-api.js +3 -7
  13. package/dist/cjs-es5/ext/person-api.js +61 -0
  14. package/dist/cjs-es5/ext/search-api.js +33 -0
  15. package/dist/cjs-es5/index.js +1 -2
  16. package/dist/cjs-es5/models/crop.js +16 -0
  17. package/dist/cjs-es5/models/detection-quality.js +16 -0
  18. package/dist/cjs-es5/models/face-align-type-quality.js +29 -0
  19. package/dist/cjs-es5/models/face-image-quality-groups.js +31 -0
  20. package/dist/cjs-es5/models/face-quality-config-name.js +66 -0
  21. package/dist/cjs-es5/models/face-quality-scenarios.js +31 -0
  22. package/dist/cjs-es5/models/face-quality-status.js +27 -0
  23. package/dist/cjs-es5/models/face-recognition-result-code.js +1 -6
  24. package/dist/cjs-es5/models/face-sdkresult-code.js +34 -35
  25. package/dist/cjs-es5/models/group-all-of.js +16 -0
  26. package/dist/cjs-es5/models/group-page-all-of.js +16 -0
  27. package/dist/cjs-es5/models/group-page.js +16 -0
  28. package/dist/cjs-es5/models/group-to-create.js +16 -0
  29. package/dist/cjs-es5/models/group.js +16 -0
  30. package/dist/cjs-es5/models/image-fields-image.js +16 -0
  31. package/dist/cjs-es5/models/image-fields.js +16 -0
  32. package/dist/cjs-es5/models/image-page-all-of.js +16 -0
  33. package/dist/cjs-es5/models/image-page.js +16 -0
  34. package/dist/cjs-es5/models/image-source.js +9 -10
  35. package/dist/cjs-es5/models/image.js +16 -0
  36. package/dist/cjs-es5/models/index.js +55 -16
  37. package/dist/cjs-es5/models/operation-log.js +16 -0
  38. package/dist/cjs-es5/models/output-image-params.js +16 -0
  39. package/dist/cjs-es5/models/page.js +16 -0
  40. package/dist/cjs-es5/models/person-all-of.js +16 -0
  41. package/dist/cjs-es5/models/person-fields.js +16 -0
  42. package/dist/cjs-es5/models/person.js +16 -0
  43. package/dist/cjs-es5/models/persons-page-all-of.js +16 -0
  44. package/dist/cjs-es5/models/persons-page.js +16 -0
  45. package/dist/cjs-es5/models/process-param.js +16 -0
  46. package/dist/cjs-es5/models/quality-config.js +16 -0
  47. package/dist/cjs-es5/models/quality-detail.js +16 -0
  48. package/dist/cjs-es5/models/quality-details-groups.js +16 -0
  49. package/dist/cjs-es5/models/quality-request.js +16 -0
  50. package/dist/cjs-es5/models/recognize-image-all-of.js +16 -0
  51. package/dist/cjs-es5/models/recognize-image.js +16 -0
  52. package/dist/cjs-es5/models/search-person-all-of.js +16 -0
  53. package/dist/cjs-es5/models/search-person.js +16 -0
  54. package/dist/cjs-es5/models/search-request-all-of.js +16 -0
  55. package/dist/cjs-es5/models/search-request.js +16 -0
  56. package/dist/cjs-es5/models/search-result-all-of.js +16 -0
  57. package/dist/cjs-es5/models/search-result.js +16 -0
  58. package/dist/cjs-es5/models/update-group.js +16 -0
  59. package/dist/esm-es5/api/group-api.js +692 -0
  60. package/dist/esm-es5/api/matching-api.js +100 -126
  61. package/dist/esm-es5/api/person-api.js +949 -0
  62. package/dist/esm-es5/api/search-api.js +197 -0
  63. package/dist/esm-es5/api.js +4 -1
  64. package/dist/esm-es5/base.js +1 -1
  65. package/dist/esm-es5/common.js +232 -0
  66. package/dist/esm-es5/configuration.js +16 -1
  67. package/dist/esm-es5/ext/face-sdk.js +7 -1
  68. package/dist/esm-es5/ext/group-api.js +44 -0
  69. package/dist/esm-es5/ext/index.js +1 -2
  70. package/dist/esm-es5/ext/matching-api.js +3 -7
  71. package/dist/esm-es5/ext/person-api.js +58 -0
  72. package/dist/esm-es5/ext/search-api.js +30 -0
  73. package/dist/esm-es5/index.js +1 -2
  74. package/dist/esm-es5/models/crop.js +14 -0
  75. package/dist/esm-es5/models/detection-quality.js +14 -0
  76. package/dist/esm-es5/models/face-align-type-quality.js +26 -0
  77. package/dist/esm-es5/models/face-image-quality-groups.js +28 -0
  78. package/dist/esm-es5/models/face-quality-config-name.js +63 -0
  79. package/dist/esm-es5/models/face-quality-scenarios.js +28 -0
  80. package/dist/esm-es5/models/face-quality-status.js +24 -0
  81. package/dist/esm-es5/models/face-recognition-result-code.js +1 -3
  82. package/dist/esm-es5/models/face-sdkresult-code.js +34 -35
  83. package/dist/esm-es5/models/group-all-of.js +14 -0
  84. package/dist/esm-es5/models/group-page-all-of.js +14 -0
  85. package/dist/esm-es5/models/group-page.js +14 -0
  86. package/dist/esm-es5/models/group-to-create.js +14 -0
  87. package/dist/esm-es5/models/group.js +14 -0
  88. package/dist/esm-es5/models/image-fields-image.js +14 -0
  89. package/dist/esm-es5/models/image-fields.js +14 -0
  90. package/dist/esm-es5/models/image-page-all-of.js +14 -0
  91. package/dist/esm-es5/models/image-page.js +14 -0
  92. package/dist/esm-es5/models/image-source.js +9 -10
  93. package/dist/esm-es5/models/image.js +14 -0
  94. package/dist/esm-es5/models/index.js +55 -16
  95. package/dist/esm-es5/models/operation-log.js +14 -0
  96. package/dist/esm-es5/models/output-image-params.js +14 -0
  97. package/dist/esm-es5/models/page.js +14 -0
  98. package/dist/esm-es5/models/person-all-of.js +14 -0
  99. package/dist/esm-es5/models/person-fields.js +14 -0
  100. package/dist/esm-es5/models/person.js +14 -0
  101. package/dist/esm-es5/models/persons-page-all-of.js +14 -0
  102. package/dist/esm-es5/models/persons-page.js +14 -0
  103. package/dist/esm-es5/models/process-param.js +14 -0
  104. package/dist/esm-es5/models/quality-config.js +14 -0
  105. package/dist/esm-es5/models/quality-detail.js +14 -0
  106. package/dist/esm-es5/models/quality-details-groups.js +14 -0
  107. package/dist/esm-es5/models/quality-request.js +14 -0
  108. package/dist/esm-es5/models/recognize-image-all-of.js +14 -0
  109. package/dist/esm-es5/models/recognize-image.js +14 -0
  110. package/dist/esm-es5/models/search-person-all-of.js +14 -0
  111. package/dist/esm-es5/models/search-person.js +14 -0
  112. package/dist/esm-es5/models/search-request-all-of.js +14 -0
  113. package/dist/esm-es5/models/search-request.js +14 -0
  114. package/dist/esm-es5/models/search-result-all-of.js +14 -0
  115. package/dist/esm-es5/models/search-result.js +14 -0
  116. package/dist/esm-es5/models/update-group.js +14 -0
  117. package/package.json +1 -1
  118. package/src/api/group-api.ts +592 -0
  119. package/src/api/matching-api.ts +150 -170
  120. package/src/api/person-api.ts +831 -0
  121. package/src/api/search-api.ts +133 -0
  122. package/src/api.ts +3 -0
  123. package/src/base.ts +2 -2
  124. package/src/common.ts +138 -0
  125. package/src/configuration.ts +25 -0
  126. package/src/ext/face-sdk.ts +10 -0
  127. package/src/ext/group-api.ts +34 -0
  128. package/src/ext/index.ts +0 -1
  129. package/src/ext/matching-api.ts +5 -9
  130. package/src/ext/person-api.ts +51 -0
  131. package/src/ext/search-api.ts +14 -0
  132. package/src/index.ts +0 -1
  133. package/src/models/crop.ts +49 -0
  134. package/src/models/detect-request.ts +15 -9
  135. package/src/models/detect-response-all-of.ts +1 -2
  136. package/src/models/detect-response.ts +0 -1
  137. package/src/models/detect-result.ts +16 -4
  138. package/src/models/detection-face.ts +6 -7
  139. package/src/models/detection-quality.ts +57 -0
  140. package/src/models/detection.ts +20 -7
  141. package/src/models/face-align-type-quality.ts +34 -0
  142. package/src/models/face-image-quality-groups.ts +36 -0
  143. package/src/models/face-quality-config-name.ts +71 -0
  144. package/src/models/face-quality-scenarios.ts +36 -0
  145. package/src/models/face-quality-status.ts +32 -0
  146. package/src/models/face-recognition-result-code.ts +0 -4
  147. package/src/models/face-sdkresult-code.ts +36 -33
  148. package/src/models/face-sdkresult.ts +1 -2
  149. package/src/models/group-all-of.ts +36 -0
  150. package/src/models/group-page-all-of.ts +31 -0
  151. package/src/models/group-page.ts +26 -0
  152. package/src/models/group-to-create.ts +36 -0
  153. package/src/models/group.ts +25 -0
  154. package/src/models/image-fields-image.ts +37 -0
  155. package/src/models/image-fields.ts +31 -0
  156. package/src/models/image-page-all-of.ts +31 -0
  157. package/src/models/image-page.ts +26 -0
  158. package/src/models/image-source.ts +11 -8
  159. package/src/models/image.ts +54 -0
  160. package/src/models/index.ts +54 -15
  161. package/src/models/match-image-detection.ts +4 -5
  162. package/src/models/match-image-result.ts +10 -11
  163. package/src/models/match-image.ts +4 -5
  164. package/src/models/match-request.ts +3 -4
  165. package/src/models/match-response-all-of.ts +2 -3
  166. package/src/models/match-response.ts +0 -1
  167. package/src/models/operation-log.ts +42 -0
  168. package/src/models/output-image-params.ts +37 -0
  169. package/src/models/page.ts +36 -0
  170. package/src/models/person-all-of.ts +42 -0
  171. package/src/models/person-fields.ts +36 -0
  172. package/src/models/person.ts +26 -0
  173. package/src/models/persons-page-all-of.ts +31 -0
  174. package/src/models/persons-page.ts +26 -0
  175. package/src/models/process-param.ts +51 -0
  176. package/src/models/quality-config.ts +37 -0
  177. package/src/models/quality-detail.ts +57 -0
  178. package/src/models/quality-details-groups.ts +50 -0
  179. package/src/models/quality-request.ts +37 -0
  180. package/src/models/recognize-image-all-of.ts +30 -0
  181. package/src/models/recognize-image.ts +25 -0
  182. package/src/models/search-person-all-of.ts +31 -0
  183. package/src/models/search-person.ts +26 -0
  184. package/src/models/search-request-all-of.ts +42 -0
  185. package/src/models/search-request.ts +26 -0
  186. package/src/models/search-result-all-of.ts +30 -0
  187. package/src/models/search-result.ts +26 -0
  188. package/src/models/update-group.ts +36 -0
  189. package/update-models.sh +1 -1
@@ -25,25 +25,24 @@ export interface DetectionFace {
25
25
  * @type {number}
26
26
  * @memberof DetectionFace
27
27
  */
28
- faceIndex?: number;
28
+ 'faceIndex'?: number;
29
29
  /**
30
- * Main coordinates of the detected face (eyes, nose, lips, ears and etc.).
30
+ * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
31
31
  * @type {Array<Array<number>>}
32
32
  * @memberof DetectionFace
33
33
  */
34
- landmarks?: Array<Array<number>>;
34
+ 'landmarks'?: Array<Array<number>>;
35
35
  /**
36
36
  * Rectangular area of the detected face. First element - X-axis coordinate. Second element - Y-axis coordinate. (X, Y) - left top point. Third element - rectangular width. Fourth element - rectangular height.
37
37
  * @type {Array<number>}
38
38
  * @memberof DetectionFace
39
39
  */
40
- roi?: Array<number>;
40
+ 'roi'?: Array<number>;
41
41
  /**
42
- * Formatted base64 face detection image.
42
+ * Base64 of the cropped portrait.
43
43
  * @type {string}
44
44
  * @memberof DetectionFace
45
45
  */
46
- thumbnail?: string;
46
+ 'thumbnail'?: string;
47
47
  }
48
48
 
49
-
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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 { FaceQualityConfigName } from './face-quality-config-name';
17
+ import { QualityDetail } from './quality-detail';
18
+ import { QualityDetailsGroups } from './quality-details-groups';
19
+
20
+ /**
21
+ * Field for checking the portrait quality. If it is not mentioned, no quality check is performed.
22
+ * @export
23
+ * @interface DetectionQuality
24
+ */
25
+ export interface DetectionQuality {
26
+ /**
27
+ * The array of all the non-compliant assessment characteristics.
28
+ * @type {Array<FaceQualityConfigName>}
29
+ * @memberof DetectionQuality
30
+ */
31
+ 'nonCompliant'?: Array<FaceQualityConfigName>;
32
+ /**
33
+ * The array of the assessment results for each group of characteristics.
34
+ * @type {Array<QualityDetailsGroups>}
35
+ * @memberof DetectionQuality
36
+ */
37
+ 'detailsGroups'?: Array<QualityDetailsGroups>;
38
+ /**
39
+ * The array of the assessment characteristics that were set in the request.
40
+ * @type {Array<QualityDetail>}
41
+ * @memberof DetectionQuality
42
+ */
43
+ 'details'?: Array<QualityDetail>;
44
+ /**
45
+ * Returns the estimated portrait quality assessment result, a number from 0 to 1, where 1 is for absolute compliance.
46
+ * @type {number}
47
+ * @memberof DetectionQuality
48
+ */
49
+ 'score'?: number;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof DetectionQuality
54
+ */
55
+ 'timer'?: number;
56
+ }
57
+
@@ -13,6 +13,8 @@
13
13
  */
14
14
 
15
15
 
16
+ import { DetectionQuality } from './detection-quality';
17
+ import { ImageData } from './image-data';
16
18
 
17
19
  /**
18
20
  *
@@ -20,30 +22,41 @@
20
22
  * @interface Detection
21
23
  */
22
24
  export interface Detection {
25
+ /**
26
+ *
27
+ * @type {ImageData}
28
+ * @memberof Detection
29
+ */
30
+ 'crop'?: ImageData;
23
31
  /**
24
32
  *
25
33
  * @type {{ [key: string]: object; }}
26
34
  * @memberof Detection
27
35
  */
28
- attributes?: { [key: string]: object; };
36
+ 'attributes'?: { [key: string]: object; };
29
37
  /**
30
- * Main coordinates of the detected face (eyes, nose, lips, ears and etc.).
38
+ * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
31
39
  * @type {Array<Array<number>>}
32
40
  * @memberof Detection
33
41
  */
34
- landmarks: Array<Array<number>>;
42
+ 'landmarks': Array<Array<number>>;
43
+ /**
44
+ *
45
+ * @type {DetectionQuality}
46
+ * @memberof Detection
47
+ */
48
+ 'quality'?: DetectionQuality;
35
49
  /**
36
50
  * Rectangular area of the detected face. First element - X-axis coordinate. Second element - Y-axis coordinate. (X, Y) - left top point. Third element - rectangular width. Fourth element - rectangular height.
37
51
  * @type {Array<number>}
38
52
  * @memberof Detection
39
53
  */
40
- roi: Array<number>;
54
+ 'roi': Array<number>;
41
55
  /**
42
- * Formatted base64 face detection image.
56
+ * Base64 of the cropped portrait.
43
57
  * @type {string}
44
58
  * @memberof Detection
45
59
  */
46
- thumbnail?: string;
60
+ 'thumbnail'?: string;
47
61
  }
48
62
 
49
-
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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
+ * The aspect ratio according to which alignment is performed.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const FaceAlignTypeQuality = {
24
+ ALIGN_3x4: 0,
25
+ ALIGN_4x5: 1,
26
+ ALIGN_2x3: 2,
27
+ ALIGN_1x1: 3,
28
+ ALIGN_7x9: 4
29
+ } as const;
30
+
31
+ export type FaceAlignTypeQuality = typeof FaceAlignTypeQuality[keyof typeof FaceAlignTypeQuality];
32
+
33
+
34
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const FaceImageQualityGroups = {
24
+ IMAGE_CHARACTERISTICS: 1,
25
+ HEAD_SIZE_AND_POSITIONS: 2,
26
+ FACE_QUALITY: 3,
27
+ EYES_CHARACTERISTICS: 4,
28
+ SHADOWS_AND_LIGHTNING: 5,
29
+ POSE_AND_EXPRESSION: 6,
30
+ HEAD_OCCLUSION: 8
31
+ } as const;
32
+
33
+ export type FaceImageQualityGroups = typeof FaceImageQualityGroups[keyof typeof FaceImageQualityGroups];
34
+
35
+
36
+
@@ -0,0 +1,71 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const FaceQualityConfigName = {
24
+ IMAGE_WIDTH: 'ImageWidth',
25
+ IMAGE_HEIGHT: 'ImageHeight',
26
+ IMAGE_WIDTH_TO_HEIGHT: 'ImageWidthToHeight',
27
+ IMAGE_CHANNELS_NUMBER: 'ImageChannelsNumber',
28
+ FACE_MID_POINT_HORIZONTAL_POSITION: 'FaceMidPointHorizontalPosition',
29
+ FACE_MID_POINT_VERTICAL_POSITION: 'FaceMidPointVerticalPosition',
30
+ HEAD_WIDTH_RATIO: 'HeadWidthRatio',
31
+ HEAD_HEIGHT_RATIO: 'HeadHeightRatio',
32
+ EYES_DISTANCE: 'EyesDistance',
33
+ YAW: 'Yaw',
34
+ PITCH: 'Pitch',
35
+ ROLL: 'Roll',
36
+ BLUR_LEVEL: 'BlurLevel',
37
+ NOISE_LEVEL: 'NoiseLevel',
38
+ EYE_RIGHT_CLOSED: 'EyeRightClosed',
39
+ EYE_LEFT_CLOSED: 'EyeLeftClosed',
40
+ EYE_RIGHT_OCCLUDED: 'EyeRightOccluded',
41
+ EYE_LEFT_OCCLUDED: 'EyeLeftOccluded',
42
+ EYES_RED: 'EyesRed',
43
+ EYE_RIGHT_COVERED_WITH_HAIR: 'EyeRightCoveredWithHair',
44
+ EYE_LEFT_COVERED_WITH_HAIR: 'EyeLeftCoveredWithHair',
45
+ OFF_GAZE: 'OffGaze',
46
+ FACE_DYNAMIC_RANGE: 'FaceDynamicRange',
47
+ UNNATURAL_SKIN_TONE: 'UnnaturalSkinTone',
48
+ TOO_DARK: 'TooDark',
49
+ TOO_LIGHT: 'TooLight',
50
+ FACE_GLARE: 'FaceGlare',
51
+ SHADOWS_ON_FACE: 'ShadowsOnFace',
52
+ DARK_GLASSES: 'DarkGlasses',
53
+ REFLECTION_ON_GLASSES: 'ReflectionOnGlasses',
54
+ FRAMES_TOO_HEAVY: 'FramesTooHeavy',
55
+ FACE_OCCLUDED: 'FaceOccluded',
56
+ HEAD_COVERING: 'HeadCovering',
57
+ BACKGROUND_UNIFORMITY: 'BackgroundUniformity',
58
+ SHADOWS_ON_BACKGROUND: 'ShadowsOnBackground',
59
+ OTHER_FACES: 'OtherFaces',
60
+ SHOULDERS_POSE: 'ShouldersPose',
61
+ EXPRESSION_LEVEL: 'ExpressionLevel',
62
+ MOUTH_OPEN: 'MouthOpen',
63
+ CONTACT_LENSES: 'ContactLenses',
64
+ FOREHEAD_COVERING: 'ForeheadCovering',
65
+ SMILE: 'Smile'
66
+ } as const;
67
+
68
+ export type FaceQualityConfigName = typeof FaceQualityConfigName[keyof typeof FaceQualityConfigName];
69
+
70
+
71
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const FaceQualityScenarios = {
24
+ QUALITY_FULL: 'QualityFull',
25
+ QUALITY_ICAO: 'QualityICAO',
26
+ QUALITY_VISA_SCHENGEN: 'QualityVisaSchengen',
27
+ QUALITY_VISA_USA: 'QualityVisaUSA',
28
+ CROP_CENTRAL_FACE: 'CropCentralFace',
29
+ CROP_ALL_FACES: 'CropAllFaces',
30
+ THUMBNAIL: 'Thumbnail'
31
+ } as const;
32
+
33
+ export type FaceQualityScenarios = typeof FaceQualityScenarios[keyof typeof FaceQualityScenarios];
34
+
35
+
36
+
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const FaceQualityStatus = {
24
+ QUALITY_STATUS_FALSE: 0,
25
+ QUALITY_STATUS_TRUE: 1,
26
+ QUALITY_STATUS_UNDETERMINED: 2
27
+ } as const;
28
+
29
+ export type FaceQualityStatus = typeof FaceQualityStatus[keyof typeof FaceQualityStatus];
30
+
31
+
32
+
@@ -11,7 +11,3 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
-
15
-
16
- import {FaceSDKResultCode} from './face-sdkresult-code.js';
17
- export import FaceRecognitionResultCode = FaceSDKResultCode;
@@ -19,39 +19,42 @@
19
19
  * @export
20
20
  * @enum {string}
21
21
  */
22
- export enum FaceSDKResultCode {
23
- FACER_OK = 0,
24
- FACER_NO_LICENSE = 200,
25
- FACER_IS_NOT_INITIALIZED = 201,
26
- FACER_COMMAND_IS_NOT_SUPPORTED = 202,
27
- FACER_COMMAND_PARAMS_READ_ERROR = 203,
28
- FACER_SEARCHER_INDEX_FILE_NOT_EXIST = 204,
29
- FACER_SEARCHER_INDEX_FILE_READ_ERROR = 205,
30
- FACER_SEARCHER_INDEX_FILE_DECRYPTION_ERROR = 206,
31
- FACER_SEARCHER_INDEX_LOAD_ERROR = 207,
32
- FACER_SEARCHER_WRONG_DESCRIPTOR_VERSION = 208,
33
- FACER_SEARCHER_INDEX_FILE_ENCRYPTION_ERROR = 209,
34
- FACER_SEARCHER_INDEX_FILE_SAVE_ERROR = 210,
35
- FACER_SEARCHER_IMAGE_DECODE_ERROR = 211,
36
- FACER_SEARCHER_ID_EXISTS_IN_INDEX = 212,
37
- FACER_SEARCHER_ID_NOT_IN_INDEX = 213,
38
- FACER_SEARCHER_NO_FACES = 214,
39
- FACER_SEARCHER_DESCRIPTOR_EXTRACTOR_ERROR = 215,
40
- FACER_SEARCHER_METADATA_READ_ERROR = 216,
41
- FACER_SEARCHER_NO_SEARCH_LICENSE = 217,
42
- FACER_SEARCHER_DESCRIPTOR_DECODE_ERROR = 218,
43
- FACER_SEARCHER_DESCRIPTOR_WRONG_SIZE = 219,
44
- FACER_SEARCHER_ZIP_IMAGE_READ_ERROR = 220,
45
- FACER_SEARCHER_ZIP_META_READ_ERROR = 221,
46
- FACER_SEARCHER_SIMILAR_PHOTOS_EXIST = 222,
47
- FACER_SEARCHER_PERSON_ZIP_READ_ERROR = 223,
48
- FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224,
49
- FACER_SEARCHER_WRONG_ID = 225,
50
- FACER_SEARCHER_ID_EXISTS_IN_DELETED = 226,
51
- FACER_VIDEO_DECODE_ERROR = 227,
52
- FACER_NOT_ENOUGH_FRAMES = 228,
53
- FACER_OUTPUT_IS_NOT_DEFINED = 229
54
- }
22
+
23
+ export const FaceSDKResultCode = {
24
+ FACER_OK: 0,
25
+ FACER_NO_LICENSE: 200,
26
+ FACER_IS_NOT_INITIALIZED: 201,
27
+ FACER_COMMAND_IS_NOT_SUPPORTED: 202,
28
+ FACER_COMMAND_PARAMS_READ_ERROR: 203,
29
+ FACER_SEARCHER_INDEX_FILE_NOT_EXIST: 204,
30
+ FACER_SEARCHER_INDEX_FILE_READ_ERROR: 205,
31
+ FACER_SEARCHER_INDEX_FILE_DECRYPTION_ERROR: 206,
32
+ FACER_SEARCHER_INDEX_LOAD_ERROR: 207,
33
+ FACER_SEARCHER_WRONG_DESCRIPTOR_VERSION: 208,
34
+ FACER_SEARCHER_INDEX_FILE_ENCRYPTION_ERROR: 209,
35
+ FACER_SEARCHER_INDEX_FILE_SAVE_ERROR: 210,
36
+ FACER_SEARCHER_IMAGE_DECODE_ERROR: 211,
37
+ FACER_SEARCHER_ID_EXISTS_IN_INDEX: 212,
38
+ FACER_SEARCHER_ID_NOT_IN_INDEX: 213,
39
+ FACER_SEARCHER_NO_FACES: 214,
40
+ FACER_SEARCHER_DESCRIPTOR_EXTRACTOR_ERROR: 215,
41
+ FACER_SEARCHER_METADATA_READ_ERROR: 216,
42
+ FACER_SEARCHER_NO_SEARCH_LICENSE: 217,
43
+ FACER_SEARCHER_DESCRIPTOR_DECODE_ERROR: 218,
44
+ FACER_SEARCHER_DESCRIPTOR_WRONG_SIZE: 219,
45
+ FACER_SEARCHER_ZIP_IMAGE_READ_ERROR: 220,
46
+ FACER_SEARCHER_ZIP_META_READ_ERROR: 221,
47
+ FACER_SEARCHER_SIMILAR_PHOTOS_EXIST: 222,
48
+ FACER_SEARCHER_PERSON_ZIP_READ_ERROR: 223,
49
+ FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST: 224,
50
+ FACER_SEARCHER_WRONG_ID: 225,
51
+ FACER_SEARCHER_ID_EXISTS_IN_DELETED: 226,
52
+ FACER_VIDEO_DECODE_ERROR: 227,
53
+ FACER_NOT_ENOUGH_FRAMES: 228,
54
+ FACER_OUTPUT_IS_NOT_DEFINED: 229
55
+ } as const;
56
+
57
+ export type FaceSDKResultCode = typeof FaceSDKResultCode[keyof typeof FaceSDKResultCode];
55
58
 
56
59
 
57
60
 
@@ -26,7 +26,6 @@ export interface FaceSDKResult {
26
26
  * @type {FaceSDKResultCode}
27
27
  * @memberof FaceSDKResult
28
28
  */
29
- code: FaceSDKResultCode;
29
+ 'code': FaceSDKResultCode;
30
30
  }
31
31
 
32
-
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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
+ * Additional group data in the response, includes id and created_at.
19
+ * @export
20
+ * @interface GroupAllOf
21
+ */
22
+ export interface GroupAllOf {
23
+ /**
24
+ * Group ID.
25
+ * @type {number}
26
+ * @memberof GroupAllOf
27
+ */
28
+ 'id'?: number;
29
+ /**
30
+ * Group creation date.
31
+ * @type {string}
32
+ * @memberof GroupAllOf
33
+ */
34
+ 'created_at'?: string;
35
+ }
36
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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 { Group } from './group';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GroupPageAllOf
22
+ */
23
+ export interface GroupPageAllOf {
24
+ /**
25
+ * The array of Groups that are found during the search.
26
+ * @type {Array<Group>}
27
+ * @memberof GroupPageAllOf
28
+ */
29
+ 'items'?: Array<Group>;
30
+ }
31
+
@@ -0,0 +1,26 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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 { Group } from './group';
17
+ import { GroupPageAllOf } from './group-page-all-of';
18
+ import { Page } from './page';
19
+
20
+ /**
21
+ * @type GroupPage
22
+ * @export
23
+ */
24
+ export type GroupPage = GroupPageAllOf & Page;
25
+
26
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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
+ * Request body of the group to create data, includes name and metadata.
19
+ * @export
20
+ * @interface GroupToCreate
21
+ */
22
+ export interface GroupToCreate {
23
+ /**
24
+ * Group to create name.
25
+ * @type {string}
26
+ * @memberof GroupToCreate
27
+ */
28
+ 'name'?: string;
29
+ /**
30
+ * A free-form object containing group\'s extended attributes.
31
+ * @type {{ [key: string]: object; }}
32
+ * @memberof GroupToCreate
33
+ */
34
+ 'metadata'?: { [key: string]: object; };
35
+ }
36
+
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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 { GroupAllOf } from './group-all-of';
17
+ import { GroupToCreate } from './group-to-create';
18
+
19
+ /**
20
+ * @type Group
21
+ * @export
22
+ */
23
+ export type Group = GroupAllOf & GroupToCreate;
24
+
25
+
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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 { ImageData } from './image-data';
17
+
18
+ /**
19
+ * The uploaded image.
20
+ * @export
21
+ * @interface ImageFieldsImage
22
+ */
23
+ export interface ImageFieldsImage {
24
+ /**
25
+ * The original media type of the uploaded image.
26
+ * @type {string}
27
+ * @memberof ImageFieldsImage
28
+ */
29
+ 'content_type'?: string;
30
+ /**
31
+ *
32
+ * @type {ImageData}
33
+ * @memberof ImageFieldsImage
34
+ */
35
+ 'content'?: ImageData;
36
+ }
37
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Regula FaceSDK Web API
5
+ * Regula FaceSDK Web API
6
+ *
7
+ * The version of the OpenAPI document: 3.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 { ImageFieldsImage } from './image-fields-image';
17
+
18
+ /**
19
+ * Image in the request data, includes image and content_type.
20
+ * @export
21
+ * @interface ImageFields
22
+ */
23
+ export interface ImageFields {
24
+ /**
25
+ *
26
+ * @type {ImageFieldsImage}
27
+ * @memberof ImageFields
28
+ */
29
+ 'image'?: ImageFieldsImage;
30
+ }
31
+