@regulaforensics/facesdk-webclient 5.2.3 → 5.2.5

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 (313) hide show
  1. package/README.md +10 -10
  2. package/dist/main/index.cjs +1 -0
  3. package/dist/module/index.js +1 -0
  4. package/lib/index.d.ts +2066 -0
  5. package/package.json +50 -18
  6. package/.eslintrc +0 -17
  7. package/.github/workflows/npm-publish.yml +0 -21
  8. package/.github/workflows/run-smoke-test.yml +0 -30
  9. package/.github/workflows/trivy-scan.yaml +0 -24
  10. package/dev.md +0 -13
  11. package/dist/cjs-es5/api/diagnostics-api.js +0 -199
  12. package/dist/cjs-es5/api/group-api.js +0 -744
  13. package/dist/cjs-es5/api/liveness-api.js +0 -355
  14. package/dist/cjs-es5/api/liveness20-api.js +0 -201
  15. package/dist/cjs-es5/api/matching-api.js +0 -373
  16. package/dist/cjs-es5/api/person-api.js +0 -929
  17. package/dist/cjs-es5/api/search-api.js +0 -207
  18. package/dist/cjs-es5/api.js +0 -32
  19. package/dist/cjs-es5/base.js +0 -81
  20. package/dist/cjs-es5/common.js +0 -235
  21. package/dist/cjs-es5/configuration.js +0 -45
  22. package/dist/cjs-es5/ext/face-sdk.js +0 -24
  23. package/dist/cjs-es5/ext/group-api.js +0 -47
  24. package/dist/cjs-es5/ext/index.js +0 -14
  25. package/dist/cjs-es5/ext/matching-api.js +0 -47
  26. package/dist/cjs-es5/ext/person-api.js +0 -58
  27. package/dist/cjs-es5/ext/search-api.js +0 -33
  28. package/dist/cjs-es5/index.js +0 -29
  29. package/dist/cjs-es5/models/crop.js +0 -16
  30. package/dist/cjs-es5/models/detect-request-attributes.js +0 -16
  31. package/dist/cjs-es5/models/detect-request.js +0 -16
  32. package/dist/cjs-es5/models/detect-response-all-of.js +0 -16
  33. package/dist/cjs-es5/models/detect-response.js +0 -16
  34. package/dist/cjs-es5/models/detect-result.js +0 -16
  35. package/dist/cjs-es5/models/detection-face.js +0 -16
  36. package/dist/cjs-es5/models/detection-quality.js +0 -16
  37. package/dist/cjs-es5/models/detection.js +0 -16
  38. package/dist/cjs-es5/models/face-align-type-quality.js +0 -29
  39. package/dist/cjs-es5/models/face-attribute.js +0 -37
  40. package/dist/cjs-es5/models/face-image-quality-align-type.js +0 -29
  41. package/dist/cjs-es5/models/face-image-quality-groups-strings.js +0 -32
  42. package/dist/cjs-es5/models/face-image-quality-groups.js +0 -32
  43. package/dist/cjs-es5/models/face-image-quality-status.js +0 -27
  44. package/dist/cjs-es5/models/face-quality-config-name.js +0 -72
  45. package/dist/cjs-es5/models/face-quality-scenarios.js +0 -32
  46. package/dist/cjs-es5/models/face-quality-status.js +0 -27
  47. package/dist/cjs-es5/models/face-recognition-result-code.js +0 -14
  48. package/dist/cjs-es5/models/face-sdkresult-code.js +0 -63
  49. package/dist/cjs-es5/models/face-sdkresult.js +0 -16
  50. package/dist/cjs-es5/models/faces-response-all-of.js +0 -16
  51. package/dist/cjs-es5/models/faces-response.js +0 -16
  52. package/dist/cjs-es5/models/group-all-of.js +0 -16
  53. package/dist/cjs-es5/models/group-page-all-of.js +0 -16
  54. package/dist/cjs-es5/models/group-page.js +0 -16
  55. package/dist/cjs-es5/models/group-to-create.js +0 -16
  56. package/dist/cjs-es5/models/group.js +0 -16
  57. package/dist/cjs-es5/models/image-data.js +0 -3
  58. package/dist/cjs-es5/models/image-fields-image.js +0 -16
  59. package/dist/cjs-es5/models/image-fields.js +0 -16
  60. package/dist/cjs-es5/models/image-page-all-of.js +0 -16
  61. package/dist/cjs-es5/models/image-page.js +0 -16
  62. package/dist/cjs-es5/models/image-source.js +0 -30
  63. package/dist/cjs-es5/models/image.js +0 -16
  64. package/dist/cjs-es5/models/index.js +0 -85
  65. package/dist/cjs-es5/models/liveness-transaction.js +0 -16
  66. package/dist/cjs-es5/models/match-and-search-request-all-of-images.js +0 -16
  67. package/dist/cjs-es5/models/match-and-search-request-all-of.js +0 -16
  68. package/dist/cjs-es5/models/match-and-search-request.js +0 -16
  69. package/dist/cjs-es5/models/match-and-search-response-all-of-detections.js +0 -16
  70. package/dist/cjs-es5/models/match-and-search-response-all-of.js +0 -16
  71. package/dist/cjs-es5/models/match-and-search-response.js +0 -16
  72. package/dist/cjs-es5/models/match-image-detection.js +0 -16
  73. package/dist/cjs-es5/models/match-image-result.js +0 -16
  74. package/dist/cjs-es5/models/match-image.js +0 -16
  75. package/dist/cjs-es5/models/match-request-output-image-params-crop.js +0 -24
  76. package/dist/cjs-es5/models/match-request-output-image-params.js +0 -16
  77. package/dist/cjs-es5/models/match-request.js +0 -16
  78. package/dist/cjs-es5/models/match-response-all-of.js +0 -16
  79. package/dist/cjs-es5/models/match-response.js +0 -16
  80. package/dist/cjs-es5/models/operation-log.js +0 -16
  81. package/dist/cjs-es5/models/output-image-params.js +0 -16
  82. package/dist/cjs-es5/models/page.js +0 -16
  83. package/dist/cjs-es5/models/person-all-of.js +0 -16
  84. package/dist/cjs-es5/models/person-created-response.js +0 -16
  85. package/dist/cjs-es5/models/person-fields.js +0 -16
  86. package/dist/cjs-es5/models/person-with-images-all-of.js +0 -16
  87. package/dist/cjs-es5/models/person-with-images.js +0 -16
  88. package/dist/cjs-es5/models/person.js +0 -16
  89. package/dist/cjs-es5/models/persons-page-all-of.js +0 -16
  90. package/dist/cjs-es5/models/persons-page.js +0 -16
  91. package/dist/cjs-es5/models/process-param.js +0 -16
  92. package/dist/cjs-es5/models/quality-config.js +0 -16
  93. package/dist/cjs-es5/models/quality-detail.js +0 -16
  94. package/dist/cjs-es5/models/quality-details-groups.js +0 -16
  95. package/dist/cjs-es5/models/quality-request.js +0 -16
  96. package/dist/cjs-es5/models/recognize-image-all-of.js +0 -16
  97. package/dist/cjs-es5/models/recognize-image.js +0 -16
  98. package/dist/cjs-es5/models/resize-options.js +0 -16
  99. package/dist/cjs-es5/models/search-bad-params.js +0 -16
  100. package/dist/cjs-es5/models/search-detection.js +0 -16
  101. package/dist/cjs-es5/models/search-parameters-create-person.js +0 -16
  102. package/dist/cjs-es5/models/search-parameters.js +0 -16
  103. package/dist/cjs-es5/models/search-person-all-of.js +0 -16
  104. package/dist/cjs-es5/models/search-person.js +0 -16
  105. package/dist/cjs-es5/models/search-request-all-of.js +0 -16
  106. package/dist/cjs-es5/models/search-request.js +0 -16
  107. package/dist/cjs-es5/models/search-result-all-of.js +0 -16
  108. package/dist/cjs-es5/models/search-result.js +0 -16
  109. package/dist/cjs-es5/models/transaction-info.js +0 -16
  110. package/dist/cjs-es5/models/update-group.js +0 -16
  111. package/dist/cjs-es5/package.json +0 -1
  112. package/dist/esm-es5/api/diagnostics-api.js +0 -196
  113. package/dist/esm-es5/api/group-api.js +0 -741
  114. package/dist/esm-es5/api/liveness-api.js +0 -352
  115. package/dist/esm-es5/api/liveness20-api.js +0 -198
  116. package/dist/esm-es5/api/matching-api.js +0 -370
  117. package/dist/esm-es5/api/person-api.js +0 -926
  118. package/dist/esm-es5/api/search-api.js +0 -204
  119. package/dist/esm-es5/api.js +0 -20
  120. package/dist/esm-es5/base.js +0 -78
  121. package/dist/esm-es5/common.js +0 -232
  122. package/dist/esm-es5/configuration.js +0 -42
  123. package/dist/esm-es5/ext/face-sdk.js +0 -21
  124. package/dist/esm-es5/ext/group-api.js +0 -44
  125. package/dist/esm-es5/ext/index.js +0 -2
  126. package/dist/esm-es5/ext/matching-api.js +0 -44
  127. package/dist/esm-es5/ext/person-api.js +0 -55
  128. package/dist/esm-es5/ext/search-api.js +0 -30
  129. package/dist/esm-es5/index.js +0 -17
  130. package/dist/esm-es5/models/crop.js +0 -14
  131. package/dist/esm-es5/models/detect-request-attributes.js +0 -14
  132. package/dist/esm-es5/models/detect-request.js +0 -14
  133. package/dist/esm-es5/models/detect-response-all-of.js +0 -14
  134. package/dist/esm-es5/models/detect-response.js +0 -14
  135. package/dist/esm-es5/models/detect-result.js +0 -14
  136. package/dist/esm-es5/models/detection-face.js +0 -14
  137. package/dist/esm-es5/models/detection-quality.js +0 -14
  138. package/dist/esm-es5/models/detection.js +0 -14
  139. package/dist/esm-es5/models/face-align-type-quality.js +0 -26
  140. package/dist/esm-es5/models/face-attribute.js +0 -34
  141. package/dist/esm-es5/models/face-image-quality-align-type.js +0 -26
  142. package/dist/esm-es5/models/face-image-quality-groups-strings.js +0 -29
  143. package/dist/esm-es5/models/face-image-quality-groups.js +0 -29
  144. package/dist/esm-es5/models/face-image-quality-status.js +0 -24
  145. package/dist/esm-es5/models/face-quality-config-name.js +0 -69
  146. package/dist/esm-es5/models/face-quality-scenarios.js +0 -29
  147. package/dist/esm-es5/models/face-quality-status.js +0 -24
  148. package/dist/esm-es5/models/face-recognition-result-code.js +0 -14
  149. package/dist/esm-es5/models/face-sdkresult-code.js +0 -60
  150. package/dist/esm-es5/models/face-sdkresult.js +0 -14
  151. package/dist/esm-es5/models/faces-response-all-of.js +0 -14
  152. package/dist/esm-es5/models/faces-response.js +0 -14
  153. package/dist/esm-es5/models/group-all-of.js +0 -14
  154. package/dist/esm-es5/models/group-page-all-of.js +0 -14
  155. package/dist/esm-es5/models/group-page.js +0 -14
  156. package/dist/esm-es5/models/group-to-create.js +0 -14
  157. package/dist/esm-es5/models/group.js +0 -14
  158. package/dist/esm-es5/models/image-data.js +0 -1
  159. package/dist/esm-es5/models/image-fields-image.js +0 -14
  160. package/dist/esm-es5/models/image-fields.js +0 -14
  161. package/dist/esm-es5/models/image-page-all-of.js +0 -14
  162. package/dist/esm-es5/models/image-page.js +0 -14
  163. package/dist/esm-es5/models/image-source.js +0 -27
  164. package/dist/esm-es5/models/image.js +0 -14
  165. package/dist/esm-es5/models/index.js +0 -73
  166. package/dist/esm-es5/models/liveness-transaction.js +0 -14
  167. package/dist/esm-es5/models/match-and-search-request-all-of-images.js +0 -14
  168. package/dist/esm-es5/models/match-and-search-request-all-of.js +0 -14
  169. package/dist/esm-es5/models/match-and-search-request.js +0 -14
  170. package/dist/esm-es5/models/match-and-search-response-all-of-detections.js +0 -14
  171. package/dist/esm-es5/models/match-and-search-response-all-of.js +0 -14
  172. package/dist/esm-es5/models/match-and-search-response.js +0 -14
  173. package/dist/esm-es5/models/match-image-detection.js +0 -14
  174. package/dist/esm-es5/models/match-image-result.js +0 -14
  175. package/dist/esm-es5/models/match-image.js +0 -14
  176. package/dist/esm-es5/models/match-request-output-image-params-crop.js +0 -21
  177. package/dist/esm-es5/models/match-request-output-image-params.js +0 -14
  178. package/dist/esm-es5/models/match-request.js +0 -14
  179. package/dist/esm-es5/models/match-response-all-of.js +0 -14
  180. package/dist/esm-es5/models/match-response.js +0 -14
  181. package/dist/esm-es5/models/operation-log.js +0 -14
  182. package/dist/esm-es5/models/output-image-params.js +0 -14
  183. package/dist/esm-es5/models/page.js +0 -14
  184. package/dist/esm-es5/models/person-all-of.js +0 -14
  185. package/dist/esm-es5/models/person-created-response.js +0 -14
  186. package/dist/esm-es5/models/person-fields.js +0 -14
  187. package/dist/esm-es5/models/person-with-images-all-of.js +0 -14
  188. package/dist/esm-es5/models/person-with-images.js +0 -14
  189. package/dist/esm-es5/models/person.js +0 -14
  190. package/dist/esm-es5/models/persons-page-all-of.js +0 -14
  191. package/dist/esm-es5/models/persons-page.js +0 -14
  192. package/dist/esm-es5/models/process-param.js +0 -14
  193. package/dist/esm-es5/models/quality-config.js +0 -14
  194. package/dist/esm-es5/models/quality-detail.js +0 -14
  195. package/dist/esm-es5/models/quality-details-groups.js +0 -14
  196. package/dist/esm-es5/models/quality-request.js +0 -14
  197. package/dist/esm-es5/models/recognize-image-all-of.js +0 -14
  198. package/dist/esm-es5/models/recognize-image.js +0 -14
  199. package/dist/esm-es5/models/resize-options.js +0 -14
  200. package/dist/esm-es5/models/search-bad-params.js +0 -14
  201. package/dist/esm-es5/models/search-detection.js +0 -14
  202. package/dist/esm-es5/models/search-parameters-create-person.js +0 -14
  203. package/dist/esm-es5/models/search-parameters.js +0 -14
  204. package/dist/esm-es5/models/search-person-all-of.js +0 -14
  205. package/dist/esm-es5/models/search-person.js +0 -14
  206. package/dist/esm-es5/models/search-request-all-of.js +0 -14
  207. package/dist/esm-es5/models/search-request.js +0 -14
  208. package/dist/esm-es5/models/search-result-all-of.js +0 -14
  209. package/dist/esm-es5/models/search-result.js +0 -14
  210. package/dist/esm-es5/models/transaction-info.js +0 -14
  211. package/dist/esm-es5/models/update-group.js +0 -14
  212. package/setup.sh +0 -7
  213. package/src/api/diagnostics-api.ts +0 -126
  214. package/src/api/group-api.ts +0 -648
  215. package/src/api/liveness-api.ts +0 -268
  216. package/src/api/liveness20-api.ts +0 -130
  217. package/src/api/matching-api.ts +0 -301
  218. package/src/api/person-api.ts +0 -821
  219. package/src/api/search-api.ts +0 -143
  220. package/src/api.ts +0 -23
  221. package/src/base.ts +0 -71
  222. package/src/common.ts +0 -138
  223. package/src/configuration.ts +0 -101
  224. package/src/ext/face-sdk.ts +0 -22
  225. package/src/ext/group-api.ts +0 -34
  226. package/src/ext/index.ts +0 -1
  227. package/src/ext/matching-api.ts +0 -28
  228. package/src/ext/person-api.ts +0 -48
  229. package/src/ext/search-api.ts +0 -14
  230. package/src/index.ts +0 -18
  231. package/src/models/crop.ts +0 -49
  232. package/src/models/detect-request-attributes.ts +0 -31
  233. package/src/models/detect-request.ts +0 -57
  234. package/src/models/detect-response-all-of.ts +0 -31
  235. package/src/models/detect-response.ts +0 -27
  236. package/src/models/detect-result.ts +0 -56
  237. package/src/models/detection-face.ts +0 -54
  238. package/src/models/detection-quality.ts +0 -57
  239. package/src/models/detection.ts +0 -62
  240. package/src/models/face-align-type-quality.ts +0 -34
  241. package/src/models/face-attribute.ts +0 -42
  242. package/src/models/face-image-quality-align-type.ts +0 -34
  243. package/src/models/face-image-quality-groups-strings.ts +0 -37
  244. package/src/models/face-image-quality-groups.ts +0 -37
  245. package/src/models/face-image-quality-status.ts +0 -32
  246. package/src/models/face-quality-config-name.ts +0 -77
  247. package/src/models/face-quality-scenarios.ts +0 -37
  248. package/src/models/face-quality-status.ts +0 -32
  249. package/src/models/face-recognition-result-code.ts +0 -13
  250. package/src/models/face-sdkresult-code.ts +0 -68
  251. package/src/models/face-sdkresult.ts +0 -31
  252. package/src/models/faces-response-all-of.ts +0 -37
  253. package/src/models/faces-response.ts +0 -26
  254. package/src/models/group-all-of.ts +0 -36
  255. package/src/models/group-page-all-of.ts +0 -31
  256. package/src/models/group-page.ts +0 -26
  257. package/src/models/group-to-create.ts +0 -42
  258. package/src/models/group.ts +0 -25
  259. package/src/models/image-data.ts +0 -2
  260. package/src/models/image-fields-image.ts +0 -50
  261. package/src/models/image-fields.ts +0 -62
  262. package/src/models/image-page-all-of.ts +0 -31
  263. package/src/models/image-page.ts +0 -26
  264. package/src/models/image-source.ts +0 -35
  265. package/src/models/image.ts +0 -66
  266. package/src/models/index.ts +0 -72
  267. package/src/models/liveness-transaction.ts +0 -78
  268. package/src/models/match-and-search-request-all-of-images.ts +0 -38
  269. package/src/models/match-and-search-request-all-of.ts +0 -37
  270. package/src/models/match-and-search-request.ts +0 -27
  271. package/src/models/match-and-search-response-all-of-detections.ts +0 -44
  272. package/src/models/match-and-search-response-all-of.ts +0 -50
  273. package/src/models/match-and-search-response.ts +0 -28
  274. package/src/models/match-image-detection.ts +0 -44
  275. package/src/models/match-image-result.ts +0 -73
  276. package/src/models/match-image.ts +0 -50
  277. package/src/models/match-request-output-image-params-crop.ts +0 -59
  278. package/src/models/match-request-output-image-params.ts +0 -37
  279. package/src/models/match-request.ts +0 -43
  280. package/src/models/match-response-all-of.ts +0 -38
  281. package/src/models/match-response.ts +0 -28
  282. package/src/models/operation-log.ts +0 -42
  283. package/src/models/output-image-params.ts +0 -37
  284. package/src/models/page.ts +0 -36
  285. package/src/models/person-all-of.ts +0 -48
  286. package/src/models/person-created-response.ts +0 -43
  287. package/src/models/person-fields.ts +0 -48
  288. package/src/models/person-with-images-all-of.ts +0 -31
  289. package/src/models/person-with-images.ts +0 -26
  290. package/src/models/person.ts +0 -26
  291. package/src/models/persons-page-all-of.ts +0 -31
  292. package/src/models/persons-page.ts +0 -26
  293. package/src/models/process-param.ts +0 -57
  294. package/src/models/quality-config.ts +0 -37
  295. package/src/models/quality-detail.ts +0 -57
  296. package/src/models/quality-details-groups.ts +0 -50
  297. package/src/models/quality-request.ts +0 -37
  298. package/src/models/recognize-image-all-of.ts +0 -36
  299. package/src/models/recognize-image.ts +0 -25
  300. package/src/models/resize-options.ts +0 -42
  301. package/src/models/search-bad-params.ts +0 -42
  302. package/src/models/search-detection.ts +0 -90
  303. package/src/models/search-parameters-create-person.ts +0 -36
  304. package/src/models/search-parameters.ts +0 -37
  305. package/src/models/search-person-all-of.ts +0 -38
  306. package/src/models/search-person.ts +0 -27
  307. package/src/models/search-request-all-of.ts +0 -42
  308. package/src/models/search-request.ts +0 -28
  309. package/src/models/search-result-all-of.ts +0 -30
  310. package/src/models/search-result.ts +0 -37
  311. package/src/models/transaction-info.ts +0 -78
  312. package/src/models/update-group.ts +0 -36
  313. package/update-models.sh +0 -7
package/lib/index.d.ts ADDED
@@ -0,0 +1,2066 @@
1
+ import { AxiosRequestConfig, AxiosInstance } from "axios";
2
+ /**
3
+ * Regula FaceSDK Web API
4
+ * 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
5
+ *
6
+ * The version of the OpenAPI document: 5.2.0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ export interface ConfigurationParameters {
14
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
15
+ username?: string;
16
+ password?: string;
17
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
18
+ basePath?: string;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ }
22
+ export class Configuration {
23
+ /**
24
+ * parameter for apiKey security
25
+ * @param name security name
26
+ * @memberof Configuration
27
+ */
28
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
+ /**
30
+ * parameter for basic security
31
+ *
32
+ * @type {string}
33
+ * @memberof Configuration
34
+ */
35
+ username?: string;
36
+ /**
37
+ * parameter for basic security
38
+ *
39
+ * @type {string}
40
+ * @memberof Configuration
41
+ */
42
+ password?: string;
43
+ /**
44
+ * parameter for oauth2 security
45
+ * @param name security name
46
+ * @param scopes oauth2 scope
47
+ * @memberof Configuration
48
+ */
49
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
+ /**
51
+ * override base path
52
+ *
53
+ * @type {string}
54
+ * @memberof Configuration
55
+ */
56
+ basePath?: string;
57
+ /**
58
+ * base options for axios calls
59
+ *
60
+ * @type {any}
61
+ * @memberof Configuration
62
+ */
63
+ baseOptions?: any;
64
+ /**
65
+ * The FormData constructor that will be used to create multipart form data
66
+ * requests. You can inject this here so that execution environments that
67
+ * do not support the FormData class can still run the generated client.
68
+ *
69
+ * @type {new () => FormData}
70
+ */
71
+ formDataCtor?: new () => any;
72
+ constructor(param?: ConfigurationParameters);
73
+ /**
74
+ * Check if the given MIME is a JSON MIME.
75
+ * JSON MIME examples:
76
+ * application/json
77
+ * application/json; charset=UTF8
78
+ * APPLICATION/JSON
79
+ * application/vnd.company+json
80
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
81
+ * @return True if the given MIME is JSON, false otherwise.
82
+ */
83
+ isJsonMime(mime: string): boolean;
84
+ }
85
+ /**
86
+ * Regula FaceSDK Web API
87
+ * 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
88
+ *
89
+ * The version of the OpenAPI document: 5.2.0
90
+ *
91
+ *
92
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
93
+ * https://openapi-generator.tech
94
+ * Do not edit the class manually.
95
+ */
96
+ /**
97
+ * The aspect ratio according to which face alignment is performed during face detection.
98
+ * @export
99
+ * @enum {string}
100
+ */
101
+ export const FaceImageQualityAlignType: {
102
+ readonly ALIGN_3x4: 0;
103
+ readonly ALIGN_4x5: 1;
104
+ readonly ALIGN_2x3: 2;
105
+ readonly ALIGN_1x1: 3;
106
+ readonly ALIGN_7x9: 4;
107
+ };
108
+ export type FaceImageQualityAlignType = (typeof FaceImageQualityAlignType)[keyof typeof FaceImageQualityAlignType];
109
+ /**
110
+ * Whether to return the Base64 of an aligned and cropped portrait in the crop field.
111
+ * @export
112
+ * @interface Crop
113
+ */
114
+ export interface Crop {
115
+ /**
116
+ *
117
+ * @type {FaceImageQualityAlignType}
118
+ * @memberof Crop
119
+ */
120
+ 'type'?: FaceImageQualityAlignType;
121
+ /**
122
+ * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
123
+ * @type {Array<number>}
124
+ * @memberof Crop
125
+ */
126
+ 'padColor'?: Array<number>;
127
+ /**
128
+ * The resize value in case type matches this value. If it doesn\'t, no resize is done.
129
+ * @type {Array<number>}
130
+ * @memberof Crop
131
+ */
132
+ 'size'?: Array<number>;
133
+ /**
134
+ * Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop.
135
+ * @type {boolean}
136
+ * @memberof Crop
137
+ */
138
+ 'returnOriginalRect'?: boolean;
139
+ }
140
+ /**
141
+ * Regula FaceSDK Web API
142
+ * 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
143
+ *
144
+ * The version of the OpenAPI document: 5.2.0
145
+ *
146
+ *
147
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
148
+ * https://openapi-generator.tech
149
+ * Do not edit the class manually.
150
+ */
151
+ /**
152
+ * Face attributes.
153
+ * @export
154
+ * @enum {string}
155
+ */
156
+ export const FaceAttribute: {
157
+ readonly AGE: "Age";
158
+ readonly EMOTION: "Emotion";
159
+ readonly EYE_LEFT: "EyeLeft";
160
+ readonly EYE_RIGHT: "EyeRight";
161
+ readonly SMILE: "Smile";
162
+ readonly GLASSES: "Glasses";
163
+ readonly HEAD_COVERING: "HeadCovering";
164
+ readonly FOREHEAD_COVERING: "ForeheadCovering";
165
+ readonly MOUTH: "Mouth";
166
+ readonly MEDICAL_MASK: "MedicalMask";
167
+ readonly OCCLUSION: "Occlusion";
168
+ readonly STRONG_MAKEUP: "StrongMakeup";
169
+ readonly HEADPHONES: "Headphones";
170
+ };
171
+ export type FaceAttribute = (typeof FaceAttribute)[keyof typeof FaceAttribute];
172
+ /**
173
+ * The configuration that defines the list of returned quality check characteristics.
174
+ * @export
175
+ * @interface QualityConfig
176
+ */
177
+ export interface QualityConfig {
178
+ /**
179
+ *
180
+ * @type {FaceAttribute}
181
+ * @memberof QualityConfig
182
+ */
183
+ 'name'?: FaceAttribute;
184
+ /**
185
+ * The range of applicable values for this characteristic. If the returned in the Response value fits this range, the value is identified as compliant with the requirements.
186
+ * @type {Array<number>}
187
+ * @memberof QualityConfig
188
+ */
189
+ 'range'?: Array<number>;
190
+ }
191
+ /**
192
+ * Whether to evaluate attributes, such as age and emotions.
193
+ * @export
194
+ * @interface DetectRequestAttributes
195
+ */
196
+ export interface DetectRequestAttributes {
197
+ /**
198
+ *
199
+ * @type {Array<QualityConfig>}
200
+ * @memberof DetectRequestAttributes
201
+ */
202
+ 'config'?: Array<QualityConfig>;
203
+ }
204
+ /**
205
+ * Regula FaceSDK Web API
206
+ * 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
207
+ *
208
+ * The version of the OpenAPI document: 5.2.0
209
+ *
210
+ *
211
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
212
+ * https://openapi-generator.tech
213
+ * Do not edit the class manually.
214
+ */
215
+ /**
216
+ * Face detection scenario.
217
+ * @export
218
+ * @enum {string}
219
+ */
220
+ export const FaceQualityScenarios: {
221
+ readonly OLD_MODE: "OldMode";
222
+ readonly QUALITY_FULL: "QualityFull";
223
+ readonly QUALITY_ICAO: "QualityICAO";
224
+ readonly QUALITY_VISA_SCHENGEN: "QualityVisaSchengen";
225
+ readonly QUALITY_VISA_USA: "QualityVisaUSA";
226
+ readonly CROP_CENTRAL_FACE: "CropCentralFace";
227
+ readonly CROP_ALL_FACES: "CropAllFaces";
228
+ readonly THUMBNAIL: "Thumbnail";
229
+ };
230
+ export type FaceQualityScenarios = (typeof FaceQualityScenarios)[keyof typeof FaceQualityScenarios];
231
+ /**
232
+ * Whether to process the uploaded image according to the indicated settings.
233
+ * @export
234
+ * @interface OutputImageParams
235
+ */
236
+ export interface OutputImageParams {
237
+ /**
238
+ * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
239
+ * @type {Array<number>}
240
+ * @memberof OutputImageParams
241
+ */
242
+ 'backgroundColor'?: Array<number>;
243
+ /**
244
+ *
245
+ * @type {Crop}
246
+ * @memberof OutputImageParams
247
+ */
248
+ 'crop'?: Crop;
249
+ }
250
+ /**
251
+ * Whether to perform the portrait quality check.
252
+ * @export
253
+ * @interface QualityRequest
254
+ */
255
+ export interface QualityRequest {
256
+ /**
257
+ * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
258
+ * @type {Array<number>}
259
+ * @memberof QualityRequest
260
+ */
261
+ 'backgroundMatchColor'?: Array<number>;
262
+ /**
263
+ *
264
+ * @type {Array<QualityConfig>}
265
+ * @memberof QualityRequest
266
+ */
267
+ 'config'?: Array<QualityConfig>;
268
+ }
269
+ /**
270
+ * The processing parameters.
271
+ * @export
272
+ * @interface ProcessParam
273
+ */
274
+ export interface ProcessParam {
275
+ /**
276
+ *
277
+ * @type {FaceQualityScenarios}
278
+ * @memberof ProcessParam
279
+ */
280
+ 'scenario'?: FaceQualityScenarios;
281
+ /**
282
+ * Whether to process only the central face on the image (true) or all the faces (false).
283
+ * @type {boolean}
284
+ * @memberof ProcessParam
285
+ */
286
+ 'onlyCentralFace'?: boolean;
287
+ /**
288
+ *
289
+ * @type {OutputImageParams}
290
+ * @memberof ProcessParam
291
+ */
292
+ 'outputImageParams'?: OutputImageParams;
293
+ /**
294
+ *
295
+ * @type {QualityRequest}
296
+ * @memberof ProcessParam
297
+ */
298
+ 'quality'?: QualityRequest;
299
+ /**
300
+ * Whether to evaluate attributes, such as age and emotions.
301
+ * @type {boolean}
302
+ * @memberof ProcessParam
303
+ */
304
+ 'attributes'?: boolean;
305
+ }
306
+ type Base64String = string;
307
+ type ImageData = Base64String | ArrayBuffer;
308
+ /**
309
+ *
310
+ * @export
311
+ * @interface DetectRequest
312
+ */
313
+ export interface DetectRequest {
314
+ /**
315
+ * Session identificator.
316
+ * @type {string}
317
+ * @memberof DetectRequest
318
+ */
319
+ 'tag'?: string;
320
+ /**
321
+ *
322
+ * @type {ProcessParam}
323
+ * @memberof DetectRequest
324
+ */
325
+ 'processParam'?: ProcessParam;
326
+ /**
327
+ *
328
+ * @type {ImageData}
329
+ * @memberof DetectRequest
330
+ */
331
+ 'image'?: ImageData;
332
+ /**
333
+ * Whether to return the cropped portrains with the detected faces.
334
+ * @type {boolean}
335
+ * @memberof DetectRequest
336
+ */
337
+ 'thumbnails'?: boolean;
338
+ /**
339
+ *
340
+ * @type {DetectRequestAttributes}
341
+ * @memberof DetectRequest
342
+ */
343
+ 'attributes'?: DetectRequestAttributes;
344
+ }
345
+ /**
346
+ * Regula FaceSDK Web API
347
+ * 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
348
+ *
349
+ * The version of the OpenAPI document: 5.2.0
350
+ *
351
+ *
352
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
353
+ * https://openapi-generator.tech
354
+ * Do not edit the class manually.
355
+ */
356
+ /**
357
+ *
358
+ * @export
359
+ * @interface DetectionAttributes
360
+ */
361
+ export interface DetectionAttributes {
362
+ /**
363
+ *
364
+ * @type {Array<{ [key: string]: object; }>}
365
+ * @memberof DetectionAttributes
366
+ */
367
+ 'details'?: Array<{
368
+ [key: string]: object;
369
+ }>;
370
+ /**
371
+ * The elapsed time for attribute detection.
372
+ * @type {number}
373
+ * @memberof DetectionAttributes
374
+ */
375
+ 'elapsedTime'?: number;
376
+ }
377
+ /**
378
+ * Regula FaceSDK Web API
379
+ * 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
380
+ *
381
+ * The version of the OpenAPI document: 5.2.0
382
+ *
383
+ *
384
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
385
+ * https://openapi-generator.tech
386
+ * Do not edit the class manually.
387
+ */
388
+ /**
389
+ * All image characteristics that can be assessed during face image quality assessment.
390
+ * @export
391
+ * @enum {string}
392
+ */
393
+ export const FaceQualityConfigName: {
394
+ readonly IMAGE_WIDTH: "ImageWidth";
395
+ readonly IMAGE_HEIGHT: "ImageHeight";
396
+ readonly IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight";
397
+ readonly IMAGE_CHANNELS_NUMBER: "ImageChannelsNumber";
398
+ readonly PADDING_RATIO: "PaddingRatio";
399
+ readonly FACE_MID_POINT_HORIZONTAL_POSITION: "FaceMidPointHorizontalPosition";
400
+ readonly FACE_MID_POINT_VERTICAL_POSITION: "FaceMidPointVerticalPosition";
401
+ readonly HEAD_WIDTH_RATIO: "HeadWidthRatio";
402
+ readonly HEAD_HEIGHT_RATIO: "HeadHeightRatio";
403
+ readonly EYES_DISTANCE: "EyesDistance";
404
+ readonly YAW: "Yaw";
405
+ readonly PITCH: "Pitch";
406
+ readonly ROLL: "Roll";
407
+ readonly BLUR_LEVEL: "BlurLevel";
408
+ readonly NOISE_LEVEL: "NoiseLevel";
409
+ readonly EYE_RIGHT_CLOSED: "EyeRightClosed";
410
+ readonly EYE_LEFT_CLOSED: "EyeLeftClosed";
411
+ readonly EYE_RIGHT_OCCLUDED: "EyeRightOccluded";
412
+ readonly EYE_LEFT_OCCLUDED: "EyeLeftOccluded";
413
+ readonly EYES_RED: "EyesRed";
414
+ readonly EYE_RIGHT_COVERED_WITH_HAIR: "EyeRightCoveredWithHair";
415
+ readonly EYE_LEFT_COVERED_WITH_HAIR: "EyeLeftCoveredWithHair";
416
+ readonly OFF_GAZE: "OffGaze";
417
+ readonly FACE_DYNAMIC_RANGE: "FaceDynamicRange";
418
+ readonly UNNATURAL_SKIN_TONE: "UnnaturalSkinTone";
419
+ readonly TOO_DARK: "TooDark";
420
+ readonly TOO_LIGHT: "TooLight";
421
+ readonly FACE_GLARE: "FaceGlare";
422
+ readonly SHADOWS_ON_FACE: "ShadowsOnFace";
423
+ readonly DARK_GLASSES: "DarkGlasses";
424
+ readonly REFLECTION_ON_GLASSES: "ReflectionOnGlasses";
425
+ readonly FRAMES_TOO_HEAVY: "FramesTooHeavy";
426
+ readonly FACE_OCCLUDED: "FaceOccluded";
427
+ readonly HEAD_COVERING: "HeadCovering";
428
+ readonly BACKGROUND_UNIFORMITY: "BackgroundUniformity";
429
+ readonly SHADOWS_ON_BACKGROUND: "ShadowsOnBackground";
430
+ readonly OTHER_FACES: "OtherFaces";
431
+ readonly SHOULDERS_POSE: "ShouldersPose";
432
+ readonly EXPRESSION_LEVEL: "ExpressionLevel";
433
+ readonly MOUTH_OPEN: "MouthOpen";
434
+ readonly FOREHEAD_COVERING: "ForeheadCovering";
435
+ readonly SMILE: "Smile";
436
+ readonly STRONG_MAKEUP: "StrongMakeup";
437
+ readonly HEADPHONES: "Headphones";
438
+ readonly MEDICAL_MASK: "MedicalMask";
439
+ readonly BACKGROUND_COLOR_MATCH: "BackgroundColorMatch";
440
+ readonly ART_FACE: "ArtFace";
441
+ readonly CONTACT_LENSES: "ContactLenses";
442
+ };
443
+ export type FaceQualityConfigName = (typeof FaceQualityConfigName)[keyof typeof FaceQualityConfigName];
444
+ /**
445
+ * Regula FaceSDK Web API
446
+ * 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
447
+ *
448
+ * The version of the OpenAPI document: 5.2.0
449
+ *
450
+ *
451
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
452
+ * https://openapi-generator.tech
453
+ * Do not edit the class manually.
454
+ */
455
+ /**
456
+ * Face image quality group types for face image quality assessment.
457
+ * @export
458
+ * @enum {string}
459
+ */
460
+ export const FaceImageQualityGroups: {
461
+ readonly IMAGE_CHARACTERISTICS: 1;
462
+ readonly HEAD_SIZE_AND_POSITIONS: 2;
463
+ readonly FACE_QUALITY: 3;
464
+ readonly EYES_CHARACTERISTICS: 4;
465
+ readonly SHADOWS_AND_LIGHTNING: 5;
466
+ readonly POSE_AND_EXPRESSION: 6;
467
+ readonly HEAD_OCCLUSION: 7;
468
+ readonly BACKGROUND: 8;
469
+ };
470
+ export type FaceImageQualityGroups = (typeof FaceImageQualityGroups)[keyof typeof FaceImageQualityGroups];
471
+ /**
472
+ * Regula FaceSDK Web API
473
+ * 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
474
+ *
475
+ * The version of the OpenAPI document: 5.2.0
476
+ *
477
+ *
478
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
479
+ * https://openapi-generator.tech
480
+ * Do not edit the class manually.
481
+ */
482
+ /**
483
+ * The processing status returned for each assessed quality characteristic.
484
+ * @export
485
+ * @enum {string}
486
+ */
487
+ export const FaceImageQualityStatus: {
488
+ readonly QUALITY_STATUS_FALSE: 0;
489
+ readonly QUALITY_STATUS_TRUE: 1;
490
+ readonly QUALITY_STATUS_UNDETERMINED: 2;
491
+ };
492
+ export type FaceImageQualityStatus = (typeof FaceImageQualityStatus)[keyof typeof FaceImageQualityStatus];
493
+ /**
494
+ *
495
+ * @export
496
+ * @interface QualityDetail
497
+ */
498
+ export interface QualityDetail {
499
+ /**
500
+ *
501
+ * @type {FaceImageQualityGroups}
502
+ * @memberof QualityDetail
503
+ */
504
+ 'groupId'?: FaceImageQualityGroups;
505
+ /**
506
+ *
507
+ * @type {FaceQualityConfigName}
508
+ * @memberof QualityDetail
509
+ */
510
+ 'name'?: FaceQualityConfigName;
511
+ /**
512
+ * The range of set values for this characteristic.
513
+ * @type {Array<number>}
514
+ * @memberof QualityDetail
515
+ */
516
+ 'range'?: Array<number>;
517
+ /**
518
+ *
519
+ * @type {FaceImageQualityStatus}
520
+ * @memberof QualityDetail
521
+ */
522
+ 'status'?: FaceImageQualityStatus;
523
+ /**
524
+ * The assessed value for the characteristic, returned in the set units.
525
+ * @type {number}
526
+ * @memberof QualityDetail
527
+ */
528
+ 'value'?: number;
529
+ }
530
+ /**
531
+ * Regula FaceSDK Web API
532
+ * 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
533
+ *
534
+ * The version of the OpenAPI document: 5.2.0
535
+ *
536
+ *
537
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
538
+ * https://openapi-generator.tech
539
+ * Do not edit the class manually.
540
+ */
541
+ /**
542
+ * Face image quality group types for face image quality assessment.
543
+ * @export
544
+ * @enum {string}
545
+ */
546
+ export const FaceImageQualityGroupsStrings: {
547
+ readonly IMAGE_CHARACTERISTICS: "ImageCharacteristics";
548
+ readonly HEAD_SIZE_AND_POSITIONS: "HeadSizeAndPosition";
549
+ readonly FACE_QUALITY: "FaceQuality";
550
+ readonly EYES_CHARACTERISTICS: "EyesCharacteristics";
551
+ readonly SHADOWS_AND_LIGHTNING: "ShadowsAndLightning";
552
+ readonly POSE_AND_EXPRESSION: "PoseAndExpression";
553
+ readonly HEAD_OCCLUSION: "HeadOcclusion";
554
+ readonly BACKGROUND: "Background";
555
+ };
556
+ export type FaceImageQualityGroupsStrings = (typeof FaceImageQualityGroupsStrings)[keyof typeof FaceImageQualityGroupsStrings];
557
+ /**
558
+ *
559
+ * @export
560
+ * @interface QualityDetailsGroups
561
+ */
562
+ export interface QualityDetailsGroups {
563
+ /**
564
+ *
565
+ * @type {FaceImageQualityGroups}
566
+ * @memberof QualityDetailsGroups
567
+ */
568
+ 'groupId'?: FaceImageQualityGroups;
569
+ /**
570
+ *
571
+ * @type {FaceImageQualityGroupsStrings}
572
+ * @memberof QualityDetailsGroups
573
+ */
574
+ 'name'?: FaceImageQualityGroupsStrings;
575
+ /**
576
+ * The total number of characteristics in the group.
577
+ * @type {number}
578
+ * @memberof QualityDetailsGroups
579
+ */
580
+ 'totalCount'?: number;
581
+ /**
582
+ * The number of compliant characteristics in the group.
583
+ * @type {number}
584
+ * @memberof QualityDetailsGroups
585
+ */
586
+ 'compliantCount'?: number;
587
+ }
588
+ /**
589
+ * Field for checking the portrait quality. If it is not mentioned, no quality check is performed.
590
+ * @export
591
+ * @interface DetectionQuality
592
+ */
593
+ export interface DetectionQuality {
594
+ /**
595
+ * The array of all the non-compliant assessment characteristics.
596
+ * @type {Array<FaceQualityConfigName>}
597
+ * @memberof DetectionQuality
598
+ */
599
+ 'nonCompliant'?: Array<FaceQualityConfigName>;
600
+ /**
601
+ * The array of the assessment results for each group of characteristics.
602
+ * @type {Array<QualityDetailsGroups>}
603
+ * @memberof DetectionQuality
604
+ */
605
+ 'detailsGroups'?: Array<QualityDetailsGroups>;
606
+ /**
607
+ * The array of the assessment characteristics that were set in the request.
608
+ * @type {Array<QualityDetail>}
609
+ * @memberof DetectionQuality
610
+ */
611
+ 'details'?: Array<QualityDetail>;
612
+ /**
613
+ * Returns the estimated portrait quality assessment result, a number from 0 to 1, where 1 is for absolute compliance.
614
+ * @type {number}
615
+ * @memberof DetectionQuality
616
+ */
617
+ 'score'?: number;
618
+ /**
619
+ * The total time the quality assessment has taken.
620
+ * @type {number}
621
+ * @memberof DetectionQuality
622
+ */
623
+ 'timer'?: number;
624
+ }
625
+ /**
626
+ *
627
+ * @export
628
+ * @interface Detection
629
+ */
630
+ export interface Detection {
631
+ /**
632
+ *
633
+ * @type {ImageData}
634
+ * @memberof Detection
635
+ */
636
+ 'crop'?: ImageData;
637
+ /**
638
+ *
639
+ * @type {DetectionAttributes}
640
+ * @memberof Detection
641
+ */
642
+ 'attributes'?: DetectionAttributes;
643
+ /**
644
+ * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
645
+ * @type {Array<Array<number>>}
646
+ * @memberof Detection
647
+ */
648
+ 'landmarks': Array<Array<number>>;
649
+ /**
650
+ *
651
+ * @type {DetectionQuality}
652
+ * @memberof Detection
653
+ */
654
+ 'quality'?: DetectionQuality;
655
+ /**
656
+ * The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
657
+ * @type {Array<number>}
658
+ * @memberof Detection
659
+ */
660
+ 'roi': Array<number>;
661
+ /**
662
+ * Base64 of the cropped portrait.
663
+ * @type {string}
664
+ * @memberof Detection
665
+ */
666
+ 'thumbnail'?: string;
667
+ }
668
+ /**
669
+ *
670
+ * @export
671
+ * @interface DetectResult
672
+ */
673
+ export interface DetectResult {
674
+ /**
675
+ *
676
+ * @type {Array<Detection>}
677
+ * @memberof DetectResult
678
+ */
679
+ 'detections': Array<Detection>;
680
+ /**
681
+ * Internal.
682
+ * @type {number}
683
+ * @memberof DetectResult
684
+ */
685
+ 'detectorType'?: number;
686
+ /**
687
+ * Internal.
688
+ * @type {number}
689
+ * @memberof DetectResult
690
+ */
691
+ 'landmarksType'?: number;
692
+ /**
693
+ *
694
+ * @type {FaceQualityScenarios}
695
+ * @memberof DetectResult
696
+ */
697
+ 'scenario'?: FaceQualityScenarios;
698
+ /**
699
+ * The total time taken for the detection.
700
+ * @type {number}
701
+ * @memberof DetectResult
702
+ */
703
+ 'timer'?: number;
704
+ }
705
+ /**
706
+ *
707
+ * @export
708
+ * @interface DetectResponseAllOf
709
+ */
710
+ export interface DetectResponseAllOf {
711
+ /**
712
+ *
713
+ * @type {DetectResult}
714
+ * @memberof DetectResponseAllOf
715
+ */
716
+ 'results'?: DetectResult;
717
+ }
718
+ /**
719
+ * Regula FaceSDK Web API
720
+ * 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
721
+ *
722
+ * The version of the OpenAPI document: 5.2.0
723
+ *
724
+ *
725
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
726
+ * https://openapi-generator.tech
727
+ * Do not edit the class manually.
728
+ */
729
+ /**
730
+ * The result code, see enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/
731
+ * @export
732
+ * @enum {string}
733
+ */
734
+ export const FaceSDKResultCode: {
735
+ readonly FACER_OK: 0;
736
+ readonly FR_IMAGE_EMPTY: 1;
737
+ readonly FR_FACE_NOT_DETECTED: 2;
738
+ readonly FR_LANDMARKS_NOT_DETECTED: 3;
739
+ readonly FR_FACE_ALIGHNER_FAILED: 4;
740
+ readonly FR_DESCRIPTOR_EXTRACTOR_ERROR: 5;
741
+ readonly FR_IMAGE_DECODE_ERROR: 6;
742
+ readonly FR_INTERNAL_ERROR: 7;
743
+ readonly FACER_CONFIG_ERROR: 199;
744
+ readonly FACER_NO_LICENSE: 200;
745
+ readonly FACER_IS_NOT_INITIALIZED: 201;
746
+ readonly FACER_COMMAND_IS_NOT_SUPPORTED: 202;
747
+ readonly FACER_COMMAND_PARAMS_READ_ERROR: 203;
748
+ readonly FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST: 224;
749
+ readonly FACER_VIDEO_DECODE_ERROR: 227;
750
+ readonly FACER_NOT_ENOUGH_FRAMES: 228;
751
+ readonly FACER_OUTPUT_IS_NOT_DEFINED: 229;
752
+ readonly FACER_CLOSED_EYES_DETECTED: 230;
753
+ readonly FACER_LOW_QUALITY: 231;
754
+ readonly FACER_HIGH_ASYMMETRY: 232;
755
+ readonly FACER_FACE_OVER_EMOTIONAL: 233;
756
+ readonly FACER_SUNGLASSES_DETECTED: 234;
757
+ readonly FACER_SMALL_AGE: 235;
758
+ readonly FACER_HEADDRESS_DETECTED: 236;
759
+ readonly FACER_FACES_NOT_MATCHED: 237;
760
+ readonly FACER_IMAGES_COUNT_LIMIT_EXCEEDED: 238;
761
+ readonly FACER_MEDICINE_MASK_DETECTED: 239;
762
+ readonly FACER_OCCLUSION_DETECTED: 240;
763
+ readonly FACER_FOREHEAD_GLASSES_DETECTED: 242;
764
+ readonly FACER_MOUTH_OPENED: 243;
765
+ readonly FACER_ART_MASK_DETECTED: 244;
766
+ readonly FACER_ELECTRONIC_DEVICE_DETECTED: 245;
767
+ readonly FACER_TRACK_BREAK: 246;
768
+ readonly FACER_WRONG_GEO: 247;
769
+ readonly FACER_WRONG_OF: 248;
770
+ readonly FACER_WRONG_VIEW: 249;
771
+ readonly FACER_TIMEOUT_LIVENESS_TRANSACTION: 250;
772
+ readonly FACER_FAILED_LIVENESS_TRANSACTION: 251;
773
+ readonly FACER_ABORTED_LIVENESS_TRANSACTION: 252;
774
+ };
775
+ export type FaceSDKResultCode = (typeof FaceSDKResultCode)[keyof typeof FaceSDKResultCode];
776
+ /**
777
+ *
778
+ * @export
779
+ * @interface FaceSDKResult
780
+ */
781
+ export interface FaceSDKResult {
782
+ /**
783
+ *
784
+ * @type {FaceSDKResultCode}
785
+ * @memberof FaceSDKResult
786
+ */
787
+ 'code': FaceSDKResultCode;
788
+ }
789
+ /**
790
+ * @type DetectResponse
791
+ * @export
792
+ */
793
+ export type DetectResponse = DetectResponseAllOf & FaceSDKResult;
794
+ /**
795
+ * Regula FaceSDK Web API
796
+ * 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
797
+ *
798
+ * The version of the OpenAPI document: 5.2.0
799
+ *
800
+ *
801
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
802
+ * https://openapi-generator.tech
803
+ * Do not edit the class manually.
804
+ */
805
+ /**
806
+ *
807
+ * @export
808
+ * @interface DetectionFace
809
+ */
810
+ export interface DetectionFace {
811
+ /**
812
+ * The detected face index number.
813
+ * @type {number}
814
+ * @memberof DetectionFace
815
+ */
816
+ 'faceIndex'?: number;
817
+ /**
818
+ * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
819
+ * @type {Array<Array<number>>}
820
+ * @memberof DetectionFace
821
+ */
822
+ 'landmarks'?: Array<Array<number>>;
823
+ /**
824
+ * Angle of rotation of the face from the vertical axis, degrees.
825
+ * @type {number}
826
+ * @memberof DetectionFace
827
+ */
828
+ 'rotationAngle'?: number;
829
+ /**
830
+ * The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
831
+ * @type {Array<number>}
832
+ * @memberof DetectionFace
833
+ */
834
+ 'roi'?: Array<number>;
835
+ /**
836
+ * Base64 of the cropped portrait.
837
+ * @type {string}
838
+ * @memberof DetectionFace
839
+ */
840
+ 'thumbnail'?: string;
841
+ }
842
+ /**
843
+ * Regula FaceSDK Web API
844
+ * 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
845
+ *
846
+ * The version of the OpenAPI document: 5.2.0
847
+ *
848
+ *
849
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
850
+ * https://openapi-generator.tech
851
+ * Do not edit the class manually.
852
+ */
853
+ /**
854
+ *
855
+ * @export
856
+ * @interface PersonAllOf
857
+ */
858
+ export interface PersonAllOf {
859
+ /**
860
+ * Person ID. The list of persons is sorted by decreasing ID value.
861
+ * @type {string}
862
+ * @memberof PersonAllOf
863
+ */
864
+ 'id'?: string;
865
+ /**
866
+ * Person creation date.
867
+ * @type {string}
868
+ * @memberof PersonAllOf
869
+ */
870
+ 'createdAt'?: string;
871
+ /**
872
+ * Person update date.
873
+ * @type {string}
874
+ * @memberof PersonAllOf
875
+ */
876
+ 'updatedAt'?: string;
877
+ /**
878
+ * List of groups this person belongs to.
879
+ * @type {Array<string>}
880
+ * @memberof PersonAllOf
881
+ */
882
+ 'groups'?: Array<string>;
883
+ }
884
+ /**
885
+ * Regula FaceSDK Web API
886
+ * 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
887
+ *
888
+ * The version of the OpenAPI document: 5.2.0
889
+ *
890
+ *
891
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
892
+ * https://openapi-generator.tech
893
+ * Do not edit the class manually.
894
+ */
895
+ /**
896
+ * Person Request body: name and metadata.
897
+ * @export
898
+ * @interface PersonFields
899
+ */
900
+ export interface PersonFields {
901
+ /**
902
+ * Session identificator.
903
+ * @type {string}
904
+ * @memberof PersonFields
905
+ */
906
+ 'tag'?: string;
907
+ /**
908
+ * Person name.
909
+ * @type {string}
910
+ * @memberof PersonFields
911
+ */
912
+ 'name'?: string;
913
+ /**
914
+ * A free-form object containing person\'s extended attributes.
915
+ * @type {{ [key: string]: object; }}
916
+ * @memberof PersonFields
917
+ */
918
+ 'metadata'?: {
919
+ [key: string]: object;
920
+ };
921
+ /**
922
+ * Groups a person should be placed to. If no group is specified in request, a Default group is created and the person is placed to it.
923
+ * @type {Array<string>}
924
+ * @memberof PersonFields
925
+ */
926
+ 'groups'?: Array<string>;
927
+ }
928
+ /**
929
+ * @type Person
930
+ * Person response body: person ID, creation date, update date if any.
931
+ * @export
932
+ */
933
+ export type Person = PersonAllOf & PersonFields;
934
+ /**
935
+ * Regula FaceSDK Web API
936
+ * 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
937
+ *
938
+ * The version of the OpenAPI document: 5.2.0
939
+ *
940
+ *
941
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
942
+ * https://openapi-generator.tech
943
+ * Do not edit the class manually.
944
+ */
945
+ /**
946
+ * Image in the response.
947
+ * @export
948
+ * @interface Image
949
+ */
950
+ export interface Image {
951
+ /**
952
+ * Response image ID. The list is sorted by decreasing ID value.
953
+ * @type {string}
954
+ * @memberof Image
955
+ */
956
+ 'id'?: string;
957
+ /**
958
+ * Original media type of the returned image.
959
+ * @type {string}
960
+ * @memberof Image
961
+ */
962
+ 'contentType'?: string;
963
+ /**
964
+ * Returned image creation date.
965
+ * @type {string}
966
+ * @memberof Image
967
+ */
968
+ 'createdAt'?: string;
969
+ /**
970
+ * Returned image update date.
971
+ * @type {string}
972
+ * @memberof Image
973
+ */
974
+ 'updatedAt'?: string;
975
+ /**
976
+ * Returned image path.
977
+ * @type {string}
978
+ * @memberof Image
979
+ */
980
+ 'path'?: string;
981
+ /**
982
+ * Returned image URL.
983
+ * @type {string}
984
+ * @memberof Image
985
+ */
986
+ 'url'?: string;
987
+ /**
988
+ * A free-form object containing person\'s extended attributes.
989
+ * @type {{ [key: string]: object; }}
990
+ * @memberof Image
991
+ */
992
+ 'metadata'?: {
993
+ [key: string]: object;
994
+ };
995
+ }
996
+ /**
997
+ * Regula FaceSDK Web API
998
+ * 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
999
+ *
1000
+ * The version of the OpenAPI document: 5.2.0
1001
+ *
1002
+ *
1003
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1004
+ * https://openapi-generator.tech
1005
+ * Do not edit the class manually.
1006
+ */
1007
+ /**
1008
+ *
1009
+ * @export
1010
+ * @interface RecognizeImageAllOf
1011
+ */
1012
+ export interface RecognizeImageAllOf {
1013
+ /**
1014
+ * Similarity score.
1015
+ * @type {number}
1016
+ * @memberof RecognizeImageAllOf
1017
+ */
1018
+ 'similarity'?: number;
1019
+ /**
1020
+ * Similarity distance score: the lower the distance, the higher the face\'s similarity.
1021
+ * @type {number}
1022
+ * @memberof RecognizeImageAllOf
1023
+ */
1024
+ 'distance'?: number;
1025
+ }
1026
+ /**
1027
+ * @type RecognizeImage
1028
+ * @export
1029
+ */
1030
+ export type RecognizeImage = Image & RecognizeImageAllOf;
1031
+ /**
1032
+ *
1033
+ * @export
1034
+ * @interface PersonWithImagesAllOf
1035
+ */
1036
+ export interface PersonWithImagesAllOf {
1037
+ /**
1038
+ *
1039
+ * @type {Array<RecognizeImage>}
1040
+ * @memberof PersonWithImagesAllOf
1041
+ */
1042
+ 'images'?: Array<RecognizeImage>;
1043
+ }
1044
+ /**
1045
+ * @type PersonWithImages
1046
+ * @export
1047
+ */
1048
+ export type PersonWithImages = Person & PersonWithImagesAllOf;
1049
+ /**
1050
+ *
1051
+ * @export
1052
+ * @interface FacesResponseAllOf
1053
+ */
1054
+ export interface FacesResponseAllOf {
1055
+ /**
1056
+ *
1057
+ * @type {Array<PersonWithImages>}
1058
+ * @memberof FacesResponseAllOf
1059
+ */
1060
+ 'persons'?: Array<PersonWithImages>;
1061
+ /**
1062
+ *
1063
+ * @type {number}
1064
+ * @memberof FacesResponseAllOf
1065
+ */
1066
+ 'rotationAngle'?: number;
1067
+ }
1068
+ /**
1069
+ * @type FacesResponse
1070
+ * @export
1071
+ */
1072
+ export type FacesResponse = DetectionFace & FacesResponseAllOf;
1073
+ /**
1074
+ * Regula FaceSDK Web API
1075
+ * 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
1076
+ *
1077
+ * The version of the OpenAPI document: 5.2.0
1078
+ *
1079
+ *
1080
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1081
+ * https://openapi-generator.tech
1082
+ * Do not edit the class manually.
1083
+ */
1084
+ /**
1085
+ * Additional group data in the response, includes id and createdAt.
1086
+ * @export
1087
+ * @interface GroupAllOf
1088
+ */
1089
+ export interface GroupAllOf {
1090
+ /**
1091
+ * Group ID.
1092
+ * @type {string}
1093
+ * @memberof GroupAllOf
1094
+ */
1095
+ 'id'?: string;
1096
+ /**
1097
+ * Group creation date.
1098
+ * @type {string}
1099
+ * @memberof GroupAllOf
1100
+ */
1101
+ 'createdAt'?: string;
1102
+ }
1103
+ /**
1104
+ * Regula FaceSDK Web API
1105
+ * 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
1106
+ *
1107
+ * The version of the OpenAPI document: 5.2.0
1108
+ *
1109
+ *
1110
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1111
+ * https://openapi-generator.tech
1112
+ * Do not edit the class manually.
1113
+ */
1114
+ /**
1115
+ * Request body of the group to create data, includes name and metadata.
1116
+ * @export
1117
+ * @interface GroupToCreate
1118
+ */
1119
+ export interface GroupToCreate {
1120
+ /**
1121
+ * Session identificator.
1122
+ * @type {string}
1123
+ * @memberof GroupToCreate
1124
+ */
1125
+ 'tag'?: string;
1126
+ /**
1127
+ * Group to create name.
1128
+ * @type {string}
1129
+ * @memberof GroupToCreate
1130
+ */
1131
+ 'name'?: string;
1132
+ /**
1133
+ * A free-form object containing group\'s extended attributes.
1134
+ * @type {{ [key: string]: object; }}
1135
+ * @memberof GroupToCreate
1136
+ */
1137
+ 'metadata'?: {
1138
+ [key: string]: object;
1139
+ };
1140
+ }
1141
+ /**
1142
+ * @type Group
1143
+ * @export
1144
+ */
1145
+ export type Group = GroupAllOf & GroupToCreate;
1146
+ /**
1147
+ *
1148
+ * @export
1149
+ * @interface GroupPageAllOf
1150
+ */
1151
+ export interface GroupPageAllOf {
1152
+ /**
1153
+ * Array of Groups that are found during the search.
1154
+ * @type {Array<Group>}
1155
+ * @memberof GroupPageAllOf
1156
+ */
1157
+ 'items'?: Array<Group>;
1158
+ }
1159
+ /**
1160
+ * Regula FaceSDK Web API
1161
+ * 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
1162
+ *
1163
+ * The version of the OpenAPI document: 5.2.0
1164
+ *
1165
+ *
1166
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1167
+ * https://openapi-generator.tech
1168
+ * Do not edit the class manually.
1169
+ */
1170
+ /**
1171
+ * Information about current page number and total pages count
1172
+ * @export
1173
+ * @interface Page
1174
+ */
1175
+ export interface Page {
1176
+ /**
1177
+ * Current page number.
1178
+ * @type {number}
1179
+ * @memberof Page
1180
+ */
1181
+ 'page'?: number;
1182
+ /**
1183
+ * Total number of pages.
1184
+ * @type {number}
1185
+ * @memberof Page
1186
+ */
1187
+ 'totalPages'?: number;
1188
+ }
1189
+ /**
1190
+ * @type GroupPage
1191
+ * @export
1192
+ */
1193
+ export type GroupPage = GroupPageAllOf & Page;
1194
+ /**
1195
+ * Regula FaceSDK Web API
1196
+ * 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
1197
+ *
1198
+ * The version of the OpenAPI document: 5.2.0
1199
+ *
1200
+ *
1201
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1202
+ * https://openapi-generator.tech
1203
+ * Do not edit the class manually.
1204
+ */
1205
+ /**
1206
+ * Set to resize the original image.
1207
+ * @export
1208
+ * @interface ResizeOptions
1209
+ */
1210
+ export interface ResizeOptions {
1211
+ /**
1212
+ * Resized image width, px.
1213
+ * @type {number}
1214
+ * @memberof ResizeOptions
1215
+ */
1216
+ 'width'?: number;
1217
+ /**
1218
+ * Resized image height, px.
1219
+ * @type {number}
1220
+ * @memberof ResizeOptions
1221
+ */
1222
+ 'height'?: number;
1223
+ /**
1224
+ * Resized image quality, percent.
1225
+ * @type {number}
1226
+ * @memberof ResizeOptions
1227
+ */
1228
+ 'quality'?: number;
1229
+ }
1230
+ /**
1231
+ * Uploaded image.
1232
+ * @export
1233
+ * @interface ImageFieldsImage
1234
+ */
1235
+ export interface ImageFieldsImage {
1236
+ /**
1237
+ * Original media type of the uploaded image.
1238
+ * @type {string}
1239
+ * @memberof ImageFieldsImage
1240
+ */
1241
+ 'contentType'?: string;
1242
+ /**
1243
+ *
1244
+ * @type {ImageData}
1245
+ * @memberof ImageFieldsImage
1246
+ */
1247
+ 'content'?: ImageData;
1248
+ /**
1249
+ * Image URL.
1250
+ * @type {string}
1251
+ * @memberof ImageFieldsImage
1252
+ */
1253
+ 'imageUrl'?: string;
1254
+ /**
1255
+ *
1256
+ * @type {ResizeOptions}
1257
+ * @memberof ImageFieldsImage
1258
+ */
1259
+ 'resizeOptions'?: ResizeOptions;
1260
+ }
1261
+ /**
1262
+ * Image in the request data, includes image and contentType.
1263
+ * @export
1264
+ * @interface ImageFields
1265
+ */
1266
+ export interface ImageFields {
1267
+ /**
1268
+ * Session identificator.
1269
+ * @type {string}
1270
+ * @memberof ImageFields
1271
+ */
1272
+ 'tag'?: string;
1273
+ /**
1274
+ *
1275
+ * @type {ImageFieldsImage}
1276
+ * @memberof ImageFields
1277
+ */
1278
+ 'image'?: ImageFieldsImage;
1279
+ /**
1280
+ *
1281
+ * @type {OutputImageParams}
1282
+ * @memberof ImageFields
1283
+ */
1284
+ 'outputImageParams'?: OutputImageParams;
1285
+ /**
1286
+ * Whether to detect all faces in the image. If set to false, only the most central face is detected.
1287
+ * @type {boolean}
1288
+ * @memberof ImageFields
1289
+ */
1290
+ 'detectAll'?: boolean;
1291
+ /**
1292
+ * The similarity threshold.
1293
+ * @type {number}
1294
+ * @memberof ImageFields
1295
+ */
1296
+ 'threshold'?: number;
1297
+ /**
1298
+ * The maximum number of results to be returned.
1299
+ * @type {number}
1300
+ * @memberof ImageFields
1301
+ */
1302
+ 'limit'?: number;
1303
+ }
1304
+ /**
1305
+ * Image page.
1306
+ * @export
1307
+ * @interface ImagePageAllOf
1308
+ */
1309
+ export interface ImagePageAllOf {
1310
+ /**
1311
+ *
1312
+ * @type {Array<Image>}
1313
+ * @memberof ImagePageAllOf
1314
+ */
1315
+ 'items'?: Array<Image>;
1316
+ }
1317
+ /**
1318
+ * @type ImagePage
1319
+ * @export
1320
+ */
1321
+ export type ImagePage = ImagePageAllOf & Page;
1322
+ /**
1323
+ * Regula FaceSDK Web API
1324
+ * 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
1325
+ *
1326
+ * The version of the OpenAPI document: 5.2.0
1327
+ *
1328
+ *
1329
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1330
+ * https://openapi-generator.tech
1331
+ * Do not edit the class manually.
1332
+ */
1333
+ /**
1334
+ * The type of the image, defines the way the comparison is performed. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/image-source/
1335
+ * @export
1336
+ * @enum {string}
1337
+ */
1338
+ export const ImageSource: {
1339
+ readonly DOCUMENT_PRINTED: 1;
1340
+ readonly DOCUMENT_RFID: 2;
1341
+ readonly LIVE: 3;
1342
+ readonly DOCUMENT_WITH_LIVE: 4;
1343
+ readonly EXTERNAL: 5;
1344
+ readonly GHOST: 6;
1345
+ };
1346
+ export type ImageSource = (typeof ImageSource)[keyof typeof ImageSource];
1347
+ /**
1348
+ *
1349
+ * @export
1350
+ * @interface MatchAndSearchRequestAllOfImages
1351
+ */
1352
+ export interface MatchAndSearchRequestAllOfImages {
1353
+ /**
1354
+ *
1355
+ * @type {ImageData}
1356
+ * @memberof MatchAndSearchRequestAllOfImages
1357
+ */
1358
+ 'content'?: ImageData;
1359
+ /**
1360
+ *
1361
+ * @type {ImageSource}
1362
+ * @memberof MatchAndSearchRequestAllOfImages
1363
+ */
1364
+ 'type'?: ImageSource;
1365
+ }
1366
+ /**
1367
+ *
1368
+ * @export
1369
+ * @interface MatchAndSearchRequestAllOf
1370
+ */
1371
+ export interface MatchAndSearchRequestAllOf {
1372
+ /**
1373
+ * Session identificator.
1374
+ * @type {string}
1375
+ * @memberof MatchAndSearchRequestAllOf
1376
+ */
1377
+ 'tag'?: string;
1378
+ /**
1379
+ * Array of Person images.
1380
+ * @type {Array<MatchAndSearchRequestAllOfImages>}
1381
+ * @memberof MatchAndSearchRequestAllOf
1382
+ */
1383
+ 'images'?: Array<MatchAndSearchRequestAllOfImages>;
1384
+ }
1385
+ /**
1386
+ * Regula FaceSDK Web API
1387
+ * 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
1388
+ *
1389
+ * The version of the OpenAPI document: 5.2.0
1390
+ *
1391
+ *
1392
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1393
+ * https://openapi-generator.tech
1394
+ * Do not edit the class manually.
1395
+ */
1396
+ /**
1397
+ * If a person is not found, a new person entry is created using the descriptor calculated while searching.
1398
+ * @export
1399
+ * @interface SearchParametersCreatePerson
1400
+ */
1401
+ export interface SearchParametersCreatePerson {
1402
+ /**
1403
+ * Person\'s name.
1404
+ * @type {string}
1405
+ * @memberof SearchParametersCreatePerson
1406
+ */
1407
+ 'name'?: string;
1408
+ /**
1409
+ * A free-form object containing person\'s extended attributes.
1410
+ * @type {{ [key: string]: object; }}
1411
+ * @memberof SearchParametersCreatePerson
1412
+ */
1413
+ 'metadata'?: {
1414
+ [key: string]: object;
1415
+ };
1416
+ }
1417
+ /**
1418
+ * Request search data.
1419
+ * @export
1420
+ * @interface SearchParameters
1421
+ */
1422
+ export interface SearchParameters {
1423
+ /**
1424
+ *
1425
+ * @type {SearchParametersCreatePerson}
1426
+ * @memberof SearchParameters
1427
+ */
1428
+ 'createPerson'?: SearchParametersCreatePerson;
1429
+ /**
1430
+ * IDs of the groups in which the search is performed.
1431
+ * @type {Array<number>}
1432
+ * @memberof SearchParameters
1433
+ */
1434
+ 'groupIds'?: Array<number>;
1435
+ }
1436
+ /**
1437
+ * @type MatchAndSearchRequest
1438
+ * @export
1439
+ */
1440
+ export type MatchAndSearchRequest = MatchAndSearchRequestAllOf & SearchParameters;
1441
+ /**
1442
+ *
1443
+ * @export
1444
+ * @interface MatchAndSearchResponseAllOfDetections
1445
+ */
1446
+ export interface MatchAndSearchResponseAllOfDetections {
1447
+ /**
1448
+ *
1449
+ * @type {Array<FacesResponse>}
1450
+ * @memberof MatchAndSearchResponseAllOfDetections
1451
+ */
1452
+ 'faces'?: Array<FacesResponse>;
1453
+ /**
1454
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1455
+ * @type {number}
1456
+ * @memberof MatchAndSearchResponseAllOfDetections
1457
+ */
1458
+ 'imageIndex'?: number;
1459
+ /**
1460
+ *
1461
+ * @type {FaceSDKResultCode}
1462
+ * @memberof MatchAndSearchResponseAllOfDetections
1463
+ */
1464
+ 'status'?: FaceSDKResultCode;
1465
+ }
1466
+ /**
1467
+ *
1468
+ * @export
1469
+ * @interface MatchImageResult
1470
+ */
1471
+ export interface MatchImageResult {
1472
+ /**
1473
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1474
+ * @type {number}
1475
+ * @memberof MatchImageResult
1476
+ */
1477
+ 'firstIndex': number;
1478
+ /**
1479
+ * The detected face index number.
1480
+ * @type {number}
1481
+ * @memberof MatchImageResult
1482
+ */
1483
+ 'firstFaceIndex'?: number;
1484
+ /**
1485
+ *
1486
+ * @type {ImageSource}
1487
+ * @memberof MatchImageResult
1488
+ */
1489
+ 'first'?: ImageSource;
1490
+ /**
1491
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1492
+ * @type {number}
1493
+ * @memberof MatchImageResult
1494
+ */
1495
+ 'secondIndex': number;
1496
+ /**
1497
+ * The detected face index number.
1498
+ * @type {number}
1499
+ * @memberof MatchImageResult
1500
+ */
1501
+ 'secondFaceIndex'?: number;
1502
+ /**
1503
+ *
1504
+ * @type {ImageSource}
1505
+ * @memberof MatchImageResult
1506
+ */
1507
+ 'second'?: ImageSource;
1508
+ /**
1509
+ * A dimensionless number that shows how similar the compared faces are. 0—absolutely identical faces.
1510
+ * @type {number}
1511
+ * @memberof MatchImageResult
1512
+ */
1513
+ 'score'?: number;
1514
+ /**
1515
+ * The detected faces similarity, %. 100%—absolutely identical faces, 0%—absolutely not identical.
1516
+ * @type {number}
1517
+ * @memberof MatchImageResult
1518
+ */
1519
+ 'similarity'?: number;
1520
+ }
1521
+ /**
1522
+ *
1523
+ * @export
1524
+ * @interface MatchAndSearchResponseAllOf
1525
+ */
1526
+ export interface MatchAndSearchResponseAllOf {
1527
+ /**
1528
+ *
1529
+ * @type {Array<MatchImageResult>}
1530
+ * @memberof MatchAndSearchResponseAllOf
1531
+ */
1532
+ 'results'?: Array<MatchImageResult>;
1533
+ /**
1534
+ *
1535
+ * @type {number}
1536
+ * @memberof MatchAndSearchResponseAllOf
1537
+ */
1538
+ 'elapsedTime'?: number;
1539
+ /**
1540
+ * A free-form object containing person\'s extended attributes.
1541
+ * @type {{ [key: string]: object; }}
1542
+ * @memberof MatchAndSearchResponseAllOf
1543
+ */
1544
+ 'metadata'?: {
1545
+ [key: string]: object;
1546
+ };
1547
+ /**
1548
+ *
1549
+ * @type {Array<MatchAndSearchResponseAllOfDetections>}
1550
+ * @memberof MatchAndSearchResponseAllOf
1551
+ */
1552
+ 'detections'?: Array<MatchAndSearchResponseAllOfDetections>;
1553
+ }
1554
+ /**
1555
+ * @type MatchAndSearchResponse
1556
+ * @export
1557
+ */
1558
+ export type MatchAndSearchResponse = FaceSDKResult & MatchAndSearchResponseAllOf;
1559
+ /**
1560
+ *
1561
+ * @export
1562
+ * @interface MatchImage
1563
+ */
1564
+ export interface MatchImage {
1565
+ /**
1566
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1567
+ * @type {number}
1568
+ * @memberof MatchImage
1569
+ */
1570
+ 'index'?: number;
1571
+ /**
1572
+ *
1573
+ * @type {ImageSource}
1574
+ * @memberof MatchImage
1575
+ */
1576
+ 'type'?: ImageSource;
1577
+ /**
1578
+ *
1579
+ * @type {ImageData}
1580
+ * @memberof MatchImage
1581
+ */
1582
+ 'data': ImageData;
1583
+ /**
1584
+ * Whether to detect all faces in the image. If set to false, only the most central face is detected.
1585
+ * @type {boolean}
1586
+ * @memberof MatchImage
1587
+ */
1588
+ 'detectAll'?: boolean;
1589
+ }
1590
+ /**
1591
+ *
1592
+ * @export
1593
+ * @interface MatchImageDetection
1594
+ */
1595
+ export interface MatchImageDetection {
1596
+ /**
1597
+ * The array of detected faces.
1598
+ * @type {Array<DetectionFace>}
1599
+ * @memberof MatchImageDetection
1600
+ */
1601
+ 'faces'?: Array<DetectionFace>;
1602
+ /**
1603
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1604
+ * @type {number}
1605
+ * @memberof MatchImageDetection
1606
+ */
1607
+ 'imageIndex': number;
1608
+ /**
1609
+ *
1610
+ * @type {FaceSDKResultCode}
1611
+ * @memberof MatchImageDetection
1612
+ */
1613
+ 'status': FaceSDKResultCode;
1614
+ }
1615
+ /**
1616
+ *
1617
+ * @export
1618
+ * @interface MatchRequest
1619
+ */
1620
+ export interface MatchRequest {
1621
+ /**
1622
+ * Session identificator.
1623
+ * @type {string}
1624
+ * @memberof MatchRequest
1625
+ */
1626
+ 'tag'?: string;
1627
+ /**
1628
+ * Whether to return thumbnails: Base64 cropped images that contain vertically aligned faces.
1629
+ * @type {boolean}
1630
+ * @memberof MatchRequest
1631
+ */
1632
+ 'thumbnails'?: boolean;
1633
+ /**
1634
+ * The array of all images included in the comparison.
1635
+ * @type {Array<MatchImage>}
1636
+ * @memberof MatchRequest
1637
+ */
1638
+ 'images': Array<MatchImage>;
1639
+ }
1640
+ /**
1641
+ *
1642
+ * @export
1643
+ * @interface MatchResponseAllOf
1644
+ */
1645
+ export interface MatchResponseAllOf {
1646
+ /**
1647
+ * The array of detected faces.
1648
+ * @type {Array<MatchImageDetection>}
1649
+ * @memberof MatchResponseAllOf
1650
+ */
1651
+ 'detections'?: Array<MatchImageDetection>;
1652
+ /**
1653
+ * The array of matching results.
1654
+ * @type {Array<MatchImageResult>}
1655
+ * @memberof MatchResponseAllOf
1656
+ */
1657
+ 'results'?: Array<MatchImageResult>;
1658
+ }
1659
+ /**
1660
+ * @type MatchResponse
1661
+ * @export
1662
+ */
1663
+ export type MatchResponse = FaceSDKResult & MatchResponseAllOf;
1664
+ /**
1665
+ * Regula FaceSDK Web API
1666
+ * 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
1667
+ *
1668
+ * The version of the OpenAPI document: 5.2.0
1669
+ *
1670
+ *
1671
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1672
+ * https://openapi-generator.tech
1673
+ * Do not edit the class manually.
1674
+ */
1675
+ /**
1676
+ *
1677
+ * @export
1678
+ * @interface OperationLog
1679
+ */
1680
+ export interface OperationLog {
1681
+ /**
1682
+ * Status code.
1683
+ * @type {number}
1684
+ * @memberof OperationLog
1685
+ */
1686
+ 'statusCode'?: number;
1687
+ /**
1688
+ * Error type.
1689
+ * @type {string}
1690
+ * @memberof OperationLog
1691
+ */
1692
+ 'type'?: string;
1693
+ /**
1694
+ * Error message.
1695
+ * @type {string}
1696
+ * @memberof OperationLog
1697
+ */
1698
+ 'msg'?: string;
1699
+ }
1700
+ /**
1701
+ * Regula FaceSDK Web API
1702
+ * 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
1703
+ *
1704
+ * The version of the OpenAPI document: 5.2.0
1705
+ *
1706
+ *
1707
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1708
+ * https://openapi-generator.tech
1709
+ * Do not edit the class manually.
1710
+ */
1711
+ /**
1712
+ * The array of identified persons.
1713
+ * @export
1714
+ * @interface SearchDetection
1715
+ */
1716
+ export interface SearchDetection {
1717
+ /**
1718
+ * Internal.
1719
+ * @type {number}
1720
+ * @memberof SearchDetection
1721
+ */
1722
+ 'code'?: number;
1723
+ /**
1724
+ * Base64 of the aligned and cropped portrait.
1725
+ * @type {string}
1726
+ * @memberof SearchDetection
1727
+ */
1728
+ 'crop'?: string;
1729
+ /**
1730
+ * Internal.
1731
+ * @type {number}
1732
+ * @memberof SearchDetection
1733
+ */
1734
+ 'detectorType'?: number;
1735
+ /**
1736
+ * Internal.
1737
+ * @type {string}
1738
+ * @memberof SearchDetection
1739
+ */
1740
+ 'hash'?: string;
1741
+ /**
1742
+ * Internal.
1743
+ * @type {number}
1744
+ * @memberof SearchDetection
1745
+ */
1746
+ 'idx'?: number;
1747
+ /**
1748
+ * Internal.
1749
+ * @type {string}
1750
+ * @memberof SearchDetection
1751
+ */
1752
+ 'image'?: string;
1753
+ /**
1754
+ * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
1755
+ * @type {Array<Array<number>>}
1756
+ * @memberof SearchDetection
1757
+ */
1758
+ 'landmarks'?: Array<Array<number>>;
1759
+ /**
1760
+ * Internal.
1761
+ * @type {number}
1762
+ * @memberof SearchDetection
1763
+ */
1764
+ 'landmarksType'?: number;
1765
+ /**
1766
+ * Internal.
1767
+ * @type {string}
1768
+ * @memberof SearchDetection
1769
+ */
1770
+ 'msg'?: string;
1771
+ /**
1772
+ * The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
1773
+ * @type {Array<number>}
1774
+ * @memberof SearchDetection
1775
+ */
1776
+ 'roi'?: Array<number>;
1777
+ /**
1778
+ *
1779
+ * @type {string}
1780
+ * @memberof SearchDetection
1781
+ */
1782
+ 'versionSDK'?: string;
1783
+ }
1784
+ /**
1785
+ * Person data.
1786
+ * @export
1787
+ * @interface SearchPersonAllOf
1788
+ */
1789
+ export interface SearchPersonAllOf {
1790
+ /**
1791
+ *
1792
+ * @type {SearchDetection}
1793
+ * @memberof SearchPersonAllOf
1794
+ */
1795
+ 'detection'?: SearchDetection;
1796
+ /**
1797
+ * Array of Person images.
1798
+ * @type {Array<RecognizeImage>}
1799
+ * @memberof SearchPersonAllOf
1800
+ */
1801
+ 'images'?: Array<RecognizeImage>;
1802
+ }
1803
+ /**
1804
+ * @type SearchPerson
1805
+ * @export
1806
+ */
1807
+ export type SearchPerson = Person & SearchPersonAllOf;
1808
+ /**
1809
+ *
1810
+ * @export
1811
+ * @interface PersonCreatedResponse
1812
+ */
1813
+ export interface PersonCreatedResponse {
1814
+ /**
1815
+ * Result code.
1816
+ * @type {number}
1817
+ * @memberof PersonCreatedResponse
1818
+ */
1819
+ 'code'?: number;
1820
+ /**
1821
+ * Array of Person images.
1822
+ * @type {Array<SearchPerson>}
1823
+ * @memberof PersonCreatedResponse
1824
+ */
1825
+ 'persons'?: Array<SearchPerson>;
1826
+ /**
1827
+ * A free-form object containing person\'s extended attributes.
1828
+ * @type {{ [key: string]: object; }}
1829
+ * @memberof PersonCreatedResponse
1830
+ */
1831
+ 'metadata'?: {
1832
+ [key: string]: object;
1833
+ };
1834
+ }
1835
+ /**
1836
+ *
1837
+ * @export
1838
+ * @interface PersonsPageAllOf
1839
+ */
1840
+ export interface PersonsPageAllOf {
1841
+ /**
1842
+ *
1843
+ * @type {Array<Person>}
1844
+ * @memberof PersonsPageAllOf
1845
+ */
1846
+ 'items'?: Array<Person>;
1847
+ }
1848
+ /**
1849
+ * @type PersonsPage
1850
+ * @export
1851
+ */
1852
+ export type PersonsPage = Page & PersonsPageAllOf;
1853
+ /**
1854
+ * Regula FaceSDK Web API
1855
+ * 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
1856
+ *
1857
+ * The version of the OpenAPI document: 5.2.0
1858
+ *
1859
+ *
1860
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1861
+ * https://openapi-generator.tech
1862
+ * Do not edit the class manually.
1863
+ */
1864
+ /**
1865
+ *
1866
+ * @export
1867
+ * @interface SearchBadParams
1868
+ */
1869
+ export interface SearchBadParams {
1870
+ /**
1871
+ *
1872
+ * @type {string}
1873
+ * @memberof SearchBadParams
1874
+ */
1875
+ 'msg'?: string;
1876
+ /**
1877
+ *
1878
+ * @type {number}
1879
+ * @memberof SearchBadParams
1880
+ */
1881
+ 'statusCode'?: number;
1882
+ /**
1883
+ *
1884
+ * @type {string}
1885
+ * @memberof SearchBadParams
1886
+ */
1887
+ 'type'?: string;
1888
+ }
1889
+ /**
1890
+ * @type SearchRequest
1891
+ * @export
1892
+ */
1893
+ export type SearchRequest = ImageFields & SearchParameters;
1894
+ /**
1895
+ *
1896
+ * @export
1897
+ * @interface SearchResult
1898
+ */
1899
+ export interface SearchResult {
1900
+ /**
1901
+ * Search result code.
1902
+ * @type {number}
1903
+ * @memberof SearchResult
1904
+ */
1905
+ 'code'?: number;
1906
+ /**
1907
+ * Person data.
1908
+ * @type {Array<SearchPerson>}
1909
+ * @memberof SearchResult
1910
+ */
1911
+ 'persons'?: Array<SearchPerson>;
1912
+ }
1913
+ /**
1914
+ * Regula FaceSDK Web API
1915
+ * 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
1916
+ *
1917
+ * The version of the OpenAPI document: 5.2.0
1918
+ *
1919
+ *
1920
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1921
+ * https://openapi-generator.tech
1922
+ * Do not edit the class manually.
1923
+ */
1924
+ /**
1925
+ *
1926
+ * @export
1927
+ * @interface TransactionInfo
1928
+ */
1929
+ export interface TransactionInfo {
1930
+ /**
1931
+ * Result code, one of the FaceSDKResultCode enum values. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/
1932
+ * @type {number}
1933
+ * @memberof TransactionInfo
1934
+ */
1935
+ 'code'?: number;
1936
+ /**
1937
+ * Whether the liveness detection is confirmed (0) or not (1).
1938
+ * @type {number}
1939
+ * @memberof TransactionInfo
1940
+ */
1941
+ 'status'?: number;
1942
+ /**
1943
+ * Session identificator.
1944
+ * @type {string}
1945
+ * @memberof TransactionInfo
1946
+ */
1947
+ 'tag'?: string;
1948
+ /**
1949
+ * Transaction ID, there can be several transactions within one session.
1950
+ * @type {string}
1951
+ * @memberof TransactionInfo
1952
+ */
1953
+ 'transactionId'?: string;
1954
+ /**
1955
+ * Link to the session video.
1956
+ * @type {string}
1957
+ * @memberof TransactionInfo
1958
+ */
1959
+ 'video'?: string;
1960
+ /**
1961
+ * List of base64 images
1962
+ * @type {Array<string>}
1963
+ * @memberof TransactionInfo
1964
+ */
1965
+ 'images'?: Array<string>;
1966
+ /**
1967
+ * Approximate age with an accuracy of +/-3 years.
1968
+ * @type {number}
1969
+ * @memberof TransactionInfo
1970
+ */
1971
+ 'estimatedAge'?: number;
1972
+ /**
1973
+ * Link to the portrait.
1974
+ * @type {string}
1975
+ * @memberof TransactionInfo
1976
+ */
1977
+ 'portrait'?: string;
1978
+ /**
1979
+ * A free-form object containing person\'s extended attributes.
1980
+ * @type {{ [key: string]: object; }}
1981
+ * @memberof TransactionInfo
1982
+ */
1983
+ 'metadata'?: {
1984
+ [key: string]: object;
1985
+ };
1986
+ }
1987
+ /**
1988
+ * Regula FaceSDK Web API
1989
+ * 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
1990
+ *
1991
+ * The version of the OpenAPI document: 5.2.0
1992
+ *
1993
+ *
1994
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1995
+ * https://openapi-generator.tech
1996
+ * Do not edit the class manually.
1997
+ */
1998
+ /**
1999
+ * Update group.
2000
+ * @export
2001
+ * @interface UpdateGroup
2002
+ */
2003
+ export interface UpdateGroup {
2004
+ /**
2005
+ * Add items.
2006
+ * @type {Array<string>}
2007
+ * @memberof UpdateGroup
2008
+ */
2009
+ 'addItems'?: Array<string>;
2010
+ /**
2011
+ * Remove items.
2012
+ * @type {Array<string>}
2013
+ * @memberof UpdateGroup
2014
+ */
2015
+ 'removeItems'?: Array<string>;
2016
+ }
2017
+ declare class MatchingApi {
2018
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2019
+ match(compareRequest: MatchRequest, xRequestID: string, options?: AxiosRequestConfig): Promise<MatchResponse>;
2020
+ detect(detectRequest: DetectRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<DetectResponse>;
2021
+ }
2022
+ declare class GroupApi {
2023
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2024
+ createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): Promise<Group>;
2025
+ deleteGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2026
+ getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<GroupPage>;
2027
+ getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<PersonsPage>;
2028
+ getGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<Group>;
2029
+ updateGroup(groupId: string, groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2030
+ updatePersonsInGroup(groupId: string, updateGroup: UpdateGroup, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2031
+ }
2032
+ declare class PersonApi {
2033
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2034
+ createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<Person>;
2035
+ addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<Image>;
2036
+ deleteImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2037
+ deletePerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2038
+ getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<GroupPage>;
2039
+ getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<ImagePage>;
2040
+ getImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<unknown>;
2041
+ getPerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<Person>;
2042
+ updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2043
+ }
2044
+ declare class SearchApi {
2045
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2046
+ search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<SearchResult>;
2047
+ }
2048
+ declare class DiagnosticsApi {
2049
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2050
+ readiness(xRequestID?: string, options?: AxiosRequestConfig): Promise<Record<string, unknown>>;
2051
+ }
2052
+ declare class Liveness20Api {
2053
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2054
+ getLivenessTransactionInfo(transactionId: string, options?: AxiosRequestConfig): Promise<TransactionInfo>;
2055
+ }
2056
+ export class FaceSdk {
2057
+ protected basePath: string;
2058
+ protected axios: AxiosInstance;
2059
+ matchingApi: MatchingApi;
2060
+ groupApi: GroupApi;
2061
+ personApi: PersonApi;
2062
+ searchApi: SearchApi;
2063
+ diagnosticsApi: DiagnosticsApi;
2064
+ livenessApi: Liveness20Api;
2065
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2066
+ }